Skip to content

Facebook ​

Polls Facebook Page Messenger conversations for incoming messages. This adapter does not read the retired Page notifications feed.

Pollen Types ​

TypeDescription
facebook_messageA newly observed incoming message in a watched Page conversation

Setup ​

Create an appropriate Meta app, connect the Messenger product to the Pages you operate, obtain a Page access token with the permissions Meta currently requires for conversation/message access, and export it:

bash
export FACEBOOK_PAGE_TOKEN="your-page-access-token"
/hive hire facebook

Meta app review, Page roles, token lifetime, permissions, and supported fields vary by app and API version; follow the current Messenger Platform and Graph API documentation.

Configuration ​

json
{
  "facebook": {
    "enabled": true,
    "token_env": "FACEBOOK_PAGE_TOKEN",
    "api_version": "v25.0",
    "watch_pages": ["numeric-page-id"],
    "max_items": 100,
    "max_pages": 3,
    "pages_per_poll": 2,
    "conversations_per_page": 4
  }
}
FieldDefaultDescription
token_envFACEBOOK_PAGE_TOKENPage-token environment variable
api_versionv25.0Explicit Graph API version
watch_pages[]Up to ten unique numeric Page IDs
max_items100Conversation/message page size, from 1 to 100
max_pages3Per-resource page cap, from 1 to 5
pages_per_poll2Pages rotated through per poll, from 1 to 10
conversations_per_page4Conversations processed for each selected Page, from 1 to 20

Polling is deliberately bounded. Use Meta webhooks for high-volume or low-latency Messenger workloads.

Released under the Apache 2.0 + Commons Clause License.