Is there a way to delete users for your Facebook Application?

前端 未结 2 1645
我寻月下人不归
我寻月下人不归 2020-12-14 12:47

There is documentation for test users in the Facebook Developer online documentation but how do you delete actual users where the application doesn\'t show in their app list

2条回答
  •  被撕碎了的回忆
    2020-12-14 13:00

    Real users 'delete' themselves from your app when they remove your app from their account, you don't have to do anything.

    If you would like to know when users de-authorize your app like this, you can specify a Deauthorize Callback URL in your app's settings. As described in the docs at https://developers.facebook.com/docs/authentication/:

    Upon app removal we will send an HTTP POST request containing a single parameter, signed_request, which, once decoded, will yield a JSON object containing the user_id of the user who just deauthorized your app. You will not receive an user access token in this request and all existing user access tokens that were previously issued on behalf of that user will become invalid.

    UPDATE: To remove your own app from the user's authorized applications, issue an HTTP DELETE to https://graph.facebook.com/[userid]/permissions?access_token=... as per https://developers.facebook.com/docs/reference/api/user/.

    Typically Graph API calls also support doing an HTTP POST with an extra parameter, method=DELETE, in case DELETE calls are not possible/supported.

提交回复
热议问题