喜欢Box不显示 - 使用Dreamweaver CS4

时间:2011-12-29 00:25:39

标签: dreamweaver facebook-likebox

我正在尝试将Like Box添加到网站但没有显示任何内容。我已经尝试过HTML和iframe代码但没有成功。任何帮助表示赞赏。

HTML:

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;  
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; 
fjs.parentNode.insertBefore(js, fjs);  
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-like-box" data-href="http://www.facebook.com/RockyMountainKoiClub" data-width="292" data-height="500" data-show-faces="true" data-stream="true" data-header="true"></div>

IFRAME:

<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FRockyMountainKoiClub&amp;width=292&amp;height=590&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:590px;" allowTransparency="true"></iframe>

1 个答案:

答案 0 :(得分:1)

尝试通过位于https://developers.facebook.com/tools/debug的linter工具运行您的页面并修复它所说的任何错误。