all.js 中出现权限被拒绝错误
我正在使用 all.js 来实现 facebook。我在注册页面上使用了 Facebook 按钮。通过登录 Facebook,我将 Facebook 用户的用户名和电子邮件输入到注册页面的字段中。 它在 Chrome、Safari 和 Firefox 上运行良好,但在 IE8 上出现错误。
错误位于 all.js 第 22 行,
{FB.UIServer._loadedNodes[a.id]=b;if(a.params)b.fbCallID=a.id;
如果有人知道为什么会出现此问题,请帮助我。
谢谢 乌达姆
I am using all.js for facebook implementation. I used a facebook button on signup page . by logging through facebook i am getting user name and email of facebook user into the fields on sign up page.
It's working fine on Chrome, Safari and Firefox but its giving error on IE8.
the error is in all.js line 22
{FB.UIServer._loadedNodes[a.id]=b;if(a.params)b.fbCallID=a.id;
Please help me if any one knows why this problem is occuring .
Thanks
Udham
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
试试这个。它对我有用,可能对某人有帮助。
理想情况下,附加调试器并查看哪个方法会中断并破解它。
Try this out. It worked for me, may help some one.
Ideally attach debugger and see which method breaks up and hack it.
这是一个已知错误:http://bugs.developers.facebook.net/show_bug .cgi?id=19042
它被设置为CLOSED FIXED,但仍有许多用户在评论区报告该错误。
评论 #19 中建议使用 hack:
它对某些人有效。我必须说它对我不起作用,但我认为值得一提。
This is a known bug: http://bugs.developers.facebook.net/show_bug.cgi?id=19042
It is set as CLOSED FIXED, but many users are still reporting the error in the comments area.
A hack is suggested on comment #19:
It worked for some people. I must say it didn't work for me, but I thought it was worth to mention.
我刚刚遇到了这个(或类似的问题)。我的是 all.js 第 22 行,字符 3160,就在
document.documentElement.style.display='none';
之后,这是一个权限被拒绝的错误。就我而言,这是因为 channelUrl 使用的协议 (https) 与我的应用程序的 iframe 加载的协议 (http) 不同。我尝试了
//mydomain.com/channel.html
,但这给了我一个不同的错误。我通过在生成html时动态选择http/https作为channelUrl来解决这个问题。I just ran into this (or a similar problem). Mine was in all.js line 22, char 3160, right after
document.documentElement.style.display='none';
It was a permission denied error.In my case, it was because the channelUrl was using a different protocol (https) than my app's iframe was being loaded under (http). I tried
//mydomain.com/channel.html
, but that gave me a different error. I solved it by dynamically choosing http/https for channelUrl when generating the html.我找到了解决方案。已经在这里发布了答案 https://stackoverflow.com/a/8504794/287604,但对于绝望的快速修复:
I found a solution. Already posted an answer here https://stackoverflow.com/a/8504794/287604, but for the desperate the quick fix:
我仍在努力解决这个问题,但我刚刚注意到的一个奇怪的解决方法是,如果使用 fb:login-button 将 show-faces 属性设置为“true”时,它会突然工作正常。我尝试了 2 个并排的 fb:login 按钮,并且显示面孔设置为 false 或不包含的按钮每次都会传回错误。
I am still struggling with this but an odd work around I just noticed is if when using fb:login-button when setting the show-faces attribute to "true" it suddenly works fine. I tried 2 side by side fb:login buttons and the button with show faces set to either false or not included would pass back the error every time.