如果测试用户已经安装的应用程序与图形API [英] Test if user has application installed with Graph API
问题描述
什么是最新的方法来确定Facebook的用户已经安装的应用程序?我看到有一个安装字段的用户对象的权限连接,但是这需要一个的access_token进行测试。发生了什么事isAppUser?为什么这个网址说以下内容:
What is the most current method to determine if a Facebook User has installed an application? I see that there is an "installed" field on the "permissions" connection of a user object, but that requires an access_token to test. What happened to isAppUser and why does this URL say the following:
请使用图形API用户对象和GET / [UID]字段=安装
检查如果用户已TOSed该应用程序。
Please use the Graph API User object and GET /[UID]?field=installed to check if a user is has TOSed that app.
引用的/ [UID]字段=安装什么都不做。
The referenced /[UID]?field=installed does nothing.
推荐答案
这是要求字段当为我工作 - 的文档显示为引用字段我认为这是不正确的,我会得到它的更新如果是这样的话:
This is working for me when asking for 'fields' - the docs appear to be referencing 'field' which I think is incorrect, I'll get it updated if that's the case:
例如
GET https://graph.facebook.com/me?fields=installed&access_token=<SNIPPED令牌GT;
返回:
{
"installed": true,
"id": "<SNIPPED ID>"
}
/我 A呼叫/权限
可能是你想要在大多数情况下是什么,因为这也将显示授予您的应用程序扩展权限
A call to /me/permissions
is probably what you want in most cases as this will also show the extended permissions granted to your app
这篇关于如果测试用户已经安装的应用程序与图形API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!