Create a Meta for Developers account
- Visit Meta for Developers and create an account if you do not already have one.
- Login with your Meta for Developers account.
Create a Meta app
- Select Apps in the top menu and click the Create App button.
- Select Business and the business portfolio, then click the Next button.
- Fill out the required fields like App name and App contact email, then click the Create app button.
Add Messenger product
In the App Dashboard, under Add a product section, find Messenger and click the Set Up button.
Messenger API Setup
Generate Access Tokens
Step One – Connect to Facebook page
First you have to connect to your Facebook page.
Step Two – Add Webhook Subscription
Click on Add Subscription.
Select messages checkbox and click Confirm.
Step Three – Generate Token
Click the Generate button.
Select “I understand” checkbox.
Copy and save the Token ID to Notepad file. Then click Done.
Copy the Page ID and save to Notepad file.
Step Four – Partner Portal Facebook Account
Login to Partner Portal, navigate to Cloud Services -> Connectors -> Facebook page.
Click on New Facebook Account button.
The UCX must be licensed for Omnichannel.
Enter the UCX Serial Number. Upon entering the Serial Number, the Facebook Webhook URL will be generated. Copy and save this URL to Notepad file.
Proceed to enter the Page ID and Facebook Token saved in Notepad file.
Then click the Save button.
Configure Webhooks
Go back to Meta for Developers account, navigate to Messenger -> Messenger API Setup. Go to Configure webhooks section and click the Configure button.
Enter the Facebook Webhook URL saved in Notepad file.
Enter the same Facebook Token in the Verify Token field, click Verify and save button.