Policy Enforcement Callback

An app will receive this callback when a policy enforcement action is 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."
  }
}    

Fields

policy-enforcement object

Field Name Description Type

action

action will be either block or unblock

String

reason

The reason for being blocked. This field is absent if action is unblock

String