Facebook Page messaging

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

Webhook event: conversation.message.created
{  "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

  1. 01

    Connect the Facebook Page

    Authorize the Page with the permissions Messenger needs. The integration works with Page conversations only.
  2. 02

    Enable messaging and receive events

    Turn on messaging for the connected Page, then set up your backend to handle the message events.
  3. 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

Start a paid-plan trial, request messaging access for your organization, grant the Page permissions, and enable messaging. Send the Page a test message and check that it reaches your backend before you wire up replies or routing.
Read the setup guide

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?

No. It works with Facebook Pages and the messages people send them on Messenger.

Can I use Messenger and Instagram through the same integration?

Yes. The Social Media DM API uses one conversation model for Instagram DMs and Facebook Messenger. Each platform keeps its own limits, so a phone button that works on Messenger is rejected on Instagram.

Can button and menu payloads drive my application workflow?

Yes. The payload you set on a button or menu item arrives with the event, so your application knows what the person picked. Get Started, persistent menus, and postbacks are set up in the provider settings and automations described in the docs.

Do I need to enable messaging after connecting a Page?

Yes. Granting Page permissions does not turn messaging on. You enable it as a separate step, which the setup guide walks through.

Does the API provide my complete support interface?

No. The API covers conversations and messages. Your application builds the support interface and decides how assignment, CRM links, and reporting work.

Which plans include DMs and automations?

bundle.social Pro includes 200 sent DMs and 200 automation runs per connected account each month. Business raises them to 1,000 sent DMs and 1,000 automation runs, and Enterprise limits are agreed per customer. Incoming messages don't count against the sent-DM allowance. DMs and automations are not available on the Free plan. DMs and automations are turned on per organization on request: email [email protected] with your organization ID.

How long are messages and automation logs kept?

bundle.social keeps messages and automation execution logs for 30 days. If your product needs a longer history, store the message events in your own database. The data retention documentation explains how old conversations are cleaned up.

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.