开发者

How can my web app retrieve the role(s) of a Facebook User?

I'm using the Facebook C# SDK f开发者_C百科rom the web application associated with our Facebook application. I'm in the "Administrator" role for the Facebook application - how do I check for that role from my web app?


There is a way of doing this via the accounts property on the user. It gives you an array of pages and apps for which the user has admin privileges.

Unfortunately it will require quite a scary extended permission from September: manage_pages.

Try having a play with the new Graph Api Explorer. Click on the accounts connection (in the right-hand column) for your user.


there's another way:

you can also access the app roles directly via the graph api and you need only the app access token therefore.

https://graph.facebook.com/APP_ID/roles?access_token=APP_ID|APP_SECRET

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜