Skip to content

Webhook Events Reference

Updated: Jun 26, 2024

Webhook events are how the Messenger Platform notifies your bot when a variety of interactions or events happen, including when a person sends a message. Webhook events are sent by the Messenger Platform as POST requests to your webhook.

Note: You will need to subscribe all messaging apps for your business to the messaging webhooks.

List of Webhook Events

Below is a list of the events that can be sent to your webhook from the Messenger Platform.

Note: It is recommended that you use the latest API version to receive all information available for each webhook.

Messaging Webhooks FieldDescription
message_deliveriesA notification is sent when a message that was sent by your business has been delivered to a customer. Only available for Messenger conversations.
message_echoesA notification is sent when your business has sent a message. This separate webhook field is available only for Messenger conversations. For Instagram Messaging conversations, the message echo notifications are included with the message webhook field subscription.
message_editsA notification is sent when a customer edits a previously-sent message. Only available for Messenger conversations.
message_reactionsA notification is sent when a customer reacts to a message sent by your business.
message_readsA notification is sent when a customer reads a message sent by your business, for Messenger conversations. See messaging_seen for Instagram Messaging conversations.
messagesA notification is sent when your business has received a message from a customer from any conversation entry point. For Instagram Messaging, this subscription will also include notifications when your Instagram Professional account has sent a message since there is no separate message_echoes subscription field for Instagram Messaging.
messaging_account_linkingA notification is sent when a customer links or unlinks their Messenger account from their account with your business. Only available for Messenger conversations.
messaging_feedbackA notification is sent when a person has submitted feedback for your business. Only available for Messenger conversations.
messaging_game_playsA notification is sent when a person has played a round of an Instant Game. Only available for Messenger conversations.
messaging_handoversA notification is sent when a change has occurred during the Handover Protocol
messaging_optinsA notification is sent when a customer has clicked a Messenger plugin, accepted a message request using customer matching, or has opted in to receive messages via the checkbox plugin. Only available for Messenger conversations.
messaging_policy_enforcementA notification is sent when a policy enforcement warning has been sent or a policy enforcement action has been taken on the app associated with the Page.
messaging_postbacksA notification is sent when a customer clicks a postback button, Get Started button, or persistent menu item for Messenger conversations or an Icebreaker option or Generic Template button for Instagram Messaging conversations.
messaging_referralsA notification is sent when a customer resumes a conversation with the Page by clicking an ig.me or m.me link, or an ad.
messaging_seenA notification is sent when a customer reads a message sent by your business, for Instagram Messaging conversations. See messaging_reads for Messenger conversations.
messenger_template_status_updateA notification is sent when a utility message template's review status has changed.
response_feedbackA notification is sent when a customer provides feedback on a message sent by your business by clicking the feedback buttons.
send_cartA notification is sent when your business has received a message from a customer, when the message contains cart/order information. Only available for Messenger conversations.
standbyA notification is sent when a conversation is idle for an app during the Handover Protocol

Event Format

All callbacks for the Messenger Platform have a common set of properties that provide information you will need to process and respond to input from people using your bot. In addition to the properties below, each event also has a set of specific properties that detail the event.

{  
  "object":"page",  
  "entry":[  
    {  
      "id":"<PAGE_ID>",  
      "time":1458692752478,  
      "messaging":[  
        {  
          "sender":{  
          "id":"<PSID>"  
          },  
          "recipient":{  
            "id":"<PAGE_ID>"  
          },  
          ...  
        }  
      ]  
    }  
  ]  
}

Properties

PropertyTypeDescription
objectStringValue will be page
entryArray of entryArray containing event data

entry

PropertyTypeDescription
idStringPage ID of page
timeNumberTime of update (epoch time in milliseconds)
messagingArray<messaging>Array containing one messaging object. Note that even though this is an array, it will only contain one messaging object.

entry.messaging

PropertyTypeDescription
sender.idStringSender user ID
recipient.idStringRecipient user ID

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About