Facebook应用程序API检查用户是否在Facebook中的应用程序管理 [英] facebook application API check if user is application admin in facebook
本文介绍了Facebook应用程序API检查用户是否在Facebook中的应用程序管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有:
- 用户Facebook数据(
https://graph.facebook.com/btaylor ) - facebook应用数据(
https://graph.facebook.com/2439131959
)
如果用户是Facebook的应用程序管理员,可以通过这个方式获得这个吗?
Is somehow possible to get if user is application administrator in facebook with this in my hands?
推荐答案
如果您开发的应用程序正在检查登录的Facebook用户的角色,或者您的应用程序想要识别其所有者或管理员,则
然后
http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Faccounts < a>应该有该应用程序ID
if your developed application is checking the role of the logged in facebook user or simply your application wants to recognize it's owner or admin, then http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Faccounts should have that application id listed
FB.api('/me/accounts', 'get', {"access_token":access_token}, function(response){
//loop through response to check any application id matches current application id
});
响应示例:
response sample:
{
"name": "app_name",
"access_token": "current_token_here",
"category": "Application",
"id": "your_owned_app_id"
},
{
"name": "app_name1",
"access_token": "current_token_here",
"category": "Application",
"id": "your_owned_app1_id"
},
这篇关于Facebook应用程序API检查用户是否在Facebook中的应用程序管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文