【问题标题】:Facebook like button not showing like count [firefox]Facebook 喜欢按钮未显示喜欢计数 [firefox]
【发布时间】:2012-03-12 19:39:52
【问题描述】:

我的博客中有一个使用 html5 的 facebook like 按钮,但它不显示不喜欢的访问者的计数。当有人点击按钮时,它会显示 1 个赞(即使我测试了多个 facebook 用户都喜欢它。(赞有效,它确实出现在 facebook.com 上)

在 3 种不同的浏览器中测试。

这是我使用的代码:

<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&appId=xxxxxxxx";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


<div style="float: left;margin-left: 40px;" class="fb-like"  data-href="http://www.xxxxxx.com/?p=<?php the_ID(); ?>"  data-send="false" data-layout="button_count" data-width="100" data-show-faces="true" data-font="segoe ui"></div>

编辑:我认为问题出在 Firefox 上。当我喜欢来自 firefox 的页面时 - 不会在其他浏览器中显示。当我喜欢 chrome 或 safari 时 - 显示除 Firefox 之外的所有内容。

【问题讨论】:

    标签: facebook firefox facebook-like


    【解决方案1】:

    我有同样的问题,但我发现这是因为 FB 的缓存,因为当我喜欢 Firefox 中的任何内容时,它同时显示计数,但第二天你会看到所有的共享和喜欢。我在 wordpress 上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多