开发者

Facebook: Is there a way to check that I have certain permissions?

开发者 https://www.devze.com 2023-01-06 20:44 出处:网络
I started developing a Facebook app using the new Graph API. I want to check if I have certain permissions, (say publish_stream for example) for a certain user. I know开发者_如何学运维 that the old R

I started developing a Facebook app using the new Graph API.

I want to check if I have certain permissions, (say publish_stream for example) for a certain user. I know开发者_如何学运维 that the old REST API had users.hasAppPermission, but I don't see anything parallel to that in the new Graph API.

How can I do this?


You will need to run FQL on permissions table. If you are using JS SDK you can run it with FB.Data.query().


Yes. In the new Graph API use "/[user]/permissions". See also detailed explanation here and here.

0

精彩评论

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