使用新的OpenGraph API取消Facebook应用程序的授权 [英] De-authorize a Facebook app using the new OpenGraph API

查看:142
本文介绍了使用新的OpenGraph API取消Facebook应用程序的授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  FB.api({method :'Auth.revokeAuthorization'}); 

它使用了不推荐使用的REST API。我如何用FB.api方法使用OpenGraph API?

解决方案

我想到了:

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


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?

解决方案

I figured it out:

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

这篇关于使用新的OpenGraph API取消Facebook应用程序的授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆