Facebook Pages inbox API
PubNio's Facebook Pages inbox reads Messenger conversations, comments on the Page's posts, and mentions of the Page in posts and comments. It syncs them from webhooks plus a pull every 6 hours and holds messages to a 24-hour reply window (provider rules checked 2026-12-05).
Status
Not yet confirmed against a live Meta account: that Graph accepts the comment re-read fields id,from,message,created_time,like_count,comment_count,parent,is_hidden,user_likes,permalink_url, that hide and unhide take effect and answer {"success": true}, and that the Page mention webhook carries comment_id. PubNio's tests run this inbox against fixtures, so the rest of this page is what PubNio's code does, not what Meta has been seen to do for a connected Page.
What the inbox reads
| Channel | Read | Writes | Attachments | Sync |
|---|---|---|---|---|
| Direct messages | Yes | send | Yes | Webhook, re-read every 6 hours |
| Comments | Yes | reply, hide, unhide, like, unlike, delete | Yes | Webhook, re-read every 6 hours |
| Mentions | Yes | reply | No | Webhook, re-read every 6 hours |
- A mention is a public post that tags the Page, read from the Page's
taggededge, or a mention of the Page in a comment. A reply to a mention posts a comment on the post that holds it. - A mention in a comment arrives on the Page's
mentionwebhook field. Meta's Page webhooks reference, read 2026-12-05: "Describes new mentions of a page, including mentions in comments, posts, etc." When the webhook carries acomment_id, PubNio stores the mention under that comment's ID with kindcomment, apart from the post that holds it. - Comment threads are the Page's own posts with their comment counts. A re-read of a post's comments asks Graph for
id,from,message,created_time,like_count,comment_count,parent,is_hidden,user_likes,permalink_url, so each comment carries its like count, reply count, parent, whether the Page liked it, and whether it is hidden. - When a message arrives by webhook, PubNio copies its attachments into its own storage: images, video, audio, and PDF, up to 25 MiB a file and 100 MiB a message. A file over the limit or of another type keeps its metadata but no bytes.
Reply window
Policy 24_hours. A direct message to someone whose last message is more than 24 hours old fails with HTTP 409 inbox-reply-window-closed, before PubNio calls Facebook. Comment and mention replies have no window.
- Messenger gives a business 24 hours after a person's last message to answer it. PubNio checks the same 24 hours from the last inbound message it stored before it calls Messenger; a conversation with no stored inbound message has no open window.
- PubNio sends each message with
messaging_typeRESPONSE, Messenger's type for an answer to a received message.
Sync
Webhooks bring new items as they happen. Each channel is also re-read 6 hours after its last pull, to catch anything a webhook missed.
- PubNio subscribes the Page to its
feedwebhook field for comments andmessagesfor Messenger, which needspages_manage_metadata. If Meta refusesmessagesfor lack of messaging access, PubNio keeps thefeedsubscription: comments still arrive by webhook, messages do not. It then addsmention,leadgen, and Messenger's delivery, read, edit, reaction, and referral fields, one at a time if Meta refuses the set, so a field Meta refuses does not drop the others.
Scopes
| Channel | Scopes | Page task |
|---|---|---|
| Direct messages | pages_messaging | MESSAGING |
| Comments | pages_manage_engagement | MODERATE |
| Mentions | pages_manage_engagement | MODERATE |
Without a scope, reads keep working: the capabilities response lists it in missingScopes and drops send, reply, hide, like, and delete until the account reconnects with it. A write the channel lacks fails with HTTP 422 capability-unsupported.
- A scope is not enough on a Page: the person who connected it also needs the
MESSAGINGtask to send andMODERATEto reply, hide, like, or delete. A missing task shows inmissingTasksand removes the writes, as a missing scope does.
Capabilities response
What the inbox capabilities endpoint returns in `accounts[]` for a Facebook Page connected with every scope and Page task above. The other fields (`accountId`, `publishingReadiness`, `accountCapabilities`, `lastSyncError`, `deliveryGap`, `checkedAt`) are left out.
{
"provider": "facebook",
"accountKind": "social_page",
"messaging": {
"resource": "conversation",
"supported": true,
"operations": ["list", "read", "send"],
"attachments": true,
"quickReplies": true,
"buttons": true,
"readReceipts": true,
"moderation": false,
"syncMode": "webhook_with_reconciliation",
"backfillDays": 90,
"missingScopes": [],
"missingTasks": [],
"unavailable": null
},
"comments": {
"resource": "comment_thread",
"supported": true,
"operations": ["list", "read", "reply", "hide", "unhide", "like", "unlike", "delete"],
"attachments": true,
"quickReplies": false,
"buttons": false,
"readReceipts": false,
"moderation": true,
"syncMode": "webhook_with_reconciliation",
"backfillDays": 30,
"missingScopes": [],
"missingTasks": [],
"unavailable": null
},
"mentions": {
"resource": "mention",
"supported": true,
"operations": ["list", "read", "reply"],
"attachments": false,
"quickReplies": false,
"buttons": false,
"readReceipts": false,
"moderation": false,
"syncMode": "webhook_with_reconciliation",
"backfillDays": 30,
"missingScopes": [],
"missingTasks": [],
"unavailable": null
},
"replyWindow": {
"open": true,
"policy": "24_hours",
"endsAt": null
}
}
Limits
- Meta keeps the window open for up to 7 days after someone messages from a Click-to-Messenger ad. PubNio does not know a conversation came from an ad and refuses those replies after 24 hours.
- No message tags, templates, or one-time notifications: a send carries only
text, so a message outside the window cannot be sent through PubNio at all. - Hide and unhide post
is_hiddenastrueorfalseon the comment; Meta's Comment reference, read 2026-12-05, describes it as "Is this comment hidden? Only applicable to Page comments". Only Graph's{"success": true}counts as done: any other answer fails the action and the comment keeps its stored state. - PubNio clears message, comment, and mention text 90 days after the network created it, and deletes stored attachments after 30 days.
Sources
- Graph API: Page Tagged, read 2026-12-05
- Webhooks reference: Page, read 2026-12-05
- Messenger Platform and IG Messaging API policy, read 2026-12-05
- Send a message - Messenger Platform, read 2026-12-05
- Permissions Reference for Meta Technologies APIs, read 2026-12-05
- Graph API: Comment, read 2026-12-05

