开发者

facebook SDK roles management

开发者 https://www.devze.com 2023-01-20 10:09 出处:网络
is there开发者_如何学C a way to get the list of currently listed developers on a face book connect application i want to use this to validate if a user is authorized to sublmit new contenet and create

is there开发者_如何学C a way to get the list of currently listed developers on a face book connect application i want to use this to validate if a user is authorized to sublmit new contenet and create events through the connect website or do i need to couple this with a forms authorization account to handle permissions

or is there a better way over all to handle this


To check if a user is a developer of some specific app you can run such FQL:

select application_id from developer where developer_id=me() and application_id=<APP_ID>

To check if a user granted your app some specific permission you can use this FQL (not sure if this would be helpful in your case though):

select uid from permissions where uid=me() and <PERMISSION_NAME>=1

where <PERMISSION_NAME> is one of these.

0

精彩评论

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