Is Facebook Messenger PSID PageScope constant for User

纵饮孤独 提交于 2020-02-04 03:25:33

问题


I am developing a chatbot. I want to ping the FB user from my server that requires PSID.

  1. I obtain the PSID using the Account Linking API. Is there any way to link User email and PSID. As we have used email as the unique parameter to recognize user.

  2. Incase the user logs out, does the PSID change on the next Login. Can I take the PSID to be constant for multiple logins.


回答1:


After some amount of research I discovered PSID ( PageScope User ID ) is constant for a user and corresponding Page.

For the first question, the following link can be used. It involves

  1. obtaining app scope id from login access token,
  2. combining app secret with Page Access Token to obtain AppSecretProof,
  3. using AppsecretProof along with Page AccessToken and PSID to obtain appscopeId which matches with the appscopeId obtained during login.


来源:https://stackoverflow.com/questions/44566664/is-facebook-messenger-psid-pagescope-constant-for-user

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