Prerequisites
Before you begin, make sure you have:- A valid Facebook account
- A Facebook Page you own or administer
- A ChatbotX installation with a publicly accessible URL (required for both the webhook callback and the OAuth callback when connecting your Page)
Step 1: Create a Facebook App
Create a new app

Enter app details

Select a use case

Choose app type

Finish creation

Get your App ID and App Secret

Step 2: Configure Credentials in ChatbotX
A Super Admin must enter the Facebook App credentials in ChatbotX before the integration can work. Complete this step immediately after obtaining your App ID and App Secret.Open Integrations

Open Integrations

Enter your App credentials

Save

Step 3: Configure Facebook Login
Add the Facebook Login product

Configure Facebook Login settings
- Enable Web OAuth Login
- Enable Login with JavaScript SDK
- Add your self-hosted domain to Allowed Domains for the JavaScript SDK

Step 4: Configure the Facebook App
Add your app domain

Add the Messenger product

Configure the webhook
- Callback URL: Use the Webhook URL generated by ChatbotX in Step 2 (for example,
https://app.yourdomain.com/integrations/messenger/callback) - Verify Token: Enter the Webhook Verify Token value you configured in the ChatbotX Integrations settings (Step 2)

Create a Messenger chatbot in ChatbotX
Step 5: Test before Going to Production
Facebook does not forward page messages to your webhook until your app is approved for production. Use the steps below to test your integration first.Connect your Facebook Page

Add subscriptions

Select subscription fields

Send a test message
Verify locally (if applicable)
/bot endpoint in your ngrok terminal.Going to Production
Before your app can receive messages from real users, Facebook must review and approve it.Submit for App Review
Request advanced access
API Version
ChatbotX supports Facebook API v25.0. Make sure your app is configured to use this version.- Update the API version under Settings → Advanced in your Facebook app.
- Verify that your webhook subscription version is also set to v25.0 under the app’s Webhooks settings.
