Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →
ChannelsSocialFacebook Integration

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:

  1. Facebook Page: A published Facebook Page where you are an Admin.
  2. Meta Business Suite: Access to the business account managing the page.
  3. Facebook Developer App (if connecting via API manually): An app with the pages_messaging and pages_manage_metadata permissions.

Configuration

Step 1: Create/Select a Meta App

  1. Go to Meta for Developers .
  2. Create a new app or select an existing one.
  3. Add Messenger and Webhooks products to your app.

Step 2: Generate Access Token

  1. In your App Dashboard, go to Messenger > Settings.
  2. Scroll to Access Tokens.
  3. Select your Facebook Page.
  4. Copy the generated Page Access Token.

Step 3: Configure Webhooks

  1. Go to Webhooks in your App Dashboard.
  2. Select Page from the dropdown.
  3. Click Subscribe to this object.
  4. Enter your Callback URL: https://your-api-domain.com/api/integrations/facebook/webhook
  5. Enter a Verify Token (you will need to configure this in your environment variables).
  6. Subscribe to messages and messaging_postbacks fields.

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