Facebook API SDK revoke access

前端 未结 4 1379
灰色年华
灰色年华 2020-11-30 05:50

How can I allow a user to revoke access to my application using their API service, SDK. http://developers.facebook.com/docs/sdks/

Looking at the documentation I can\

4条回答
  •  醉话见心
    2020-11-30 06:54

    in the graph API for the user object you can issue an HTTP DELETE request to /PROFILE_ID/permissions to revoke authorization for an app.

    from the official documentation (developers.facebook.com/docs/reference/api/user/):

    You can de-authorize an application or revoke a specific extended permissions on behalf of a user by issuing an HTTP DELETE request to PROFILE_ID/permissions with a user access_token for that app.

    Parameter Description Type Required permission The permission you wish to revoke. If you don't specify a permission then this will de-authorize the application completely. string no You get the following result.

    Description Type True if the delete succeeded and error otherwise. boolean

提交回复
热议问题