facebook-messenger

res.send(200) issue on facebook messenger bot

旧街凉风 提交于 2019-12-24 20:42:28
问题 I am trying to build a facebook messenger bot using nodejs. I got the bot developed with core features. While testing for a negative scenario where the user sends in a GIF or sticker, it has to respond "I couldn't get you. Sorry". It does send that message but it hangs and keeps sending that message thereafter every few minutes. I noticed that the ngrok server threw an 500 HTTP Internal Server Error for the POST request. On further debugging, I was able to find out that res.send(200) is not

Date picker webview for Facebook Messenger bot - cannot bring field value back to bot's input field

偶尔善良 提交于 2019-12-24 11:22:55
问题 I'm working on a chatbot with Dialogflow & Messenger. The webhook is been written in Python 3.x. I'm facing problem with how to transfer data from webview to the messenger chat window again to continue conversation with user. Messenger chatbot is integrated with Dialogflow (v2). I've added a button for choosing date by the user. When the user clicks on the button, it redirects to an external website where I host the HTML page for datepicker. The webhook payload button contains --> "messenger

Reduce ios keyboard height

不羁的心 提交于 2019-12-24 10:47:44
问题 How can I reduce the height of keyboard in iOS? I couldn't find any api that I can use to achieve this objective. My client noticed that Facebook messenger and builtin iMessage app on iPhone 6 has a keyboard which is a little bit small in height than keyboard in my app. Is it because they are using custom keyboard or there is a way in iPhone 6 to reduce the height? I am posting screenshots below from both apps so that you can compare them. This is from Facebook messenger app. http://postimg

where can I find error code information for facebook bot send api?

◇◆丶佛笑我妖孽 提交于 2019-12-24 08:10:24
问题 I am sending daily messages to my bot users and I am getting error for some users which says error messages like: (#100) No matching user found or (#551) This person isn't receiving messages from you right now but Facebook doesn't have proper error documentations for these errors.. did anyone else come across these issues? 回答1: After digging a bit in the bugs platform of Facebook I found some interesting threads. For the No matching user found It appears that the end user could have delete

Facebook Messenger API: “Failed to fetch the file from the url” when the file exists

China☆狼群 提交于 2019-12-24 07:05:41
问题 I am currently attempting to send a hosted image as an attachment using the Facebook Messenger Send API. I make a POST request like the following: {"message": {"attachment": {"payload": {"url": "http://url.com/image"}, "type": "image"}}, "recipient": {"id": 129760000000000}} When I access the given URL using a browser, it displays the image. However, the API always returns an error: {'error': {'code': 100, 'type': 'OAuthException', 'fbtrace_id': 'GlCkjxuGMw0', 'error_subcode': 2018008,

Facebook Messenger Bot: Size of Video Attachment? How big can it be?

我是研究僧i 提交于 2019-12-24 04:05:10
问题 There is no indication as to the the size and format that a video attachment needs to be when being sent through Facebook Messenger, at least in the documentation here: https://developers.facebook.com/docs/messenger-platform/send-api-reference/video-attachment. Is there a limit on size? What format does it need to be in? 回答1: I was looking for this information too. I decided to try to upload files of different size to see what happen. When you try to upload files bigger than 25MB, Facebook

Debugging/testing facebook messenger bot

◇◆丶佛笑我妖孽 提交于 2019-12-24 00:52:35
问题 For testing purposes I usually put some logs or debugger into my code, probably as everybody does. To test my bot I would like to do the same but is there even a way to test/debug the messenger bot locally, or do I always have to deploy my tests? 回答1: Just fill the webhook url with the url that you use for testing. You can send something to bot, and bot can receive the messages(if you are the administrator of the app). from the received messages you could get your sender_id , you can use the

Messenger not displaying images in Generic template in mobile App

余生长醉 提交于 2019-12-23 09:39:43
问题 I'm sending Facebook a structured message with a URL to an image file (the file is in Amazon S3). The message is structured according to https://developers.facebook.com/docs/messenger-platform/send-api-reference/generic-template (Generic template). The message is being received and shown just fine - but the image doesn't appear in the mobile iOS Messenger app (I didn't test Android). It DOES appear in the web version of Messenger. Anyone know what can cause this? Thanks in advance! 回答1: This

How to send an image hosted on Amazon S3 through the Facebook Messenger Send API?

£可爱£侵袭症+ 提交于 2019-12-23 08:10:11
问题 The messenger Send API gives me back the response (#546) The type of file you're trying to attach isn't allowed. Please try again with a different format. error code: 546, error_subcode: 154502 However, if I host the same exact image on Google Cloud instead of Amazon S3, then the image sends fine. My link to the AWS image: https://s3.amazonaws.com/paloma-staging-public/files/conversation-step-56-80925.gif My link to the google cloud image: https://storage.googleapis.com/callparty/thumbsup.gif

Unable to subscribe the App to the Page

对着背影说爱祢 提交于 2019-12-23 04:08:54
问题 I'm following the getting started tutorial(https://developers.facebook.com/docs/messenger-platform/quickstart) and this tutorial(https://github.com/jw84/messenger-bot-tutorial) to create a simple bot for messenger. I have created a fb page and an app. I've got one Heroku server running and have successfully done the webhook setup. I've also generated the page access token. Now when I try to subscribe the App to the Page using: curl -ik -X POST "https://graph.facebook.com/v2.6/me/subscribed