Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] Facebook Share button not sharing posts separately


  #1  
Old Nov 1, 2010, 09:26 AM
Karen
 
4 posts · Nov 2010
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, 11:59 AM
lmilesw's Avatar
lmilesw
 
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.
  #3  
Old Nov 1, 2010, 12: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, 05: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, 01: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 06:04 AM
share this button with counter how to put it ? drey Plugins & Atahualpa 5 Aug 16, 2010 01:59 PM
Facebook share button doesn't display my pics ! drey Plugins & Atahualpa 2 May 9, 2010 01:45 PM
Facebook Share Preview won't show up!! evilqueenpunk Header configuration & styling 6 Apr 1, 2010 10:41 AM
Problems With Facebook Sharing iLeonardo Post-Kicker, -Byline & -Footer 6 Oct 7, 2009 02:00 AM


All times are GMT -6. The time now is 03:33 AM.


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