Facebook Integration
Integrate your Facebook Page to allow agents to reply to comments, messages, and interact with your audience.
Prerequisites
To connect a Facebook Page, you need:
- Facebook Page: A published Facebook Page where you are an Admin.
- Meta Business Suite: Access to the business account managing the page.
- Facebook Developer App (if connecting via API manually): An app with the
pages_messagingandpages_manage_metadatapermissions.
Configuration
Step 1: Create/Select a Meta App
- Go to Meta for Developers .
- Create a new app or select an existing one.
- Add Messenger and Webhooks products to your app.
Step 2: Generate Access Token
- In your App Dashboard, go to Messenger > Settings.
- Scroll to Access Tokens.
- Select your Facebook Page.
- Copy the generated Page Access Token.
Step 3: Configure Webhooks
- Go to Webhooks in your App Dashboard.
- Select
Pagefrom the dropdown. - Click Subscribe to this object.
- Enter your Callback URL:
https://your-api-domain.com/api/integrations/facebook/webhook - Enter a Verify Token (you will need to configure this in your environment variables).
- Subscribe to
messagesandmessaging_postbacksfields.
Usage
Once connected, the agent will automatically listen for incoming messages on your Facebook Page and reply based on its configured behaviors.
Last updated on