在我的 jsbin 中看到它工作正常:
http://jsbin.com/uhejis/1/edit
但我在三台计算机 xp、vista 和 7 上的本地 html 页面上尝试过它并没有什么问题?此代码在您的本地计算机上有效吗?
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<!-- This is all the Meta Imports and customs -->
<head>
<meta property="og:title" content="Albuquerque Auto Repair" />
<meta property="og:type" content="company" />
<meta property="og:url" content="http://www.albuquerqueautomotiveservices.com/" />
<meta property="og:image" content="http://imageshack.us/photo/my-images/694/logovcm.jpg/" />
<meta property="og:site_name" content="Federated Automotive" />
<meta property="fb:admins" content="100005049606455" />
</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";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<p>hello world</p>
<div class="fb-like" data-href="http://www.facebook.com/FederateAutomotive"
data-send="true" data-layout="button_count" data-width="450" data-show-faces="false"></div>
</body>
</html>