
Prerequisites
- A Facebook account.
- Access to Facebook (Meta) Messenger.
- Access to the Facebook (Meta) Developer Center.
Generic Endpoint Settings
Learn about the generic Endpoint settings on the following pages:- Endpoints Overview
- Data Protection & Analytics
- Transformer Functions
- NLU Connectors
- Session Management
- Handover Settings
- Real-Time Translation Settings
- Inject and Notify
- Copilot
Specific Endpoint Settings
Facebook Page Setup
Facebook Page Setup
Facebook Profiles
Facebook Profiles
Messenger Settings
Messenger Settings
How to Set Up
1. Create a Facebook Page and a Facebook App
1. Create a Facebook Page and a Facebook App
- Log in to your Facebook account. Go to the Pages section.
- Click Create New Page, select a type (Business or Community), and provide a name and category.
- Go to the Facebook (Meta) Developer Center.
- Click Manage Apps, then Add a New App.
- Fill in the required details to complete the app creation.
- In your app’s product overview, locate Messenger and click Set Up.
2. Generate a Page Access Token
2. Generate a Page Access Token
- Go to Messenger > Access Tokens. Add the Facebook Page created earlier.
- Click Generate Token, acknowledge the warning, and copy the token.
3. Create a Messenger Endpoint
3. Create a Messenger Endpoint
- In the left-side menu of the Cognigy.AI Project, go to Deploy > Endpoints.
- On the Endpoints page, click + New Endpoint.
- In the New Endpoint section, do the following:
- Select the Messenger Endpoint type.
- Add a unique name.
- Select a relevant Flow from the list.
- Open the Facebook Page Setup section. Paste the Page Access Token from the Facebook App.
- (Optional) Enter your App ID and App Secret for additional security.
- Copy the Endpoint URL for later use.
4. Configure Webhooks
4. Configure Webhooks
- Go to the Facebook app. Under Messenger > Webhooks, click Add Callback URL.
- Paste the Endpoint URL as the callback URL.
- Enter the Verify Token from Cognigy.AI:
- For
https://trial.cognigy.ai, use the token6a1ed94ef26462d1a529ab80afabe135e5ac7cc8b414ef762e1208f3339f887196d3433c996c0f30ea15295fbd86293cd7516abaa9b9e78d641ebb514eea32b4. - For other environments, contact Cognigy technical support for more information.
- For
- Click Verify and Save.
- Add Subscription Fields: select
messages,messaging_postbacks, and optionallymessaging_referrals. Save the settings.