Facebook: Is there a way to check that I have certain permissions?
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.
精彩评论