Like 框不显示 - 使用 Dreamweaver CS4
我正在尝试将“赞”框添加到网站,但没有显示任何内容。我已经尝试了 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&width=292&height=590&colorscheme=light&show_faces=true&border_color&stream=true&header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:590px;" allowTransparency="true"></iframe>
I am trying to add the Like Box to a web site but nothing displays. I have tried both the HTML and the Iframe code with no success. Any assistance is appreciated.
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&width=292&height=590&colorscheme=light&show_faces=true&border_color&stream=true&header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:590px;" allowTransparency="true"></iframe>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试通过 linter 工具运行您的页面:https://developers.facebook.com/tools/debug 并修复它所说的任何错误。
Try running your page thru the linter tool at: https://developers.facebook.com/tools/debug and fix any errors it says there are.