Skip to content

message_edits Webhook Event Reference

Updated: Apr 9, 2024

This event will be sent to your webhook when a user edits a previously-sent message.
You can subscribe to this callback by selecting the message_edits field when setting up your webhook.

Example

{
  "sender": {
    "id": "<PSID>"
  },
  "recipient": {
    "id": "<PAGE_ID>"
  },
  "timestamp": 1458668856463,
  "message_edit": {
    "mid": "<MESSAGE_ID>",
    "text": "<TEXT>",
    "num_edit": "<INT>",
  }
}

Properties

sender

sender FieldDescription
id stringThe Page-scoped ID for the person who sent a message to your business

recipient

recipient FieldDescription
id stringThe ID for your Facebook Page

message_edit

PropertyTypeDescription
midstringThe Message ID of the message that the user edited.
textstringThe new message content, after the user's edit.
num_editintegerThe number of times the user has edited the message. (The user cannot edit a message more than five times. This constraint is on the Messenger client side.)

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