Prerequisites
Before you begin, make sure you have:- A valid Facebook account
- A Facebook Page you own or administer
- Super Admin access to your portal to input configurations
If you are developing locally, you will need a tunneling tool such as ngrok to expose your local server to the internet to receive Facebook webhooks.
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 the Admin Portal
You must enter the Facebook App credentials in the Admin Portal to enable the Messenger connection feature for your customers.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 Webhooks on the Facebook App
Add your app domain
Under Settings → Basic, add your portal domain (e.g., 
app.chatconnectx.com) as an app domain.
Configure the webhook
In the Messenger settings, configure the webhook:
- Callback URL: Use the Webhook URL generated by the Admin Portal in Step 2 (e.g.,
https://app.chatconnectx.com/integrations/messenger/callback) - Verify Token: Enter the Webhook Verify Token value you configured in the Admin Portal (Step 2)

Step 5: Test before Going to Production
Meta does not forward page messages to your webhook until your app is approved Live. You need to add a tester account to verify it first.Connect your Facebook Page
In the Messenger settings of the Facebook App, click Connect next to the page you want to use for testing.

Going to Production
Before your app can receive messages from real users, Meta 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 |
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
The system 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.












