De-authorize a Facebook app using the new OpenGraph API

懵懂的女人 提交于 2020-01-15 11:42:25

问题


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?


回答1:


I figured it out:

FB.api("/me/permissions", "delete", function(response){});



回答2:


In graph API you can issue HTTP DELETE request to

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

this should deauthorize the app



来源:https://stackoverflow.com/questions/7533997/de-authorize-a-facebook-app-using-the-new-opengraph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!