messaging_policy_enforcement Webhook Event Reference

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 Facebook 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/policy/#messengerplatform). Common violations include sending out excessive spammy messages or being non-functional."
  }
}    

Properties

recipient

PropertyTypeDescription

id

String

Your Page ID.

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