rehabstudio / fbmessenger

A python library to communicate with the Facebook Messenger API's
Other
115 stars 50 forks source link

Add api version to MessengerClient #45

Closed wittfabian closed 5 years ago

wittfabian commented 5 years ago

44

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling b8102f43d4b6212e3c0222a3785895c9a8518ff5 on wittfabian:fb-api-version into f5e108a24542946133c40712cfd3c61a4092ae47 on rehabstudio:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling b8102f43d4b6212e3c0222a3785895c9a8518ff5 on wittfabian:fb-api-version into f5e108a24542946133c40712cfd3c61a4092ae47 on rehabstudio:master.

rickydunlop commented 5 years ago

Hey, thanks for this, could you update the default version to be 3.2 as it's the latest, then i'll get it merged

wittfabian commented 5 years ago

Hi, with 3.0 facebook has breaking changes with the sender_id. So 2.12 is the last version with current sender_id support.

rickydunlop commented 5 years ago

What's the breaking changes? Have you got a link to the docs on it?

wittfabian commented 5 years ago

Pages API

Page-Scoped ID API — On April 24th, 2018, we announced that the Pages API now returns Page-scoped User IDs instead of App-scoped User IDs. We have released a new, non-versioned API for developers who need to map App-scoped IDs to their Page-scoped ID equivalents.

https://developers.facebook.com/docs/graph-api/changelog/version3.0?locale=en_US

https://developers.facebook.com/docs/pages/access-tokens/psid-api

rickydunlop commented 5 years ago

From what I can tell the Messenger API's always returned page scoped IDs. This change was to update the Pages API so that it returned page scoped IDs instead of App scoped IDs. See this FAQ for info https://developers.facebook.com/docs/pages/access-tokens/psid-api/faq#faq_1181287948678652

Let's leave it for now and I can release the version update separately as a new major version just in case.