开发者

Remove the application from a user using graph API

开发者 https://www.devze.com 2023-03-18 21:41 出处:网络
I am developing a facebook application, I 开发者_如何学Gowant to remove my application from a user using Graph API, is there any way to do this.When the user is connected, do:

I am developing a facebook application, I 开发者_如何学Gowant to remove my application from a user using Graph API, is there any way to do this.


When the user is connected, do:

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


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

精彩评论

暂无评论...
验证码 换一张
取 消