Possible Duplicate:
fb:serverfbml won’t render on Opera and IE
facebook funpage api 适用于所有浏览器,但不适用于 IE8。
我尝试了以下尝试,但没有成功,有人可以建议更好的方法吗?
<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script>
<script type="text/javascript">FB.init("1690883eb733618b294e98cb1dfba95a");</script>
<fb:fan profile_id="<?php echo $this->config->get('my_facebook_id'); ?>" stream="0" connections="25" logobar="0" border="white" width="1170" height="94" css="<?php echo HTTPS_SERVER; ?>stylesheet/facebook.css?3.0.0.2"></fb:fan>
查看错误屏幕截图:http://demo.harnishdesign.net/api-i8-issue.jpg
我哪里做错了???请告诉我
最佳答案
“Internet Explorer”需要在“html”标记中定义“Facebook 命名空间”。
这里是:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
关于javascript - ie8 中的 facebook api 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14000735/