仅限 IE8 (Internet Explorer) 的问题

发布于 2024-10-01 04:08:03 字数 591 浏览 3 评论 0原文

在我的网站上,我实现了 Facebook 登录按钮,它在除 IE 之外的所有浏览器上运行良好。不知道为什么在 IE 上它不能很好地工作。您可以在我的网站 http://colnect.com 的主页上看到它损坏,并出现以下 Javascript 错误:

Message: Unknown runtime error
Line: 43
Char: 729
Code: 0
URI: http://connect.facebook.net/en_US/all.js

在两个具有完全相同 FBML 代码的其他页面 http://colnect.com/en/account/createhttp://colnect.com/en/sfGuardAuth/signin 按钮出现并且运行良好。

有什么想法吗?

On my site I've implemented Facebook login button and it works well on all browsers except IE. Not sure why on IE it doesn't work well. You can see it broken on the main page of my website http://colnect.com with the following Javascript error:

Message: Unknown runtime error
Line: 43
Char: 729
Code: 0
URI: http://connect.facebook.net/en_US/all.js

On two other pages with the exact same FBML code http://colnect.com/en/account/create and http://colnect.com/en/sfGuardAuth/signin the button appears and works well.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

饮惑 2024-10-08 04:08:03

将其添加到您的文档中:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">

Add this to your document:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
放低过去 2024-10-08 04:08:03

我遇到了同样的问题,因为我将“fb:login-button”放在“a”标签内。如果 fb 按钮位于另一个元素内,请尝试保留它。

I had same problem because I put "fb:login-button" inside an "a" tag. If you have the fb button inside another element, try to leave it.

遗失的美好 2024-10-08 04:08:03

我刚刚看到了同样的事情< curse_m$_ie 标签>并能够通过正确连接通道文件来修复它。来自 https://developers.facebook.com/docs/reference/javascript/

频道文件

通道文件解决了跨域通信的一些问题
在某些浏览器中。 channel.html 文件的内容可以是
单行:

;

好的,所以我认为他们的意思是在其前面添加一个 http: ,无论如何,这就是我让它工作的方法。然后,您需要在 FB.init 中引用通道文件 - 好吧,请参阅他们的页面,但通常是:

<script>   
window.fbAsyncInit = function() {
FB.init({
appId      : 'YOUR_APP_ID', // App ID
channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
...

希望这对现在正在为此烦恼的人有所帮助。希望它对我以外的其他人也有效!

哦,还刚刚发现了这个主题的链接: http: //blog.tiecliphq.com/2011/06/ie8-facebook-xd-proxy-fix.html

I just saw the same thing < curse_m$_ie tag > and was able to fix it by properly hooking up a channel file. From https://developers.facebook.com/docs/reference/javascript/:

Channel File

The channel file addresses some issues with cross domain communication
in certain browsers. The contents of the channel.html file can be just
a single line:

<script src="//connect.facebook.net/en_US/all.js"></script>

Ok, so I think they meant to add a http: at the front of that, anyway, that's what it took for me to get it working. Then you need to reference the channel file in your FB.init - well, see their page for this but it's generally:

<script>   
window.fbAsyncInit = function() {
FB.init({
appId      : 'YOUR_APP_ID', // App ID
channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
...

Hope this is helpful to whoever is pulling their hair out on this right now. And hope it works for others besides me!

Oh, also just found this link on the subject: http://blog.tiecliphq.com/2011/06/ie8-facebook-xd-proxy-fix.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文