用户的Facebook Messenger Messenger PSID PageScope是否恒定 [英] Is Facebook Messenger PSID PageScope constant for User

查看:253
本文介绍了用户的Facebook Messenger Messenger PSID PageScope是否恒定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个聊天机器人.我想从需要PSID的服务器上ping FB用户.

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

  1. 我使用帐户链接API获取PSID.有什么方法可以链接用户电子邮件和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.

如果用户注销,则下次登录时PSID是否会更改.我可以将PSID设置为多次登录的常量.

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

推荐答案

经过大量研究,我发现PSID(PageScope User ID)对于用户和相应的Page而言是恒定的.

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. 从登录访问令牌获得应用范围ID
  2. 将应用程序秘密与页面访问令牌相结合以获得AppSecretProof,
  3. 使用AppsecretProof以及Page AccessToken和PSID来获得与登录期间获得的appscopeId匹配的appscopeId.

这篇关于用户的Facebook Messenger Messenger PSID PageScope是否恒定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆