facebook-messenger

Weird error with Facebook Messenger Platform/bot Welcome Confugration

本秂侑毒 提交于 2019-12-03 02:50:22
I'm getting a weird error while configuring welcome message for my Messenger bot. I've been using the same code (as shown below) and it has just been working fine until last night. I tried it with both cURL and Postman . Neither of them works. curl -X POST -H "Content-Type: application/json" -d '{ "setting_type":"call_to_actions", "thread_state":"new_thread", "call_to_actions":[ { "message":{ "text":"Welcome to My Company!" } } ] }' "https://graph.facebook.com/v2.6/<PAGE_ID>/thread_settings?access_token=<PAGE_ACCESS_TOKEN>" Error message when executing the code above: {"error":{"message":"(

Messenger Extensions Javascript SDK Error 2071011

▼魔方 西西 提交于 2019-12-03 00:08:26
I'm trying to create a Messenger Web View ( https://developers.facebook.com/docs/messenger-platform/messenger-extension ) by using the Messenger Extensions Javascript SDK. The page opened by the Web View has the following JS code <script> (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.com/en_US/messenger.Extensions.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'Messenger')); window.extAsyncInit = function () { // the Messenger Extensions JS SDK is done

How does Facebook Messenger connect with Wit.ai Bot Engine?

陌路散爱 提交于 2019-12-02 21:16:00
In Facebook's documentation they refer to wit.ai Bot Engine, but I can't find anywhere online where its explained how to connect the Story that you build in Wit with your Facebook Messenger App? Wit.ai needs an input - user input. Sentence, phrase, word - to give you back the analysed results. So first when you say "your Facebook Messenger app" - you need to make sure you are handling the messenger part by itself: have a code in your language of preference running on the server\your laptop which can receive the text which is sent to the messenger account on Facebook. When you get that working,

API authentication from a facebook messenger bot conversation

老子叫甜甜 提交于 2019-12-02 17:41:50
What is the best way to authenticate with an external API from a conversation with a bot on the facebook messenger platform? For a broad example, I would like a user of my bot to create items on their own profiles of an external website. Is there a way to get login information from the user, or connect my bot to the external website, without the user explicitly sending a message to the bot with their username and password? What I found in the documentation under User Profile API : You can personalize the conversation using the person's name or profile pic from the User Profile API. In order to

Identifying Facebook Messenger user with UserID from a Facebook Login

删除回忆录丶 提交于 2019-12-02 15:10:32
I am trying out the new Facebook Messenger Platform and have hit a bit of a problem. When a user first chats with my Bot, I want to use the sender.id to lookup the user in my DB and verify whether they're a customer or not and offer a more tailored UX. User's sign up to my service using Facebook Login, but unfortunately it appears my App's Facebook ID & my Bot's Facebook ID are different due to IDs being limited to App-scopes. Is there any way associate the 2 IDs to allow me to find a user in my DB? UPDATE (4/20/2016): We got around this by asking users on first contact via messenger to click

Is it impossible now to open Facebook Messenger chathead of friends from my app?

放肆的年华 提交于 2019-12-02 15:05:29
问题 I'm retrieving user's Facebook id using AccessToken.getCurrentAccessToken.getUserId() and saving it in FirebaseDatabase . Then I'm retrieving it and populating several CardView s using the data. Each card gets an ID and there's a button on card which when pressed should open the Facebook Messenger chathead associated with that ID. I tried opening the chathead using this code: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb-messenger://user/"+fbID)); intent.addFlags(Intent.FLAG

Android: Share to Facebook Messenger Error

故事扮演 提交于 2019-12-02 04:01:59
问题 I have been trying to fix this error for a week now, but still cannot find the problem. The LogIn is working, but for some reason the share to Messenger Crashes. I cannot really understand what the problem is. Basically I save a text to speech to my device and then I attempt to share it. The file saves to the device (I checked), but messenger does not share. Here is my code for sharing: public void shareFile(View view) { String sayWhat = "This is what you sound like when you write to me,

Android: Share to Facebook Messenger Error

雨燕双飞 提交于 2019-12-02 03:12:30
I have been trying to fix this error for a week now, but still cannot find the problem. The LogIn is working, but for some reason the share to Messenger Crashes. I cannot really understand what the problem is. Basically I save a text to speech to my device and then I attempt to share it. The file saves to the device (I checked), but messenger does not share. Here is my code for sharing: public void shareFile(View view) { String sayWhat = "This is what you sound like when you write to me, thanks to the app Messenger Say it! Available now at Google Play"; HashMap hashmap = new HashMap(); hashmap

iOS Share GIFs to Messenger using UIActivityViewController

只愿长相守 提交于 2019-12-02 01:29:09
问题 I am trying to share different type of images using UIActivityViewController to facebook messenger. I am facing no problem while sharing the images (.png), but I am not able to send gif images (.gif), it is giving error "Couldn't load content". I am converting the image to data & then sending the data in array through UIActivityViewController. Here, I am firing a notification with the details & extracting the gif path & then processing it. NSDictionary *dictAsset = [notification userInfo];

iOS Share GIFs to Messenger using UIActivityViewController

烂漫一生 提交于 2019-12-01 21:11:26
I am trying to share different type of images using UIActivityViewController to facebook messenger. I am facing no problem while sharing the images (.png), but I am not able to send gif images (.gif), it is giving error "Couldn't load content". I am converting the image to data & then sending the data in array through UIActivityViewController. Here, I am firing a notification with the details & extracting the gif path & then processing it. NSDictionary *dictAsset = [notification userInfo]; NSData *imageData = [NSData dataWithContentsOfFile:dictAsset[@"path"]]; NSArray *imageToShare = [NSArray