Documentation Index
Fetch the complete documentation index at: https://chatbotx.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
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)
If you are developing locally, you will need a tunneling tool such as ngrok to expose your local server to the internet.
Step 1: Create a Facebook App
Create a new app
Go to the Facebook Developer Portal and click Create App.

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.Enter your App credentials

| Field | Description | Where to find it |
|---|---|---|
App ID | Your Facebook App ID | Settings → Basic |
App Secret | Your Facebook App Secret | Settings → Basic → click Show |
Webhook Verify Token | Random string for webhook verification | Self-generated |
API Version | Facebook API version (use v25.0) | Settings → Advanced |
Step 3: Configure Facebook Login
Step 4: Configure the Facebook App
Configure the webhook
In the Messenger settings, 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
In ChatbotX, create a Messenger chatbot and select the Facebook Page you want to connect. See Connect Facebook Messenger for step-by-step instructions.
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
In the Messenger settings, click Connect next to the page you selected for your ChatbotX chatbot.

Send a test message
Send a test message to your page from your personal Facebook account. It should appear in ChatbotX shortly after.
Going to Production
Before your app can receive messages from real users, Facebook must review and approve it.Submit for App Review
Follow the Facebook App Review process to get your app verified.
Request advanced access
Request advanced access to the permissions below:Required permissions
Optional permissions
| Permission | Purpose |
|---|---|
pages_messaging | Send messages on behalf of your Page |
pages_show_list | List Pages available to connect in ChatbotX |
pages_manage_metadata | Subscribe webhooks on behalf of the Page |
| Permission | Purpose |
|---|---|
pages_user_gender | Access a user’s gender via the connected Page |
pages_user_locale | Access a user’s locale via the connected Page |
pages_user_timezone | Access a user’s timezone via the connected Page |
pages_utility_messaging | Send utility messages and manage messaging templates |
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.













