Facebook喜欢和分享次数显示相同数字

问题描述:

我的页面上有fb-like和fb-share按钮,但是当我单击"like"或"share"按钮时,"like"和"share"的计数同时增加.

例如, like count = 2而share count = 1
喜欢我的网页后喜欢计数= 3并且共享计数= 3

这是问题.

I am having fb-like and fb-share button on my page, but when i click like or share button, the count in like and share increases simultaneously.

As for example like count = 2 and share count = 1
after liking my web page Like count =3 and share count = 3

This is the problem

我使用以下代码来实现fb类和fb共享.但它不起作用

类似fb的按钮代码

I used following code to implement fb-like and fb-share. but its not working

fb-like button code

<iframe src="http://www.facebook.com/plugins/like.php?href=<%=ShareURL.ToString() %>&layout=button_count&show_faces=false&width=100&action=like&font=lucida+grande&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 85px;height: 21px;" allowtransparency="true">
</iframe>



fb-share按钮代码



fb-share button code

<div style="display: inline; float: right; margin-removed 80px;">
   <a href="http://www.facebook.com/sharer.php" name="fb_share">
      share_url="<%=ShareURL.ToString() %>" type="button_count">Share</a>
   <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share">
          type="text/javascript"></script>
</div>