Ahmed The Geek
Techno For Geeks
  • Home
  • Blog
  • Online Me
  • Live Show
  • About
  • Contact Me
  • Geeks Avenue
Select Page ...

Blog

Facebook Like Button V5.0 Major Update

Ahmed August 8, 2010 Products 283 Comments


[Update 5.9.3]

  1. Bug Fixes.
  2. Custom Page Type Added.
  3. Disable on Custom Posts.
  4. Custom Post Type Added.

[Update 5.9.2]

  1. Send Button Support Added!

[Update 5.8 - 5.9]

  1. Post thumbnail bug fixed! . Now whenever you have a thumbnail for a post and you share it on Facebook it’s going to show this thumbnail by default…

Blank Screen & Fatal error [FIX]

If you get this error after updating to 5.9 you can solve it by adding this line of code to your theme functions file:


 add_theme_support( 'post-thumbnails' );

 

[Update 5.7]

  1. Disabled in Certain Pages Bug Fixed.
  2. Show in home Bug Fixed.
  3. og:description Bug Fixed.

Updates:

  • Admin layout has been redesigned.
  • Facebook Recommendations has been added.
  • Facebook Recommendations sidebar widget has been added.
  • Facebook Recommendations shortcut has been added.
  • Customizable Recommendations Widget Title.
  • Customizable Recommendations Widget Layout Settings.

Notice:

To Everybody who get fatal error. Contact your web hosting providers and tell them to upgrade to PHP 5 or the latest version of PHP.

Integrate Recommendations it into your template:

By Shortcut:

fb_rec –> put it inside [ ]

By PHP code:


<!--?php $Rec_Widget = new Widget_Layout(); echo $Rec_Widget--->Layout();

?>

Integrate Like Button it into your template:

By Shortcuts:

fb_count  –> for the count button. put it inside [ ]

fb_fb_like –> for the normal button. put it inside [ ]

By PHP code:


<!--?php //For the normal button if(function_exists('Short_Button')) { 	echo Short_Button(); 	} //For the count button if(function_exists('Count_Button')) { 	echo Short_Button(); 	} ?-->

Disable in certain pages:

While creating/editing a page you can find a box on the side, under the publish/update box, called: Disable Facebook Like Button.

Check the check box to disable the button from this page or uncheck to enable it.

Download

 

As i can see, my plugin’s rate is so bad. so if you really like it please rate it up here:

http://wordpress.org/extend/plugins/facebook-like-button/

and you can donate using the sidebar widget to help the plugin continue growing.

if you have any question leave a comment or email me on: me@ahmedgeek.com

← iPhone 4G/HD Coverage
The Official Tweet Button Plugin for WordPress →
avatar
Ahmed

My name is Ahmed Hussein aka Ahmed The Geek, i'm 20 years old guy from Cairo, Egypt. I'm a Computer Science Student, and working as a Senior Web Solutions Developer at Clicker DM. Hope you like my posts and feel free to contact me :).

283 Responses to Facebook Like Button V5.0 Major Update

  • avatar
    apsara loves mitoken - ?????????????
    10 / 26 / 2010

    [...] Facebook Like [...]

    apsara loves mitoken - ????????????? 10 / 26 / 2010
    Reply
  • avatar
    wordpress?Facebook?(???)???!!??? | ??????????
    10 / 28 / 2010

    [...] Facebook Like Button [...]

    wordpress?Facebook?(???)???!!??? | ?????????? 10 / 28 / 2010
    Reply
  • avatar
    Gilbert
    10 / 28 / 2010

    Hi! Great plugin!

    I just wanted to notify you of a bug that occurs when a post has double quotes in it. There is a meta tag that’s displaying the post title and it’s not encoded.

    This causes the tag to break and it displays part of the text at the top of the page.

    [Reply]

    Gilbert 10 / 28 / 2010
    Reply
  • avatar
    WordPress: What is the best Facebook-like plugin for WordPress? - Quora
    11 / 2 / 2010

    [...] a dynamic date here  Paul O'Brien Try Facebook Likehttp://blog.ahmedgeek.com/facebo…Insert a dynamic date here BIU     @   @ ReferenceEdit [...]

    WordPress: What is the best Facebook-like plugin for WordPress? - Quora 11 / 2 / 2010
    Reply
  • avatar
    Andreas Ostheimer
    11 / 2 / 2010

    Hi,

    thanks for this plugin.
    One typo up there could lead to some confusion – you wrote: “fb_fb_like –> for the normal button. put it inside [ ]” but isn’t it just “fb_like” ?

    [Reply]

    Andreas Ostheimer 11 / 2 / 2010
    Reply
  • avatar
    WordPress????????????? « Web????
    11 / 9 / 2010

    [...] ????????????????????Facebook Like????????Deep Blue??????????????????????????????????? [...]

    WordPress????????????? « Web???? 11 / 9 / 2010
    Reply
  • avatar
    Me
    11 / 11 / 2010

    Geez, where can I download it?

    [Reply]

    Me 11 / 11 / 2010
    Reply
  • avatar
    Erik
    11 / 11 / 2010

    I am having the same problem as several others. When I try to disable the like button on one page, it disables it on all of my pages. Is there a solution for this?

    [Reply]

    Erik 11 / 11 / 2010
    Reply
  • avatar
    Jacob Schatz » Blog Archive » Tweet button and Facebook Like button for Wordpress
    11 / 11 / 2010

    [...] Facebook Like Button [...]

    Jacob Schatz » Blog Archive » Tweet button and Facebook Like button for Wordpress 11 / 11 / 2010
    Reply
  • avatar
    Matt Jones
    12 / 30 / 2010

    Thanks for the great plug-in. It works wonderfully!

    I would recommend putting the php code at the plug-in’s page at wordpress for those of us that want to add the code manually to our blog. It took me a while to find this page that has that information.

    Thanks again!

    [Reply]

    Matt Jones 12 / 30 / 2010
    Reply
  • avatar
    Matt Jones
    12 / 30 / 2010

    Oh, also: your note about people getting a fatal error because of not using PHP 5 helped solve a problem with another plugin I was trying to use. Its developer had no idea why it was crashing; seeing your comment about that and upgrading to PHP 5 solved both problems! So, thanks!

    [Reply]

    Matt Jones 12 / 30 / 2010
    Reply
  • avatar
    Thorsten
    1 / 4 / 2011

    Hi, it seems that your Facebook-Like Button does not work with the new design of Facebook. Each user can switch to a new design and handling. Now when I push the Like-Button I get an error of Facebook with a missing URL. Before I switched to the new profile page everything was fine. I use your version 5.7 and it’s a great plugin.

    [Reply]

    Thorsten 1 / 4 / 2011
    Reply
  • avatar
    Sean
    1 / 6 / 2011

    Hi all

    I am running WP 2.8.4 and am trying to install the plugin Ver5.7. However I am getting the following fatal error. PHP has been upgraded – has anyone solved a similar problem?

    Sean

    Fatal error: require_once() [function.require]: Failed opening required ‘/usr/share/wordpress/wp-content/plugins/facebook-like-button/inc/local.inc.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /usr/share/wordpress/wp-content/plugins/main.php on line 31

    [Reply]

    Sean 1 / 6 / 2011
    Reply
  • avatar
    Chaster_PL
    1 / 11 / 2011
    Ahmed

    OK I give up :(

    Just look in code: now – first substr 140 chars from content and after that strip_tags
    But if content starts with Like button there is just html code which is stripped to empty string. To fix this first strip_tags from content and then substr 140 chars (or more).

    Its all I want say ;-)

    Thanks for plugin;-)

    —
    Just remove my prev comments, thanks ;-)

    [Reply]

    avatar

    Reply:
    January 11th, 2011 at 7:11 pm

    Okay, thanks a lot Chaster. :)

    [Reply]

    Chaster_PL 1 / 11 / 2011
    Reply
  • avatar
    Jackie
    1 / 11 / 2011
    Ahmed

    I just wanted to report a bug. 5.7 says “2.Show in home Bug Fixed”.

    The Like button does not appear on my home page.

    Thanks for the great plugin!

    [Reply]

    avatar

    Reply:
    January 11th, 2011 at 7:10 pm

    Did you check the show in home box?

    [Reply]

    Jackie 1 / 11 / 2011
    Reply
  • avatar
    2011 Must Have FREE Plugins For WordPress | David Papandreas
    1 / 11 / 2011

    [...] Facebook Like by Ahmed [...]

    2011 Must Have FREE Plugins For WordPress | David Papandreas 1 / 11 / 2011
    Reply
  • avatar
    Eric
    1 / 12 / 2011

    Hi
    Please update your plugin link, it’s still pointing to your old page.

    Use hook to insert script at the footer of the page, because the script is inserted for each post in the index page.

    Thanks

    [Reply]

    Eric 1 / 12 / 2011
    Reply
  • avatar
    michael
    1 / 12 / 2011

    I’m suddenly missing the thumbnail images on my website which is using the facebook recommendations plugin.

    Actually there is one thumbnail image out of six that is showing, but it is showing an incorrect image next to the person, the rest are just generic icons. Any idea what’s causing this?

    [Reply]

    michael 1 / 12 / 2011
    Reply
  • avatar
    Kathy
    1 / 16 / 2011

    I am getting the following error: Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/xxx/public_html/wp-content/plugins/facebook-like-button/inc/update_options.inc.php:101) in /home/xxx/public_html/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 121 Not sure why this is happening, WordPress version is 3.0.4

    [Reply]

    Kathy 1 / 16 / 2011
    Reply
  • avatar
    Benny
    1 / 24 / 2011

    Hello, i’ve got problems with ä, ü and ö. @ Facebook. If i Press the
    Button @a Page with The following
    Content:Cover für Ausgabe Nr. xx Artikel Fotos für Ausgabe Nr. xx”.” i See only “RockStarT Magazine (Print) Cover für Ausgabe Nr. xx Artikel Fotos für Ausgabe Nr. xx”

    I Hope you can help me!

    [Reply]

    Benny 1 / 24 / 2011
    Reply
  • avatar
    10 Essential Wordpress Plugins for Photobloggers | Seven by Five
    1 / 24 / 2011

    [...] http://www.ahmedgeek.com/facebook-like-button-v5-0-major-update There is no debating Facebook is king of the social networks. This plugin allows you to add a Facebook “Like” button. You have control over where the button appears and if it features images of those who liked the article or just the count. [...]

    10 Essential Wordpress Plugins for Photobloggers | Seven by Five 1 / 24 / 2011
    Reply
  • avatar
    Pene
    1 / 25 / 2011

    I’m using your plugin on one of my website. My layout setting are the followings:

    style: standard
    show faces: yes
    verb to display: like
    font: def.
    color scheme: light
    width: 535
    height: 64

    Basically, there is a 30px or so blank space (the space for faces appear after likes), when nobody likes my post. Is there any way to be a bit dinamically, and hidden that space before someone likes my post/uses the plugin?

    Thanks for your response!

    [Reply]

    Pene 1 / 25 / 2011
    Reply
  • avatar
    chris voss
    1 / 25 / 2011

    Recently my website stopped working with the posts on IE only. It scrolled the posts down a long way to the bottom. Turns out it was your plugin again. Any fixes?

    Chris

    [Reply]

    chris voss 1 / 25 / 2011
    Reply
  • avatar
    John
    1 / 25 / 2011

    Great Plugin. I’m using it on all of my sites. Perhaps i missed how to do this but..
    how do you change the description that is displayed on FaceBook. While in Facebook, if i share a link to the main page of my site, The title and photo show up properly as setup in the plugin, however.. the description is showing an excerpt of my top post. Can i change this to display something more relevant?

    [Reply]

    John 1 / 25 / 2011
    Reply
  • avatar
    Joshua Cohen
    1 / 26 / 2011

    Hi Ahmed – Love the plugin! One question:

    Is there any way to link the plugin to a Facebook Fan Page? For example, we’ll get 12 likes on a post on our web page, but a Wall Post with a link to the same exact post will have only 1 or 2 likes on our Facebook Fan Page.

    Any ideas on how we can link the likes we receive on the webpage to our Fan Page?

    Thanks! – Josh

    [Reply]

    Joshua Cohen 1 / 26 / 2011
    Reply
  • avatar
    Sarah Kramer
    1 / 27 / 2011

    The plugin stopped working last week…no idea why. Do you?

    [Reply]

    Sarah Kramer 1 / 27 / 2011
    Reply
  • avatar
    Jackie
    1 / 27 / 2011

    The Facebook Like Button appears directly underneath my posts. Is there a way for me to edit the code to add a or something to add some space?

    [Reply]

    Jackie 1 / 27 / 2011
    Reply
  • avatar
    Benny
    1 / 27 / 2011

    @Jackie you can add the following codes in the article, oder site. to get space between content und the button, use the html mode and add a “” without the “. I hope i can help.

    fb_count –> for the count button. put it inside [ ]

    fb_fb_like –> for the normal button. put it inside [ ]

    i decided me to delete this plugin and install a nother facebook plugin, because no support. It’s sad, because the plugin do exactly that what i need.

    @ahmed, if you get a solution for my problem, i would use your plugin again. because, i love it !

    [Reply]

    Benny 1 / 27 / 2011
    Reply
  • avatar
    Igor
    2 / 2 / 2011

    Hello Ahmed

    First thanks for the plug-in. Second… i have a problem with it. After 3 people clicking like on some post on my site (www.kafepauza.mk) Facebook is giving wrong picture and very short and cut in the middle excerpt.

    Can u help me?

    Thanks in advance.

    [Reply]

    Igor 2 / 2 / 2011
    Reply
  • avatar
    Martin
    2 / 10 / 2011

    Hello Ahmed!

    I have kind of a lame question but I was unable to get the answer by googeling it.

    What exactly should be filled in the Admin ID field?

    Best wishes,
    Martin

    [Reply]

    Martin 2 / 10 / 2011
    Reply
  • avatar
    Ivan
    2 / 10 / 2011

    Hello,

    I ve been using your facebook like button and it seemed to work perfectly ok until a few days ago when it started to fail.What makes it more strange is that it seems to be working all right in some posts and it doesn t work in others. The problem I am experiencing is that all the likes counted have disappeared and if you click on the like button it doesn t add any like at all.

    I am using wordpress 3.05.

    Thank you

    [Reply]

    Ivan 2 / 10 / 2011
    Reply
  • avatar
    Josh S
    2 / 10 / 2011

    The like buttons stopped working for me too… anyone know a fix?

    [Reply]

    Josh S 2 / 10 / 2011
    Reply
  • avatar
    Renee Burrows
    2 / 10 / 2011

    Mine stopped working three days ago also! Help or do I need to download and reconfigure a new one?

    [Reply]

    Renee Burrows 2 / 10 / 2011
    Reply
  • avatar
    Danial Shah
    2 / 11 / 2011

    can you see why is it giving error to LIKE on my recent post? :S :(
    http://www.iexplorepakistan.com/spin-karez-quetta

    [Reply]

    Danial Shah 2 / 11 / 2011
    Reply
  • avatar
    Anonymous
    2 / 11 / 2011

    Hi Ahmed! I’ve got your Facebook Like plugin installed on my WP site. But in the past two days, several of my pre-existing “likes” have started to disappear. There is no pattern for this. Some posts have retained all their ‘likes’ while others have entirely disappeared. Again, there seems no rhyme to why this is happening (URL links have not been edited, etc.). Posts that had upwards of 50 ‘likes’ have now gone to zero. Quite upsetting! Any suggestions? Thank you!

    [Reply]

    Anonymous 2 / 11 / 2011
    Reply
  • avatar
    Liz
    2 / 11 / 2011

    Hey – the app stopped working for me a few days ago too. Any solutions?

    [Reply]

    Liz 2 / 11 / 2011
    Reply
  • avatar
    Najlepsze wtyczki do WordPress’a | KogelMogel - webowy mix - ciekawe artyku?y na temat internetu.
    2 / 16 / 2011

    [...] Facebook Like – dodaje przycisk “Like” do naszego bloga, oraz button [...]

    Najlepsze wtyczki do WordPress’a | KogelMogel - webowy mix - ciekawe artyku?y na temat internetu. 2 / 16 / 2011
    Reply
  • avatar
    Jasper
    2 / 20 / 2011

    Hi, I like your plugin.
    But I got a lot of w3c errors in my site when using this plugin. Is it possible to fine tune the code? When you use this plugin in a category page, the button will apear multiple times. So you cannot use the same ID (id=”fb-root”) for all the buttons.

    regards

    [Reply]

    Jasper 2 / 20 / 2011
    Reply
  • avatar
    Amit
    2 / 26 / 2011
    Ahmed

    Hello,

    I am getting the following error whenever I save settings for the Facebook Like Button –

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/wedding/public_html/blog/wp-content/plugins/facebook-like-button/inc/update_options.inc.php:101) in /home/wedding/public_html/blog/wp-content/plugins/wordpress-automatic-upgrade/wordpress-automatic-upgrade.php on line 121

    Could you please help.

    FYI, currently using WordPress v 3.1 ….. just updated today.

    Thanks

    [Reply]

    avatar

    Reply:
    February 26th, 2011 at 2:29 pm

    It’s probably caused by the WordPress Automatic Upgrade plugin, because it hold some headers. So if something is printed before it run, this is going to cause an already sent header problem.

    [Reply]

    Amit 2 / 26 / 2011
    Reply
  • avatar
    Ricky
    2 / 26 / 2011

    I got a white blank site today after i upgraded your plugin. Scared me at first, but the solution was to add

    add_theme_support( ‘post-thumbnails’ );

    to my themes functions.php file.

    I didn’t get any “Fatal error” (probably my hosts settings?), just wanted to let you know.

    Great plugin btw! Love it :)

    [Reply]

    Ricky 2 / 26 / 2011
    Reply
  • avatar
    Greg
    2 / 26 / 2011
    Ahmed

    I am using php5 on my site. It is the default. I also have php4 and i am getting blank page. Was working fine before i installed the update.

    You want us to add a bit of code to the template? Plugins should work out of the box without having to manually edit it ourselves.

    Because of that I have removed it from my site. However when you fix it i may reinstall it.

    [Reply]

    avatar

    Reply:
    February 26th, 2011 at 8:58 pm

    Actually it’s not my plugin problem it’s a theme designer problem. they should ‘ve added this code to their style cuz it’s slandered now to have a thumbnail into your post.

    And i can’t add it into the theme actually if it’s not there already, so you have to do it manually and i don’t find a problem by doing this. It’s just few clicks mote..

    [Reply]

    Greg 2 / 26 / 2011
    Reply
  • avatar
    Aigars
    2 / 26 / 2011
    Ahmed

    Hi!
    I updated wordpres to version 3.1 few days ago. Today I saw that new version of your Facebook Like button is here, which is 5.9. So I upgraded.
    But after I wanted to check out my blog, message came up – Fatal error: Call to undefined function get_post_thumbnail_id() in /home3/liveyou5/public_html/flashandphp/wp-content/plugins/facebook-like-button/inc/fun.inc.php on line 20

    What does it mean? And how it can be fixed?

    Thank you

    [Reply]

    avatar

    Reply:
    February 27th, 2011 at 12:10 am

    Hi, the fix is under the change log in this post.. go up and read it :)

    [Reply]

    Aigars 2 / 26 / 2011
    Reply
  • avatar
    Thompsen
    2 / 26 / 2011
    Ahmed

    same problem on on line 20 :(

    [Reply]

    avatar

    Reply:
    February 27th, 2011 at 12:10 am

    Hi, the fix is under the change log in this post.. go up and read it…

    [Reply]

    Thompsen 2 / 26 / 2011
    Reply
  • avatar
    Thompsen
    2 / 27 / 2011
    Ahmed

    ok, thanks. but one more noob question:
    have i to add “add_theme_support( ‘post-thumbnails’ );” in the first line?

    [Reply]

    avatar

    Reply:
    February 27th, 2011 at 1:22 am

    You should add it after the <?php tag :)

    [Reply]

    Thompsen 2 / 27 / 2011
    Reply
  • avatar
    Brett Leveridge
    2 / 27 / 2011

    Here is the text from my functions.php file.

    ”, ‘after_widget’ => ”, ‘before_title’ => ”, ‘after_title’ => ”) );
    }
    function wp_version() {
    global $wp_db_version;

    if ( $wp_db_version

    Can you tell me exactly where to place the addtional text — add_theme_support( ‘post-thumbnails’ ); ?

    Wherever I’ve tried it, it hasn’t helped.

    [Reply]

    Brett Leveridge 2 / 27 / 2011
    Reply
  • avatar
    Stephen Pickering
    2 / 27 / 2011

    Have had this plug in for a long time, but just now when updated it, it broke my site. No error message, but when I go to my site only the background is showing. I added that code to the functions file, but its still not working.

    [Reply]

    Stephen Pickering 2 / 27 / 2011
    Reply
  • avatar
    Rowan
    2 / 27 / 2011

    I have had the same problem of fatal error after updating. Added the code but it didn’t work. Can’t you update the plugin then we can reinstall it? Also have I lost my previous likes now that I have had to disable it?

    [Reply]

    Rowan 2 / 27 / 2011
    Reply
  • avatar
    Arafat Rahman
    2 / 27 / 2011

    The bug is still there.
    It generates the following error:
    Fatal error: Call to undefined function get_post_thumbnail_id() in …./wp-content/plugins/facebook-like-button/inc/fun.inc.php on line 20

    [Reply]

    Arafat Rahman 2 / 27 / 2011
    Reply
  • avatar
    DIMEX
    2 / 27 / 2011

    After 5.9 update, my blog isn’t work, can you fix this bug in ur plugin ? thx

    [Reply]

    DIMEX 2 / 27 / 2011
    Reply
  • avatar
    hatten
    2 / 28 / 2011

    My facebook like thumbnails seem to be random wich it takes. If i like a post it wont take that thumbnail for that specific post but instead it seems it uses any random postimage it finds.

    Any solution to this?

    [Reply]

    hatten 2 / 28 / 2011
    Reply
« Older Comments
Newer Comments »

Leave a Reply Cancel reply

Add Your Location (Geo-Tag Your Comment)

Your email address will not be published. Required fields are marked *

Click to cancel reply
  • Find me on Facebook

  • Donate To The Geeks





  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 3 other subscribers

  • Google Ads


  • Avatars by Sterling Adventures
    Avatars by Sterling Adventures
    • Products
    • Reviews
    • Tutorials
    Copyright © 2012 ahmedgeek.com, Part of the GeeksAvenue.com Developers Network, All Rights Reserved