how to check special permissions in facebook

后端 未结 4 1704
野的像风
野的像风 2021-01-11 15:52

how can i check in javascript if user has granted my site the publish stream permission

?

4条回答
  •  旧时难觅i
    2021-01-11 16:01

    The API method you're looking for is Users.hasAppPermission. You could call it directly from JavaScript, but it will probably be more efficient to write your own HTTP method, that calls it via API and returns "true" or "false" via JSON.

    There is also a filed bug (13378) that Users.hasAppPermission has no Graph API equivalent.

提交回复
热议问题