Remove the application from a user using graph API

2019-01-14 18:33发布

问题:

I am developing a facebook application, I want to remove my application from a user using Graph API, is there any way to do this.

回答1:

When the user is connected, do:

FB.api("/me/permissions","DELETE",function(response){
    console.log(response); //gives true on app delete success 
});


回答2:

I got this working with a serverside request using Using ASP.Net with Facebook’s Graph API and OAuth 2.0 Authentication this article as reference you get a auth token then when they redirect back to your callback you post a delete request to the graph url e.g.

"https://graph.facebook.com/person_id/permissions?access_token=token