What you can do
- send Messenger messages from your connected Page
- receive incoming messages, reactions, reads, deliveries, postbacks, comments and post events in your webhook
- list connected channels and fetch channel tokens
- set or clear the webhook destination for a channel
- rotate a channel token if it leaks
- publish text, links, photos, videos and reels, and delete posts
- read Page and post insights
- list, reply to, hide and delete comments, and answer commenters in private
Authentication
Use two tokens:
Fetch the channel token with an
hmok_ API key:
hmat_ token to send:
hookmyapp channels token <channel>. The Page id is on GET /meta/channels/{id} as metaResourceId.
The channel token only reaches the Page it was minted for, and the Instagram account linked to that Page. Any other Page, post, comment or thread is refused with FACEBOOK_SCOPE_DENIED.
Next steps
- Send a message: Send Messenger messages.
- Receive webhooks: Handle inbound events and read the PSID.