Remove the application from a user using graph API

前端 未结 2 1871
忘掉有多难
忘掉有多难 2020-12-06 02:47

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.

相关标签:
2条回答
  • 2020-12-06 03:27

    When the user is connected, do:

    FB.api("/me/permissions","DELETE",function(response){
        console.log(response); //gives true on app delete success 
    });
    
    0 讨论(0)
  • 2020-12-06 03:27

    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

    0 讨论(0)
提交回复
热议问题