开发者

Remove the application from a user using graph API

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜