Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
Sandeep Mewara 15-May-12 1:54am    
Sounds like some issue in your logic. It would be hard for anyone to suggest anything without seeing related code snippet.

1 solution

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

fb-like button code

HTML
<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 button code

HTML
<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>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900