开发者

facebook SDK roles management

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜