# Facebook Messenger

> Connect your Facebook Page inbox so your agent answers Messenger conversations automatically through the Meta Graph webhook.

The Messenger channel connects your agent to a Facebook **Page inbox**. People message your Page, Meta forwards each message to a Bookbag webhook, and the agent replies from your knowledge through the Graph API.

> **PREREQUISITES:** A Facebook Page, a Meta app with the `pages_messaging` permission, and a Page access token.

## Connect Messenger

1. **Enable the Messenger channel** — On the agent's Deploy tab, open the Facebook Messenger card and choose Connect.
2. **Save your credentials** — Enter the Page access token and the Graph send URL for outbound replies.
3. **Set the webhook in Meta** — Set your Meta app's callback URL to the Messenger inbound webhook from the channel card, choose a verify token, and subscribe the Page to messaging events.
4. **Verify** — Meta's GET challenge is answered automatically, completing the subscription.

## Inbound message handling

Bookbag parses Meta's standard messaging envelope, reads the sender ID and message text, runs the agent, and replies back to the sender through the Graph API using your Page token.

> **BINDING MULTIPLE PAGES:** If you manage several Pages, store each Page's identifier as the channel's external reference so inbound webhooks route to the right agent.

## What's next

- [Instagram](/docs/deploy/instagram) — Answer Instagram DMs with the same Meta setup.
- [WhatsApp](/docs/deploy/whatsapp) — Add WhatsApp Cloud API support.
- [Help Desk](/docs/help-desk/overview) — Route escalations into one inbox.
