Connect Facebook Messenger and build within its limits
Connect your bot to a Facebook Page, and build scenarios that look right in Messenger.
Understand how Messenger works with your bot
With the Messenger integration, your bot answers the messages people send to your Facebook Page. Users open a chat with the Page like with any other Page, and the bot works as it does in the chat widget.
You connect a Facebook app to Ebbot App with two values: a Page Access Token from Meta, and a Callback URL from Ebbot App. Meta changes its developer pages from time to time, so the names in Meta can differ slightly from the steps below.
Connect Messenger
🛠️ Let's connect it:
- In Ebbot App, go to Settings → Channels → User and open the Messenger settings. Keep the page open.
- Make sure you have a Facebook Page for your organization. Create one first if you don't.
- Go to Meta for Developers and create a new app. Give it a name that shows what it is, for example your organization's name followed by "Messenger".
- In the app, add the Messenger product.
- In the Messenger settings in Meta, go to Access Tokens and select your Facebook Page. If Meta asks for more permissions, click Edit Permissions and give them.
- Copy the Page Access Token and paste it into the Page Access Token field in Ebbot App.
- In Meta, go to Webhooks and click Subscribe to Events.
- Copy the Callback URL from Ebbot App and paste it into the Callback URL field in Meta.
- Enter a verify token in Meta, for example
yourcompany-messenger-token. Use dashes instead of spaces. - Under the subscription events, select messages and messaging_postback, then click Verify and Save. If you get an error, wait a few seconds and try again.
- In the app settings in Meta, add an app icon, a privacy policy URL, a category and a business use case.
Build scenarios that fit Messenger
Messenger shows buttons in its own way. Plan your scenarios for this, or users will miss options.
- Use at most three buttons in one message. If a message has more than three buttons, Messenger doesn't show them. Split long choices into several messages, with three options or fewer in each.
- Keep button texts short. Messenger shows about 14 to 20 characters of a button text. The exact number depends on how wide the letters are. Longer texts are cut off with three dots, and users can't see the rest, not even when they point at the button.
Messenger supports text, EbbotGPT answers, lists, carousels, locations, images and files, input fields and multiple choice. The full list is in the Messenger channel integration guide.
Fix a Messenger bot that stopped answering
A Page Access Token can expire, or its permissions can change. Meta usually sends you an email when this happens.
- In Meta for Developers, open your app and find the token for your Page.
- Generate a new token.
- Paste the new token into the Page Access Token field in Ebbot App.
If the bot still doesn't answer, click Support in Ebbot App, or Ask our support at the top of this page.
💡 Pro-Tip
Before you connect Messenger, go through your scenarios and look for messages with more than three buttons or long button texts. Fix them first, so your users never miss an option.