Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graph API / FQL How to remove my own app from user?

I gain offline_access from the user when he accepts my application. Now, in my website, the user can delete my access to his facebook account. Is there a way, to tell facebook to remove my app from this user ?

Thanks for your help

like image 624
kheraud Avatar asked Aug 10 '11 16:08

kheraud


Video Answer


1 Answers

To revoke authorisation for an app, you can use a HTTP DELETE request with:

 https://graph.facebook.com/PROFILE_ID/permissions

From http://developers.facebook.com/docs/reference/api/user/#permissions:

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.

like image 78
jBit Avatar answered Sep 20 '22 17:09

jBit