All questions related to chatbot development on the Facebook Messenger platform.
Questions tagged [facebook-messenger-bot]
795 questions
18
votes
1 answer
Can't use test user to access Facebook page with Messenger Bot app
I am trying to setup my first Facebook bot by following this sample project in Glitch, connected to this quick start help page.
I have logged in with a real user, then created an app and added a messenger product as per the instructions. I have set…

atineoSE
- 3,597
- 4
- 27
- 31
16
votes
1 answer
API authentication from a facebook messenger bot conversation
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…

Noam Hacker
- 4,671
- 7
- 34
- 55
10
votes
3 answers
Facebook messenger detect closing webview (mobile)
I have a messenger bot that provides users with links to a webpage. Is there a way to detect when the user closed the webview and therefore returned to bot conversation?
This question only applies to Messenger app on mobiles phones, desktop is…

Elwhis
- 1,241
- 2
- 23
- 45
10
votes
2 answers
creating a link that will open facebook messenger and send a message
i'm creating a registration code for users to a facebook messenger bot i am writing.
instead of asking them to open a chat with my bot, and type in the registration code, i would like to provide them a link that will open their facebook messenger on…

Adam Itshar
- 115
- 1
- 1
- 7
9
votes
1 answer
Use Messenger SDK to send file data
I have a webview that opens from a messenger bot.
From the webview I want to send image data to the conversation (no URL - data coming from the canvas).
I tried to use Messenger SDK beginShareFlow with file data attachment:
function…

Hodaya Shalom
- 4,327
- 12
- 57
- 111
9
votes
3 answers
Facebook messenger app webhook subscription - Insufficient Permission
I have facebook messenger application (it is bot using MS Bot Framework, although I don't think it is relevant). It has webhook subscribed to page events. It used to work fine until few days ago, when the webhook was unsubscribed from page and when…

Marek Bohm
- 93
- 1
- 9
8
votes
2 answers
Trigger a Dialogflow event periodically
I want my Dialogflow bot to send periodic messages through a Cronjob. I would do this by triggering an event through the /query endpoint. However, I am not sure how to get the sessionId. If I pass the last sessionId used, the response returns…

lzmartinico
- 159
- 7
8
votes
3 answers
551 error with Facebook Messenger bot - "This person isn't available right now"
I've written a simple bot for Facebook Messenger that takes a user's text, applies a simple transformation and immediately returns the result.
While testing it myself, I've never had a problem, but it seems that for some users, Facebook returns the…

Matt S.
- 9,902
- 6
- 29
- 25
8
votes
1 answer
Messenger bot using Rails: setup for multiple pages
I want to create a Messenger Bot used by different users for their Facebook pages. I created a rails app and use the facebook-messenger gem.
I successfully created the bot and it works when I do the set up for one page. Now, I follow the…

nico_lrx
- 715
- 1
- 19
- 36
7
votes
5 answers
Unsupported get request. Object with ID 'XXXXX' does not exist, cannot be loaded due to missing permissions, or does not support this operation
I want to use User Profile API from Facebook to get customer user data (first name, last name, picture). My app is reviewed, my app is connected to fanpage, i have pages_messaging and other permissions active. Webhooks are working correct, i receive…

ArturPie
- 81
- 1
- 1
- 4
7
votes
1 answer
Are there alternatives to Facebook's Graph API deprecated User fields "locale" and "timezone"?
I am helping develop a chatbot for Facebook Messenger which uses Facebook's Graph API v2.6. But now Facebook is asking us to submit the app for review.
The problem is that our app asks the API for, among other things, the user's locale and timezone.…

Pedro Machado
- 89
- 1
- 9
7
votes
1 answer
Facebook messenger bot quick replies occasionally don't appear on Android
I'm building a Facebook messenger bot and am finding that quick reply buttons occasionally don't appear on the Messenger client for Android -- I sometimes have to quickly swipe up and down for them to appear. This doesn't happen on the Messenger…

Gabriel
- 587
- 5
- 17
6
votes
5 answers
The Callback URL or Verify Token couldn't be validated. Please verify the provided information or try again later
I have been following the facebook bot setup guide and have setup a callback url that is running on an EC2 instance.
I am getting an error (see title of this) when trying to validate the callback url and verify…

Andy Johnson
- 61
- 1
- 1
- 4
6
votes
2 answers
How to generate a URL for chatting with a user in a Facebook page using the page scoped id PSID
We have a chatbot on Facebook Messenger Platform, we want to provide the admins an URL to chat with a specific user, for example: https://facebook.com//u/
Currently when opening a chatting thread in a Facebook page URL is…

MMayla
- 199
- 1
- 14
6
votes
1 answer
Identifying Facebook Messenger Lite users
Facebook Messenger Lite users cannot see galleries nor many of the other richer aspects of FB Messenger.
How should I identify users messaging via Facebook Messenger Lite (vs. FBM Full) so I can service them effectively without degrading the…

Ram
- 327
- 2
- 20