message_reactions Webhook Event Reference

This event will be sent to your webhook when a user reacts to a message on Messenger.
You can subscribe to this callback by selecting the message_reactions field when setting up your webhook.

Example

{
   "sender":{
      "id":"<PSID>"
   },
   "recipient":{
      "id":"<PAGE_ID>"
   },
   "timestamp":1458668856463,
   "reaction":{
         "reaction": "smile|angry|sad|wow|love|like|dislike|other",
         "emoji": "\u{2764}\u{FE0F}",
         "action": "react|unreact",
         "mid": "<MID_OF_ReactedTo_Message>",
   }
}

Properties

sender

الخاصيةالنوعالوصف

id

String (سلسلة)

المعرف الخاص بالصفحة لدى المستخدم والذي شغّل الحدث webhook.

user_ref

String (سلسلة)

المعلمة user_ref لدى المستخدم والتي شغّلت الحدث webhook. ويتوفر هذا فقط لحدث webhook من المكون الإضافي للدردشة.

recipient

الخاصيةالنوعالوصف

id

String (سلسلة)

معرف صفحتك.

reaction

Property Type Description

reaction

string

Text description of the reaction. Possible values: smile, angry, sad, wow, love, like, dislike.


other could also be returned in case the emoji based reaction does not match the ones above.

emoji

UTF-8 Emoji

Reference to the emoji corresponding to the reaction.

action

string

Action performed by the user. Possible values: react, unreact

mid

string

Reference to the Message ID that the user reacted performed the reaction on.