我已尝试在http://www.shopsonstar.com/index.html实现Like Box的每种方法。
html5,xfbml,iframe,无效,网址不合适
没有显示,为什么? 我甚至调用了jQuery。
<script src="js/libs/modernizr-1.7.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
<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&appId=440871936008924";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fivecol last centered">
<div class="fb-like-box" data-href="https://www.facebook.com/ShopsOnStar" data-width="292" data-height="400" data-show-faces="false" data-stream="true" data-show-border="true" data-header="true"></div>
<fb:like-box href="https://www.facebook.com/ShopsOnStar" width="292" height="400" show_faces="false" stream="true" show_border="true" header="true"></fb:like-box>
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FShopsOnStar&width=292&height=427&show_faces=false&colorscheme=light&stream=true&show_border=true&header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:427px;" allowTransparency="true"></iframe>
</div>
</div>
谢谢汤姆
答案 0 :(得分:0)
删除data-show-faces="false"
。