1

I have this code to de-authorize my FB application for currently logged in user:

FB.api({ method: 'Auth.revokeAuthorization' });

It's using the deprecated REST API. How do I do the same using the OpenGraph API with FB.api method?

Andrey
  • 20,487
  • 26
  • 108
  • 176
  • possible duplicate of [Facebook API SDK revoke access](http://stackoverflow.com/questions/9050190/facebook-api-sdk-revoke-access) – Zach Lysobey Mar 26 '15 at 15:22

2 Answers2

4

I figured it out:

FB.api("/me/permissions", "delete", function(response){});
Andrey
  • 20,487
  • 26
  • 108
  • 176
1

In graph API you can issue HTTP DELETE request to

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

this should deauthorize the app

bkaid
  • 51,465
  • 22
  • 112
  • 128
Anatoly Lubarsky
  • 3,026
  • 1
  • 18
  • 16