本文介绍了'无法代表此用户调用API'在FB API调用上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Facebook API调用时遇到了麻烦.我正在使用Koala进行服务器端api调用,但最近在进​​行api调用时遇到了问题.因此,我尝试绕过考拉调用,并使用call进行了原始api http调用,但无济于事.

I am having trouble with facebook API call. I am using Koala for server side api call but recently came into issue making api call. So I tried to bypass koala call and did raw api http call using call but to no avail.

当我从开发机上卷曲时,效果很好.

When I do curl from development machine it works fine.

curl"https://graph.facebook.com/me?oauth_token=my_token

它返回配置文件的详细信息,但是在生产机器上完成的同样的事情,它会引发异常

It returns profile details, but the same thing done from production machine, it's throwing the exception

{错误":{消息":无法代表此用户调用API",类型":"OAuthException",代码":200}}

有人有同样的问题吗?喜欢听到你们的消息.

Does anyone had the same issue? Like to hear from you guys.

推荐答案

我找到了问题的根源(至少在我们的网站上).在Facebook的开发人员控制台( https://developers.facebook.com/apps )中,我们的应用程序显示了一个无效的隐私政策.因此,Facebook已自动将我们的应用程序置于沙盒模式.

I found the source of the problem (on our site, at least). In Facebook's developer console (https://developers.facebook.com/apps), our app was showing an invalid privacy policy. Due to this, Facebook had automatically placed our app into Sandbox Mode.

更新我们的隐私权政策,并(尤其是将其从沙盒模式中删除)导致该错误停止.

其他用户似乎在消除区域(特定国家/地区)对谁可以登录和不能登录他们的应用程序的限制方面取得了一些成功( https://groups.google.com/forum/#!topic/django-social-auth/XaE5dFXEqhA )

Other users seem to have had some success with removing regional (country-specific) restrictions on who can and cannot log in to their app (https://groups.google.com/forum/#!topic/django-social-auth/XaE5dFXEqhA)

祝你好运!:)

这篇关于'无法代表此用户调用API'在FB API调用上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 21:15