Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messenger considering wrong payload from Facebook webhook #164

Open
rougeth opened this issue May 9, 2018 · 0 comments
Open

Messenger considering wrong payload from Facebook webhook #164

rougeth opened this issue May 9, 2018 · 0 comments
Labels

Comments

@rougeth
Copy link
Owner

rougeth commented May 9, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant