messaging_policy_enforcement Webhook Event Reference
Updated: Jan 7, 2022
Copy for LLM
An app will receive this callback when a policy enforcement action will be oris taken on the page it manages. You can subscribe to this callback by selecting the
messaging_policy_enforcement field when setting up your webhook.A policy enforcement will be taken on a page if it does not conform to Messenger Platform policy, fails to meet community standards or violates Facebook Pages guidelines. Common issues include spams, sending inappropriate messages (porn, suicide, etc), abusing tags, etc.
Example
{
"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."
}
}
Properties
recipient
recipient 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 |