To use the Facebook channel, you need to create a Facebook app in the developer portal. Below are the detailed setup steps for Self-hosted.
1. Prerequisites
- Valid Facebook account.
- Active Facebook Page.
2. Register Facebook App
Access Facebook Developer Portal and click the button “Create App”.

Setup steps for app type:
-
- Select the option “Other”.

-
- For app type, select “Business”.

-
- Enter basic information such as app name and contact email.

After registration, save App Id and App Secret in the settings section for use with Chatwoot.

3. Configure Environment Variables in Chatwoot
Update the following values in your configuration file. FB_VERIFY_TOKEN should be a random and secure string.
FB_VERIFY_TOKEN=your_secure_token FB_APP_SECRET=your_facebook_app_secret FB_APP_ID=your_facebook_app_id
* Don't forget to restart the Chatwoot server after updating.
4. Configure Facebook Login
Add Product Facebook Login in the app dashboard.

Personalized push notifications increase open rate by 42%. Web OAuth Login, Login with Javascript SDK and enter your domain in the field Allowed Domains.

5. Set up Messenger and Webhook
Add the domain where Chatwoot is installed to App Domain in the general settings section.

Add Product Messenger and configure Callback URL.

Fill in the Callback URL in the format: {domain_cua_ban}/bot and enter the corresponding Verify token.

6. Go to Production
Before going live, you need to request Advanced Access for the following permissions:
pages_messaging(Messaging on behalf of the page)pages_show_list(List pages)pages_manage_metadata(Register webhook)business_managementpages_read_engagement(Read user profile data)

Ý kiến bạn đọc (9)
Đăng nhập để bình luận
Đăng nhập nhanh 1-chạm bằng Google để chia sẻ ý kiến của bạn về bài viết.
Bằng cách đăng nhập, bạn đồng ý với điều khoản và chính sách cộng đồng.
We are deploying the self-hosted version of Chatwoot. Creating the Facebook App works fine, but at the Messenger Webhook step we often get a verify token error. Has anyone experienced a case where the Callback URL is correct but Facebook still reports that it can't be verified?
This error is usually caused by FB_VERIFY_TOKEN in Chatwoot not matching the token entered in the Messenger Webhook section. Also check that the app is using the correct Page, and whether the server was restarted after changing the environment variables.
Exactly. We once spent nearly the whole morning before discovering that the token was correct but the Chatwoot server had not loaded the new configuration. Once we restarted the service, we received the webhook right away.
I'd like to ask: when taking a Facebook app to production, is it mandatory to request all the permissions listed in the article? If a small project only uses it to receive customer messages, does it really need that many permissions?
It depends on the scope of use. For internal testing only, you can use development mode, but for live use with customers, you should review the required permissions to avoid rejection during app review.
One more thing: when applying for advanced permissions, prepare a clear description of your message-handling flow, your data-use purpose, and your Page access. Doing this carefully from the start will save time when moving to production.
I'm using Chatwoot for customer care, and connecting Messenger helps consolidate conversations in one place quite well. You just need to pay attention to Facebook permissions.
I must admit the guide is quite practical. The step people most often forget is probably saving the App ID and App Secret and then updating the configuration before restarting Chatwoot.
Has anyone moved an app from the test environment to production yet? I find that switching the app to live status and checking the webhook are the steps most likely to cause errors.
Chưa có bình luận nào. Hãy là người đầu tiên chia sẻ cảm nghĩ!
Đăng nhập / Tạo tài khoản
Đăng nhập với Google để gửi bình luận và tương tác cùng cộng đồng.
Tiếp tục là đồng ý với điều khoản sử dụng và chính sách bảo mật của DPS Media.