FB JavaScript SDK 为我的朋友提供了错误的权限对话框,但为我提供了新的权限对话框
目前,我正在使用
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId: '214620658601362',
cookie: true,
status: true,
xfbml: true,
oauth: true
});
$(function() {
$("#login").click(function() {
FB.login(function() {
alert('logged in');
}, {
scope: 'publish_actions'
});
});
});
代码对我的虚拟应用程序进行身份验证。问题是我的朋友看到旧的权限对话框,这意味着他无法批准我的应用程序的“publish_actions”权限。我看到新的了当我尝试发布操作时,出现错误:
FB.ApiServer._callbacks.f3209b810({"error":{"message":"(#200) Requires extended permission: publish_actions","type":"OAuthException"}});
但是,它对我有用
我的朋友(错误的):
我(正确的一个):
我的登录代码中是否缺少某些内容?
Currently, I'm using
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId: '214620658601362',
cookie: true,
status: true,
xfbml: true,
oauth: true
});
$(function() {
$("#login").click(function() {
FB.login(function() {
alert('logged in');
}, {
scope: 'publish_actions'
});
});
});
code to get authenticated into my dummy application. Problem is that my friend see the old permissions dialog, it means he can't approve my application's "publish_actions" permission. I see the new one. When I try to publish action, error appears:
FB.ApiServer._callbacks.f3209b810({"error":{"message":"(#200) Requires extended permission: publish_actions","type":"OAuthException"}});
however, it works for me
My friend (wrong one):
Me (correct one):
am I missing something in my login code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
第二个屏幕截图是一个对话框,尚未为每个应用程序/用户启动;如果您的朋友作为开发人员启用了时间线测试版,他可能会看到新的对话框。
目前尚不清楚他是否是您尝试授权的应用程序的开发者;如果是这样,那就更有可能了。
The second screenshot is a dialog which hasn't launched for every application/user; if your friend enabled the Timeline beta as a developer, he'd likely be seeing the new dialog.
It's not clear if he's a developer of the app you're trying to authorize; if so, it makes it even more likely.
您的朋友可能需要清除他们的浏览器缓存,以便它必须从源而不是从磁盘上缓存的内容重新加载页面。
Your friend probably needs to clear their browser cache so that it has to reload the page from its source, not from what is cached on disk.