Facebook Like或Like Box不显示在我的网页 [英] Facebook Like or Like Box not showing in my web page
本文介绍了Facebook Like或Like Box不显示在我的网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经阅读了关于Facebook的问题的各种线索像小部件,但是我仍然无法让我的浏览器显示。
I've read through the various threads here regarding problems with the Facebook Like widgets, however I still cannot get mine to show in any browser.
通过Facebook拥有的调试工具运行我的网站,我只收到了一个关于og:locale属性的警告,我认为这不是导致问题的。
I've ran my site through the debugger tool that Facebook has, and I only got a warning regarding an og:locale property, which I don't think is causing the issue.
看到下面的简单的html,任何人都可以帮助吗?
See the simple html below, can anyone help here?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>New Web Project</title>
</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_GB/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<h1>New Web Project Page</h1>
<div class="fb-like" data-href="http://www.facebook.com/pages/myGFC/" data-send="false" data-width="450" data-show-faces="false" data-font="lucida grande">Text here</div>
</body>
</html>
推荐答案
尝试此代码段:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>New Web Project</title>
</head>
<body>
<div>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F
%2Flyndonreid.com
%2Fcontact&layout=standard&show_faces=true&width=450&action
=like&colorscheme=light" scrolling="no" frameborder="0"
allowTransparency="true" style="border:none; overflow:hidden; width:450px;
height:px"></iframe>
</div>
</body>
</html>
这篇关于Facebook Like或Like Box不显示在我的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文