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”.

Create Facebook App

Setup steps for app type:

    • Select the option “Other”.
Select type Other

 

    • For app type, select “Business”.
Select Business App

 

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

 

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

Get App ID and Secret

 

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.

Add Facebook Login

 

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

Configure SDK Login

 

5. Set up Messenger and Webhook

Add the domain where Chatwoot is installed to App Domain in the general settings section.

Configure App Domain

 

Add Product Messenger and configure Callback URL.

Add Messenger Product

 

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

Configure Callback URL

 

Warning: Ensure the Facebook app subscription version is 17.0. Update in the Webhooks options if necessary.

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_management
  • pages_read_engagement (Read user profile data)
API Version

 

DPS.MEDIA

Ý kiến bạn đọc (9)

DPS SECURITY

Đă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.

duc_it
duc_it Experts 02/09/2026

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?

Mê Công Nghệ
Mê Công Nghệ 02/09/2026

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.

Hùng
Hùng 02/09/2026

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.

tranthidung1604
tranthidung1604 02/09/2026

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?

luongquanghung98
luongquanghung98 02/09/2026

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.

ktshoangdung
ktshoangdung 02/09/2026

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.

Nguyễn Hải Nam
Nguyễn Hải Nam 02/09/2026

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.

Café Đắng
Café Đắng 02/09/2026

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.

Kỹ Sư Quèn
Kỹ Sư Quèn 02/09/2026

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.

Ready to scale your revenue with DPS.MEDIA?

Partnering with 5,400+ SMEs to optimize marketing costs, elevate brand authority, and automate growth with 2026 AI technology.