Connect Facebook Messenger to Dchat
Setup guide · Messenger
Answer messages sent to your Facebook Page from the Dchat inbox, with the AI replying first and your team taking over when needed.
Before you start
- Difficulty: Hard
- Time: 30–60 minutes
- You need: A Facebook Page you manage
- You need: A Meta developer app with Messenger and Webhooks set up
- You need: Admin or owner access to your Dchat workspace
Steps
Collect your values from Meta
You need your Facebook Page ID, a Page access token for that Page, and your Meta app's app secret.
Add the channel in Dchat
In Dchat, open Settings → Channels and choose + Add channel. Pick "Facebook Messenger", put the Page ID in the identifier field, and paste the credentials. Choose any verify token without spaces.
{ "PageAccessToken": "EAAG...", "AppSecret": "...", "VerifyToken": "any-phrase-you-choose" }Point Meta's webhook at Dchat
In your Meta app's Messenger webhook settings, set the callback URL below and the same verify token. Subscribe your Page to the messages field.
https://api.dchat.com/api/inbound/meta
Send a test message
Message the Page from a personal account. It lands in your Dchat inbox, and the AI replies if AI is on for your workspace.
What goes in each field
PageAccessToken: A Page access token for the Page you are connecting.AppSecret: Your Meta app's app secret, used to check Meta's signature on every webhook.VerifyToken: Any phrase without spaces; the same one goes into Meta's webhook settings.
Good to know
- Page messages only. Replies to post comments are not supported.
- Text, quick-reply taps, photos and PDFs (up to 5 MB) are handled; Messenger postback buttons are not.
- Replies are up to 2,000 characters with up to 13 quick replies.
- While your Meta app is in development mode, only people with a role on the app can message it. Accepting messages from the public needs Meta's app review.
- Your workspace needs at least one enabled site; new workspaces have one already. Messages are dropped while every site is switched off.
- Credentials are encrypted when you save them and are never shown again. To change one, paste the full credentials again.
One-click "Connect with Facebook" is not available yet; until it is, Messenger uses tokens from your own Meta app.