Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 anymore? This is with the knowledge of the access_token and facebook_user_id.

Used to delete Test Users:

https://graph.facebook.com/893450345999?method=delete&access_token=A2ADI1YMySweBABBGrWPNwKMlubZA5ZCrQbxwhtlEd9FIQUrOVjsGD3mnIWEbUhzDz7dkuBekMFdHvjvJ9CZAU7EMSSaZBsgN60FkMCi3AAZDZD

Running the test user link produces the following error:

"error": {
      "message": "(#100) Can only call this method on valid test users for your app",
      "type": "OAuthException",
      "code": 100
   }
like image 604
Goalie Avatar asked May 22 '12 22:05

Goalie


1 Answers

You seek for application de-authorization:

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.

permission - The permission you wish to revoke. If you don't specify a permission then this will de-authorize the application completely.

To achieve this issue request to:

https://graph.facebook.com/me/permissions?method=delete&access_token=...

Once application de-authorized it will not appear in the list of user's applications.

Update December 2021

Follow the reference for Requesting & Revoking Permissions:

To remove single permission issue a DELETE request to /{user-id}/permissions/{permission-name} passing user access token or an app access token

To de-authorize an app completely issue similar request to the /{user-id}/permissions endpoint

like image 125
Juicy Scripter Avatar answered Nov 09 '22 06:11

Juicy Scripter