Are Facebook Messenger page-scoped IDs globally unique?

拜拜、爱过 提交于 2019-12-22 08:22:46

问题


I understand that the same user will have different page-scoped IDs (PSIDs) across different pages. But is it guaranteed that no two users will have the same PSID across different pages?

For example, is it possible that user A has PSID 1234 while messaging page X, and user B has the same PSID 1234 when messaging page Y?

Technically user A and user B would be differentiable even if they have the same PSID because they are messaging different pages. But can I assume that there will be no overlap on PSIDs across all pages, so that I may use the PSID as a globally unique ID regardless of the particular page?


回答1:


Facebook don't guarantee the page-scoped IDs (PSIDs) to be unique across different pages - a PSID may represent user A on page X, but user B on page Y.

When representing a user, these IDs are page-scoped IDs (PSID). This means that the IDs of users are unique for a given page.

https://developers.facebook.com/docs/messenger-platform/webhook-reference#format



来源:https://stackoverflow.com/questions/41192810/are-facebook-messenger-page-scoped-ids-globally-unique

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!