【问题标题】:Facebook "Like" and "Send" buttons disappearedFacebook“赞”和“发送”按钮消失
【发布时间】:2023-03-31 21:35:02
【问题描述】:

就在几天前,Facebook 的“赞”和“发送”按钮从我的网站产品页面中消失了。该代码仍然存在,并且在它们消失之前已经工作了几个月。一个产品页面的链接是http://www.finesgas.com/details/gas_grill_brands/broilmaster_brands/popular_models/p3sx

这是我现在的代码。

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

【问题讨论】:

    标签: facebook button facebook-like


    【解决方案1】:

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

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

    【讨论】:

    • 我将 xmlns:fb="ogp.me/ns/fb#" 添加到 html 标记中,但按钮仍未显示。还有其他建议吗?
    • 是的,使用html5版本的like按钮:&lt;div class="fb-like" data-send="true" data-width="250" data-show-faces="false"&gt;&lt;/div&gt;
    • 另外,请在此处重新生成所有代码,因为它看起来不太正确:developers.facebook.com/docs/reference/plugins/like
    • 我会这样做并让您知道会发生什么。感谢您的宝贵时间。
    • 我从这个 到这个 我还将我的应用程序 ID 添加到脚本中现在一切都很好。再次感谢您的时间和建议。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-14
    • 2012-10-21
    相关资源
    最近更新 更多