Facebook Messenger API for Page messages and replies
The Facebook Messenger API brings Page messages into a SaaS, CRM, or support product. Messenger events, conversation history, and replies all go through the same bundle.social API you already use for other workflows.
Last updated: October 2026
Official APIsDirect engineer support
{ "type": "conversation.message.created", "data": { "id": "msg_456", "conversationId": "conv_456", "teamId": "team_123", "socialAccountId": "sa_facebook_1", "platform": "FACEBOOK", "direction": "INBOUND", "status": "DELIVERED", "source": "DM", "externalMessageId": "m_example_456", "text": "Track my order", "attachments": [], "sentAt": "2026-09-26T10:15:00.000Z", "failedAt": null, "seenAt": null, "error": null, "platformData": { "isPostback": true, "postbackPayload": "ORDER_STATUS" }, "createdAt": "2026-09-26T10:15:01.000Z", "updatedAt": "2026-09-26T10:15:01.000Z" }}- customers
- 17,242+
- connected accounts
- 1.09m+
- uptime
- 99.881%
- Trustpilot
- 4.8 / 5
Messenger conversations with Page context
Page-owned conversations
Every Messenger thread is linked to the Facebook Page it belongs to and to that Page's team.
Message and payload events
Text messages, button taps, and menu selections arrive as events your application can act on.
Replies from your product
Replies go out under the Page's permissions, and bundle.social checks Messenger's reply rules before anything is sent.
How the Facebook Messenger API works
- 01
Connect the Facebook Page
Authorize the Page with the permissions Messenger needs. The integration works with Page conversations only. - 02
Enable messaging and receive events
Turn on messaging for the connected Page, then set up your backend to handle the message events. - 03
Route the conversation and reply
Your application looks at the thread and any button payload to decide what happens next. If the 24-hour window is still open, it replies.
Example
Connect Messenger to support queues and customer records
A message to a Facebook Page usually belongs somewhere specific, like an open support ticket or a CRM record you already have. Each event carries the Page, the sender, and the thread, which is enough for your application to route it to the right customer workspace.
On the Meta Messenger Platform directly, you would collect Page access tokens, subscribe each Page to the right webhook fields, verify Meta's request signatures, and store every event yourself. With bundle.social, the Page access token comes from the connect flow, and turning on messaging subscribes the Page to message, echo, edit, reaction, postback, read, and delivery events.
Each incoming Meta event has its signature checked and its retries deduplicated by message ID before bundle.social stores it as a conversation tied to the Page's social account and team. Your backend gets the same normalized message shape as for Instagram. Outbound Messenger messages go from SENT to DELIVERED to SEEN, and replies someone types in the Messenger app show up in the same thread with the ECHO source.
Meta's rules still apply. Free-form replies go out only within 24 hours of the person's last message, a private reply on Facebook has to answer a top-level comment within 7 days, and Messenger has no API for sending reactions. bundle.social runs these checks before the request reaches Meta, so your application gets a clear error.
Example: the webhook event for a Messenger button tap
A tap on a postback button in a Facebook Page conversation produces a conversation.message.created event. The button title becomes the message text, and the payload you set on the button is in platformData.postbackPayload.
Ordinary Messenger text messages use the same event and envelope, with the text in data.text and no postback fields. Respond to each event with a 2xx status within 15 seconds and process it afterwards.
Webhook event: conversation.message.createdRead the DM webhooks guide
Getting started
Connect a Page and complete messaging setup
Supported accounts and limits
- Messaging works with Facebook Pages only. Personal Facebook profiles cannot be connected for messaging.
- What you can send depends on the Page's permissions and Messenger's rules, such as the 24-hour reply window.
- The Get Started button and the persistent menu are configured separately for each Page.
- Under the bundle.social retention policy, Messenger messages are kept for 30 days. If you need a longer history, store webhook events in your own system.
- Data retention policy
FAQ
Questions developers ask before building
Does this work with personal Facebook profiles?
Can I use Messenger and Instagram through the same integration?
Can button and menu payloads drive my application workflow?
Do I need to enable messaging after connecting a Page?
Does the API provide my complete support interface?
Which plans include DMs and automations?
How long are messages and automation logs kept?
Connect Messenger conversations to your application
Start with one Facebook Page and route its first real message into your app.Message and automation allowances on paid plans are counted per connected account.