Removing Facebook application through API

前端 未结 5 1683
故里飘歌
故里飘歌 2020-12-29 14:38

I have a web app that adds an application to a users profile, and requests extended permissions.

I can\'t seem to find if there is a way to use a script to remove th

5条回答
  •  一整个雨季
    2020-12-29 14:59

    UPDATED: As others have mentioned, Facebook now has this API. I don't think there is a way to change the accepted answer to give credit unfortunately.

    From: https://developers.facebook.com/docs/graph-api/reference/user/permissions/#Deleting

    You can revoke a specific permission by making a call to a Graph API endpoint:

    DELETE /{user-id}/permissions/{permission-name}

    This request must be made with a user access token or an app access token for the current app. If the request is successful, you will receive a response of true.

    Note that excluding {permission-name} will revoke all permissions.

提交回复
热议问题