In Botpress Studio, select Explore Hub in the upper-right corner.
Search for the Messenger and Facebook integration, then select Install Integration.
In the Configuration menu, select the drop-down menu, then select Configure by manually supplying the Meta app details.
2
Configure the integration
To configure the integration, you need to create a webhook endpoint for the Messenger integration. To do this, fill in the integration’s configuration fields using information from your Meta app:
Client ID
To get your Meta app’s client ID:
In your Meta app’s left sidebar, go to App settings > Basic.
Copy the App ID, then paste it in the Client ID field in Botpress.
Client Secret (Optional)
The client secret is used to check the webhook’s signature. You can leave this field empty to disable signature check.
To get your Meta app’s client secret:
In your Meta app’s left sidebar, go to App settings > Basic.
Copy the App secret, then paste it in the Client Secret field in Botpress.
Verify Token
Used by Meta to verify that you’re the real owner of the provided webhook. Can be any alphanumeric string.
Access Token
To get your Meta app’s access token:
In your Meta app’s left sidebar, go to Messenger > Messenger API Settings.
Scroll to Generate access tokens, then find your Facebook page.
Select Generate, then copy the token.
Paste it into the Access Token field in Botpress.
Page ID
To get your Meta app’s page ID:
In your Meta app’s left sidebar, go to Messenger > Messenger API Settings.
Scroll to Generate access tokens, then find your Facebook page.
Copy the number under your page’s name, then paste it into the Page ID field in Botpress.
When you’ve filled in all the fields, select Save Configuration. This will automatically enable your integration.
The integration is configured, but will only work for admins, developers, and testers. To make it available for public use, make sure you submit it for review by Meta.
You’ve manually configured your Messenger integration.
If you want to test your bot’s behaviour in Messenger before going through the actual setup process, you can use the Messenger integration playground.
When enabled, this option automatically downloads media files using the Files API. When disabled, media files are displayed using their Messenger media URL.