Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » Forum Usage » Forum How-To »

[SOLVED] Facebook Share button not sharing posts separately

Old Nov 1, 2010, 10:26 AM
4 posts · Nov 2010

I would like to add a Facebook Share button (with count) to all my posts. I took the following code from Facebook:

<a name="fb_share"></a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"

and then put in the loop after byline. The button appears on every post on the homepage, but won't take the link of the single post only from the whole website.

What can be the problem?

Thanks for helping me out,
Old Nov 1, 2010, 12:59 PM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
Have you tried any plugins for this functionality. They may integrate better with WordPress the the FB code.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Old Nov 1, 2010, 01:12 PM
4 posts · Nov 2010
Hi lmilesw,

Thank you for you reply. Yes, I've tried some plugins, but then the counter was overreacting, e.g. 111,111 shares, that's not normal. So I thought I better place some code in the loop. I know other people are using that as well.

Do you have an idea?
Old Dec 5, 2010, 06:52 PM
Big Geek Daddy's Avatar
Big Geek Daddy
42 posts · Nov 2009
United States
This is the code I have in Single Post Byline:

<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
Old Dec 6, 2010, 02:30 AM
4 posts · Nov 2010
Thanks, I figured out that you also need to put something extra so it shares the post separately. I now use the following code and it's working!

<a class="facebookShare" name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php" share_url="<?php the_permalink() ?>">Share</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>


facebook share button, loop

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Share Post on FaceBook without any use of plugins (( Atahualpa )) irvin Atahualpa 3 Wordpress theme 5 Dec 18, 2010 07:04 AM
share this button with counter how to put it ? drey Plugins & Atahualpa 5 Aug 16, 2010 02:59 PM
Facebook share button doesn't display my pics ! drey Plugins & Atahualpa 2 May 9, 2010 02:45 PM
Facebook Share Preview won't show up!! evilqueenpunk Header configuration & styling 6 Apr 1, 2010 11:41 AM
Problems With Facebook Sharing iLeonardo Post-Kicker, -Byline & -Footer 6 Oct 7, 2009 03:00 AM

All times are GMT -6. The time now is 08:01 AM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.