Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook “脸谱网”;例如;及;“发送”;纽扣不见了_Facebook_Button_Facebook Like - Fatal编程技术网

Facebook “脸谱网”;例如;及;“发送”;纽扣不见了

Facebook “脸谱网”;例如;及;“发送”;纽扣不见了,facebook,button,facebook-like,Facebook,Button,Facebook Like,就在几天前,FacebookLike和Send按钮从我的网站产品页面上消失了。代码仍然存在,在消失之前已经运行了几个月。指向其中一个产品页面的链接是 这就是我现在掌握的代码 <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">

就在几天前,FacebookLike和Send按钮从我的网站产品页面上消失了。代码仍然存在,在消失之前已经运行了几个月。指向其中一个产品页面的链接是

这就是我现在掌握的代码

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">

<meta property="og:title" content=" Broilmaster P3SX Grill With Portable Cart" />
<meta property="og:type" content="product" />
<meta property="og:description" content="Broilmaster P3SX gas Grill With Portable Cart Base " />
<meta property="og:site_name" content="FinesGas" />
<meta property="fb:admins" content="1222761017" />
<meta property="og:image" content="http://www.finesgas.com/images/broilmaster-p3sx-loaded.jpg" />

<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>

<fb:like send="true" layout="button_count" width="250" show_faces="false" action="Like" font="tahoma"></fb:like>
<div style="padding:5px;"></div>

(功能(d、s、id){
var js,fjs=d.getElementsByTagName[0];
if(d.getElementById(id)){return;}
js=d.createElement;js.id=id;
js.src=“//connect.facebook.net/en_US/all.js#xfbml=1”;
fjs.parentNode.insertBefore(js,fjs);
}(文档“脚本”、“facebook jssdk”);

将以下内容添加到html标记中

xmlns:fb="http://ogp.me/ns/fb#"

将以下内容添加到html标记中

xmlns:fb="http://ogp.me/ns/fb#"

我在html标记中添加了xmlns:fb=“”,但按钮仍然没有显示。还有其他建议吗?是的,使用html5版本的like按钮:
另外,请在此处重新生成所有代码,因为它看起来不太正确:我会这样做,并让您知道会发生什么。谢谢你的时间。我将like按钮代码从这个替换为这个,我还将我的应用程序id添加到脚本中,现在一切都好了。再次感谢您的时间和建议。我在html标记中添加了xmlns:fb=“”,但按钮仍然没有显示。还有其他建议吗?是的,使用html5版本的like按钮:
另外,请在此处重新生成所有代码,因为它看起来不太正确:我会这样做,并让您知道会发生什么。谢谢你的时间。我将like按钮代码从这个替换为这个,我还将我的应用程序id添加到脚本中,现在一切都好了。再次感谢您的时间和建议。