bottery icon indicating copy to clipboard operation
bottery copied to clipboard

Messenger considering wrong payload from Facebook webhook

Open rougeth opened this issue 7 years ago • 0 comments

The Messenger platform isn't running message handler for all messages that arrives in batch. At platform/messenger/engine.py#L46, we are getting only the first item of entry:

{
  "object":"page",
  "entry":[
    {
      "id":"<PAGE_ID>",
      "time":1458692752478,
      "messaging":[
        {
          "sender":{
            "id":"<PSID>"
          },
          "recipient":{
            "id":"<PAGE_ID>"
          },
          # ...
        }
      ]
    }
  ]
}

Reference: https://developers.facebook.com/docs/messenger-platform/reference/webhook-events

rougeth avatar May 09 '18 04:05 rougeth