Facebook应用程序API检查用户是否在Facebook中的应用程序管理

问题描述:

我有:

如果用户是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 应该有该应用程序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"
},