Facebook XFBML is not rendering in Internet Explorer 8

匿名 (未验证) 提交于 2019-12-03 03:06:01

问题:

I put up this test page to illustrate this issue: (dead Link)

Every browser I've tested on has worked but in Internet Explorer 8. The odd part is that Internet Explorer 8 doesn't even report an error, WOW, and that is something. So right now I'm stuck with to nothing to work on or debug. What have I overlooked?

回答1:

So somehow the xmlns attribute that I had previously set to the HTML tag was gone, probably me undoing things like crazy.

Here is how it should be if anyone encounters this issue:

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


回答2:

<html xmlns:fb="http://ogp.me/ns/fb#">

<head></head>

<body>

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1">

</script>

<fb:like href="http://www.facebook.com" send="false" layout="button_count" width="500" show_faces="true"></fb:like>

</body>

</html>

Even this is not working in the IE. It is opening a pop up url=http://www.facebook.com/connect/connect_to_external_page_reload.html and that's that. On Debugging I see it is not picking up the xmlns. Same code works fine in FF and Chrome and I am able to see on my facebook wall also but not if I do through IE.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!