Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] Facebook Share button not sharing posts separately


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 1, 2010, 10:26 AM
Karen
 
4 posts · Nov 2010
[SOLVED] Facebook Share button not sharing posts separately

Hello,

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"
type="text/javascript">
</script>

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,
VBR,
Karen
  #2  
Old Nov 1, 2010, 12:59 PM
lmilesw's Avatar
lmilesw
 
10,108 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.
  #3  
Old Nov 1, 2010, 01:12 PM
Karen
 
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?
Thanks
  #4  
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>
  #5  
Old Dec 6, 2010, 02:30 AM
Karen
 
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>

Bookmarks

Tags
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 07:55 AM.


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