用户的 Facebook Messenger PSID PageScope 是常数吗 [英] Is Facebook Messenger PSID PageScope constant for User

查看:35
本文介绍了用户的 Facebook 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 ) 对于用户和相应的页面来说是不变的.

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

对于第一个问题,可以使用以下link.它涉及

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

  1. 从登录访问令牌中获取应用范围 ID,
  2. 将app secret与Page Access Token结合获得AppSecretProof,
  3. 使用 AppsecretProof 以及 Page AccessToken 和 PSID 来获取与登录时获取的 appscopeId 匹配的 appscopeId.

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

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