Windows authentication inside microsoft teams - windows-authentication

I have designed a website to use windows authentication. Everything works as expected. But my recent task was to integrate the site into Microsft Teams. So I have created de manifest and install de app in teams. So When I enter the site it is asking for windows credentials and user validated, but after pass the credentials the page doesn t load, it stay in blank. The web site is working succesfully in any web explorer.
Note: I use the Active Directory of my company to validate users (Not Azure AD).
Thanks in advance.
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"version": "1.0.1",
"id": "276adadb",
"packageName": "TI_MesaAyuda",
"developer": {
"name": "Enzo",
"websiteUrl": "",
"privacyUrl": "https://tickets.Prueba.Teams",
"termsOfUseUrl": "https://tickets.Prueba.Teams"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"name": {
"short": "Mesa de ayuda TI",
"full": "Sistema de mesa de ayuda"
},
"description": {
"short": "Mesa de ayuda de ",
"full": "Sistema de mesa de ayuda de Megalabs "
},
"accentColor": "#FFFFFF",
"staticTabs": [
{
"entityId": "Ticket1",
"name": "Mesa de ayuda",
"contentUrl": "https://tickets.prueba.teams",
"websiteUrl": "https://tickets.prueba.teams",
"scopes": [
"personal"
]
}
],
"permissions": [
"identity",
"messageTeamMembers"
],
"validDomains": [
"tickets.prueba.teams",
"https://tickets.prueba.teams"
]
}

Related

When creating a template in whatsapp cloud api it is always rejected

I am trying to create a template from postman by sending this object:
{
"name": "listado_productos",
"language": "es",
"category": "TRANSACTIONAL",
"components": [
{
"type" : "HEADER",
"format": "document",
"example": {
"header_handle": [
"https://drive.google.com/file/d/1CcTpDZL3p0ltMFhIKU9Vhz1LWG0bQFpN/view?usp=share_link"
]}
},
{
"type": "BODY",
"text": "Buenas tardes, acá le enviamos el nuevo listado de precios. Muchas gracias"
},
{
"type": "FOOTER",
"text": "ABS."
}
]
}
If I try an example from the official business-management-api guide, it also rejects it for non-compliance with terms and conditions.
"name": "promotional_message",
"language": "en_US",
"category": "TRANSACTIONAL",
"components": [{
"type":"BODY",
"text":"Hi {{1}}, get an extra 10% off every order above $300.",
"example":{"body_text":[["Sonia"]]}
},
{
"type":"HEADER",
"format":"TEXT",
"text": "Bonus Tuesday starts now!"
},
{
"type":"FOOTER",
"text":"Not interested? Tap Stop promotions"
},
{
"type":"BUTTONS",
"buttons":[{"type":"QUICK_REPLY", "text": "Shop now"},
{"type":"QUICK_REPLY", "text": "Stop promotions"}]
}]
The response is that it is rejected for being duplicate or not complying with WhatsApp Busiess Api terms and services but it is not true, I read the terms and conditions and the file / message format complies. Does anyone identify the problem?

How can i update Account Linking with gactions?

I want to update account linking information of action on google with gactions or https://actions.googleapis.com/v2/.
When i execute gactions this only update the action information but manifest and account linking are not update.
This is the action.json:
{
"manifest": {
"displayName": "The MSH",
"invocationName": "The MSH",
"shortDescription": "Hub domotico per la gestione della casa",
"longDescription": "Hub domotico per la gestione della casa e di tutti i dispotivi Wi-Fi",
"companyName": "MSH",
"contactEmail": "dsfsd.sdfsf.93#gmail.com",
"sampleInvocation": [
"Fammi parlare con the MSH",
"Voglio parlare con the MSH"
],
"introduction": "Puoi usare questo agent per comunicare con tutti i dispositivi collegati",
"voiceName": "female_1"
},
"accountLinking": {
"clientId": "sdfsf",
"clientSecret": "retdrtfer",
"grantType": "AUTH_CODE",
"authenticationUrl": "https://sdfs.ngrok.io/oauth",
"accessTokenUrl": "https://sdfs.ngrok.io/token",
"assertionTypes": [
"UNKNOWN_ASSERTION_TYPE"
]
},
"actions": [{
"name": "actions.devices",
"deviceControl": {
},
"fulfillment": {
"conversationName": "automation"
}
}],
"conversations": {
"automation" :
{
"name": "automation",
"url": "https://asdada.ngrok.io/api/home"
}
},
"locale": "it"
}

Facebook Graph API /me/Feed V2.4 vs V2.3

I'm trying to access all feeds a facebook user using the Graph API .
However I'm getting quite different responses from V2.3 to V2.4 .
In version 2.4 using the instruction / me / Feed not receive complete information of the posts just returns some fields , while in the previous version had access to all the information. As can be seen the difference in the following answers.
V2.4
{
"data": [
{
"message": "A brincar com o Xico Zé.. ;)",
"created_time": "2015-07-11T18:23:59+0000",
"id": "10153293007088673_120153297333223673"
},
{
"message": "Ana Simões e Pedro Simões este é que é bom para a Liliana Assunção..",
"story": "Diogo Lopes shared Classic Hits 4FM's video.",
"created_time": "2015-07-11T14:20:59+0000",
"id": "10153293007088673_1360153296966998673"
}
],
"paging": {
. . .
}
}
V2.3
{
"data": [
{
"id": "10153129496378673_120153297333223673",
"from": {
"name": "Diogo Lopes",
"id": "10153129496378673"
},
"message": "A brincar com o Xico Zé.. ;)",
"picture": "",
"link": "",
"name": "Diogo Lopes on Instagram: “A brincar com o Xico Zé.. ;)”",
"caption": "Diogo Lopes on Instagram: “A brincar com o Xico Zé.. ;)”",
"description": "A brincar com o Xico Zé.. ;)",
"icon": "https://www.facebook.com/images/icons/post.gif",
"actions": [
. . .
],
"privacy": {
"value": "ALL_FRIENDS",
"description": "Your friends",
"friends": "",
"allow": "",
"deny": ""
},
"type": "photo",
"status_type": "added_photos",
"object_id": "120153297333233673",
"application": {
". . ."
},
"created_time": "2015-07-11T18:23:59+0000",
"updated_time": "2015-07-12T20:50:19+0000",
"is_hidden": false,
"subscribed": true,
"is_expired": false,
"likes": {
. . .
],
"paging": {
. . .
}
},
"comments": {
"data": [
. . .
],
"paging": {
. . .
}
}
},
{
"id": "10153129496378673_1360153296966998673",
"from": {
"name": "Diogo Lopes",
"id": "10153129496378673"
},
"to": {
. . . },
"message": "………....",
"message_tags": {
. . .
},
"story": "Diogo Lopes shared Classic Hits 4FM's video.",
"story_tags": {
"0": [
{
"id": "10153129496378673",
"name": "Diogo Lopes",
"type": "user",
"offset": 0,
"length": 11
}
],
"19": [
{
"id": "125659037470226",
"name": "Classic Hits 4FM",
"type": "page",
"offset": 19,
"length": 16
}
],
"38": [
{
"id": "874724002563722",
"name": "",
"offset": 38,
"length": 5
}
]
},
"picture": "https://fbcdn-vthumb-a.akamaihd.net/hvthumb-ak-xta1/v/t15.0-10/s130x130/11331624_874724179230371_2123630990_n.jpg?oh=701da51ed6690c70ba8d3e7ba5cbb58c&oe=56273FFC&__gda__=1448812275_e37392fe85f01402fa0565b0086df710",
"link": "https://www.facebook.com/ClassicHits4FM/videos/874724002563722/",
"source": "https://video.xx.fbcdn.net/hvideo-xtp1/v/t42.1790-2/11656282_889978921061393_14476072_n.mp4?efg=eyJybHIiOjQ4NCwicmxhIjo1MTJ9&rl=484&vabr=269&oh=a4e7e8ec985cf5374082e5c9639d5b06&oe=55A5ED2C",
"name": "Classic Hits 4FM",
"description": "A Giant Nope!!!
Would you go on this Swiss Ride?",
"actions": [
. . .
],
"privacy": {
"value": "EVERYONE",
"description": "Public",
"friends": "",
"allow": "",
"deny": ""
},
"type": "video",
"status_type": "mobile_status_update",
"created_time": "2015-07-11T14:20:59+0000",
"updated_time": "2015-07-11T21:28:06+0000",
"is_hidden": false,
"subscribed": true,
"is_expired": false,
"likes": {
. . .
],
"paging": { . . . }
},
"comments": {
}
…
}
Someone can help me know how I can get a similar response in V2.4 to V2.3??
Obs. My facebook aplication have user_posts Permission.
Since the upgrade in Graph API i.e. version 2.4. You have to specifically pass a fields parameter with the relevant keyword of which, data you would like to retrieve.
Please refer to this document of Facebook Developers
Changes from v2.3 to v2.4
Declarative Fields
To try to improve performance on mobile networks, Nodes and Edges in
v2.4 requires that you explicitly request the field(s) you need for
your GET requests. For example, GET /v2.4/me/feed no longer includes
likes and comments by default, but GET
/v2.4/me/feed?fields=comments,likes will return the data. For more
details see the docs on how to request specific fields.
An example of v2.4:
<page_id>/feed?fields=id,message,picture,likes,shares,comments

Get video object (or video id) from Facebook timeline post

I'm trying to get a Facebook video object from a timeline post :
I'm getting the posts from graph api /me/home
I can easily get the photo object via the returned object_id
The problem is there is no object_id value for video post type
{
"id": "750834774_10152138100019775",
"from": {
"id": "750834774",
"name": "Emilie Volpi"
},
"message": "haha le monde qui fait une analyse geopolitique de games of thrones^^ une bonne manière de se remettre à jour pour la nouvelle saison demain !!!!!",
"picture": "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQCclQTe2bPMIcrY&w=130&h=130&url=http%3A%2F%2Fs2.dmcdn.net%2FEHFV4%2F526x297-mO8.jpg",
"link": "http://www.dailymotion.com/video/x1lu3ke_game-of-thrones-comprendre-la-crise-a-westeros-en-4-minutes_news",
"source": "http://www.dailymotion.com/swf/video/x1lu3ke?autoPlay=1",
"name": "« Game of Thrones » : comprendre la crise à Westeros en 4 minutes",
"caption": "www.dailymotion.com",
"description": "Guerre des cinq rois, pression des marcheurs blancs et des sauvageons au nord, retour des dragons à l’est… le Royaume des Sept couronnes est plongée dans une crise politique sanglante depuis plus d’un an. Le Monde vous propose un décryptage de la crise en quatre minutes mais attention… spoilers !",
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yj/r/v2OnaTyTQZE.gif",
"actions": [
{
"name": "Comment",
"link": "https://www.facebook.com/750834774/posts/10152138100019775"
},
{
"name": "Like",
"link": "https://www.facebook.com/750834774/posts/10152138100019775"
}
],
"privacy": {
"value": ""
},
"type": "video",
"status_type": "shared_story",
"application": {
"name": "Links",
"id": "2309869772"
},
"created_time": "2014-04-06T09:39:57+0000",
"updated_time": "2014-04-06T09:39:57+0000",
"likes": {
"data": [
{
"id": "1283687218",
"name": "Max Imus"
}
],
"paging": {
"cursors": {
"after": "MTI4MzY4NzIxOA==",
"before": "MTI4MzY4NzIxOA=="
}
}
}
},
As you can see there is no video id so I can't get the video
My goal is to retrieve the embed_html from the video object
Please tell me how to do that (graph api or FQL query)
I think you can only get the embed_html for videos which are actually hosted on Facebook. The example you're using is hosted on dailymotion and only referenced in the post. That's the main difference.
I guess you could use the following FQL to get the embeddable video url:
select attachment.media.video.source_url from stream where post_id='750834774_10152138100019775'
You can then include it dynmically in your page if you pass the source_url content to an iFrame as src attribute for example

Facebook Graph API posts not appearing for users of page, only admin

I created a page on facebook, and am using the graph api to make posts on the timeline. These post show up just fine for me as the admin, but for users the page is empty.
I verified with the graph api explorer. As an admin a GET of /NewsCrier/feed is filled with data.
As a non admin user the same request returns
{
"data": [ ]
}
Here is an example post from the response of my admin user, notice the privacy is set to public:
{
"id": "383422711781035_404880726301900",
"from": {
"category": "Community",
"name": "News Crier",
"id": "383422711781035"
},
"message": "This appears to be the DC shooter, Aaron Alexis",
"picture": "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQD4wR0Y9UVbb4Js&w=154&h=154&url=http%3A%2F%2Fwww.justmugshots.com%2Fimg%2F814064%2Flg%2Faaron-alexis.jpg",
"link": "http://www.justmugshots.com/texas/fort-worth/814064",
"name": "Aaron Alexis, Arrested on 2010-09-04",
"caption": "www.justmugshots.com",
"description": "Aaron Alexis was arrested in Fort Worth, Texas on 2010-09-04. See the mugshot now.",
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yD/r/aS8ecmYRys0.gif",
"actions": [
{
"name": "Comment",
"link": "https://www.facebook.com/383422711781035/posts/404880726301900"
},
{
"name": "Like",
"link": "https://www.facebook.com/383422711781035/posts/404880726301900"
}
],
"privacy": {
"description": "Public",
"value": "EVERYONE",
"friends": "",
"networks": "",
"allow": "",
"deny": ""
},
"type": "link",
"status_type": "shared_story",
"application": {
"name": "Reddit News Alerts",
"id": "693375074022011"
},
"created_time": "2013-09-16T19:36:07+0000",
"updated_time": "2013-09-16T19:36:07+0000"
}
The problem is that your Facebook app is in sandbox mode, as soon as you take the app from sandbox all the users will se the newly created posts ;)