本文介绍了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
推荐答案
<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>
这篇关于Facebook喜欢和分享次数显示相同数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!