确定 Facebook 用户是否已安装应用程序的最新方法是什么?我看到用户对象的“权限”连接上有一个“已安装”字段,但这需要 access_token 才能测试。 isAppUser 发生了什么以及为什么 this URL说以下内容:
Please use the Graph API User object and GET /[UID]?field=installed to check if a user is has TOSed that app.
引用的/[UID]?field=installed 什么都不做。
最佳答案
这在询问“字段”时对我有用 - 文档似乎引用了“字段”,我认为这是不正确的,如果是这种情况,我会更新它:
例如
获取 https://graph.facebook.com/me?fields=installed&access_token=<SNIPPED TOKEN>
返回:
{
"installed": true,
"id": "<SNIPPED ID>"
}
调用 /me/permissions
在大多数情况下,这可能是您想要的,因为这还将显示授予您的应用程序的扩展权限
关于facebook - 测试用户是否安装了带有 Graph API 的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7325104/