Facebook 登录/点赞在 IE8 上失败
我最近使用 XFBML 实现了 Facebook 登录按钮和 Facebook“喜欢”按钮。您可以在 http://colnect.com 上查看该
网站野生动物园。
但是,IE 既不显示“登录”也不显示“喜欢”按钮,也没有错误消息。
有什么想法吗?
I've recently implemented Facebook Login button and a Facebook "Like" button using XFBML. You can see the site on http://colnect.com
Everything works well with FireFox, Chrome, Opera & Safari.
However, IE doesn't show neither "login" or "like" buttons and no error message is available as well.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看来我会是那种自己回答的人,希望它能对某人有所帮助。
为了使 Internet Explorer 能够识别 Facebook,您应该添加
到您的 html 标签,对我来说这是
我遇到的第二个问题是 IE 不支持 Array.indexOf() 所以这里是解决它的方法:
希望它有帮助。
Seems I'll be the kind of person to answer himself hoping it'll help someone.
For Internet Explorer to recognize Facebook you should add
to your html tag, for me it's
The second problem I had was that IE doesn't support Array.indexOf() so here's the way around it:
Hope it helps.
我用这段代码解决了我的问题。解决方案的其余部分不适用于我的情况。
我希望它能帮助别人。
I solved my issue with this code. Rest of the solution didn't work for my case.
I hope it will help someone else.
对我来说,这个技巧的一贯作用就是将
class='fb-like'
添加到
标记中。For me what did that trick consistently was adding
class='fb-like'
to the<fb:like>
tag.