2

我是一个网站的 PHP 开发人员,最近用更新的代码示例替换了 Sharer.php 代码。Like 按钮可以正常显示,但是当您单击它时,弹出窗口仅显示一两秒钟,然后消失。此外,描述没有显示在弹出窗口中 - 只是 URL。Like 按钮代码包含在 DIV 容器中,用户可以隐藏(使用 JQuery),页面上有 AJAX 可以每分钟自动查询一次表以刷新屏幕上的计数器。

以下是一些代码片段,以防万一,任何帮助表示赞赏:

<meta property="og:title" content="FourFreedomsBlog - Romney/Ryan: Channeling the  inner McCain" />
<meta property="og:description" content="The Romney/Ryan campaign is evoking an eerie recollection of the McCain campaign of 2008: trust us - you'll get the details AFTER we're elected." />
<meta property="og:url" content="http://www.fourfreedomsblog.com/Blog.php?Act=ViewBlogPost&amp;BlogID=2090" />
<meta property="og:image" content="http://www.FourFreedomsBlog.com/images/4Fv3.0.gif" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="FourFreedoms Blog" />
<meta property="fb:admins" content="14194340826" />

<div class="ShareThisContainer">

<div class="FoldingMenu">
  <h4><button id="showShareThis" class="ButtonHide" /></button><span name="" id="">Share This!</span></h4>

  <div id="SharePane" class="TogPane ItemHide">

    <table class="ShareThis">
      <tr>
        <td colspan=8>

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

          <div class="fb-like" data-href="http%3A%2F%2Fwww.FourFreedomsBlog.com%2FBlog.php?Act=ViewBlogPost&BlogID=2090" data-send="true" data-width="320" data-show-faces="true"></div>

        </td>
      </tr>
    </table>

  </div><!-- id=SharePane -->

</div><!-- class=FoldingMenu -->
</div><!-- class=ShareThisContainer -->
4

1 回答 1

0
于 2012-09-18T14:49:43.990 回答