0

我正在尝试将 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 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>
4

1 回答 1

1

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

于 2011-12-29T02:58:44.517 回答