messaging_policy_enforcement field when setting up your webhook.{
"recipient": {
"id": "PAGE_ID"
},
"timestamp": 1458692752478,
"policy_enforcement": {
"action": "block",
"reason": "The bot violated our Platform Policies (https://developers.facebook.com/devpolicy/#messengerplatform). Common violations include sending out excessive spammy messages or being non-functional."
}
}
recipientrecipient Field
| Description |
|---|---|
id string | The ID for your Facebook Page |
policy_enforcement object| Field Name | Description | Type |
|---|---|---|
action | action will be either warning, block or unblock | String |
reason | The reason for being warned or blocked. This field is absent if action is unblock | String |