Fix Facebook Like

Facebook Like many times gives problems like wrong thumbnail (og:image), wrong title (og:site_name), wrong description (og:description), etc. This plugin fixes them, as it enforces WordPress post thumbnail for image if a post is liked, or your website’s logo if home page is liked, post title if post is liked or blog title if home page is liked, it also uses excerpts for description(optional) or blog tagline if home page is liked. In addition to these, it also gives the option to add your website type and admins of your website.

You can use Facebook’s URL Linter to verify the settings.

NOTE: This plugin doesn’t adds a Facebook Like button, but gives options/settings for it. There are many plugins to add Facebook Like buttons to your website, you can check them out.

It uses Open Graph protocol from Facebook for fixing these.

You can customize these in the Settings section:

  • Using post excerpt for description text.
  • Type of website (og:type).
  • Website’s logo (og:image for Homepage).
  • Admin Facebook IDs (fb:admins).

Installation

  • Download the latest version.
  • Extract it in the /wp-content/plugins/ directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.
  • Customize the plugin in the Settings > Fix Facebook Like.

Adding your Facebook ID to the Settings will allow you to manage your Fans faster and send them updates.

Frequently Asked Questions

Do I need to provide my Facebook ID?
No, its optional, it will still work fine.

How to get my Facebook ID?
You need your numerical Facebook ID.
To get your profile ID, click on your Facebook profile and look at the URL, it should resemble this: http://www.facebook.com/profile.php?id=123456789 where 123456789 is your Facebook user ID.
If you have a username, lookup your user ID with this URL: http://graph.facebook.com/username.

Screenshots(Click for larger image)

The Settings menu in the admin panel for customization.
  • Christina Majaski

    I may be doing something wrong but the posts are still sharing on FB with all of the messed up code. http://www.solitarymama.com. It doesn’t matter which like button I use they all show up crazy and with thumbnails of images in my sidebar.

  • Fannar

    thanks for your great plugin. I’m having one problem though, when I create a post in WordPress without a thumbnail I get an error on my like box saying that there is no  meta property=”og:image”  present. I realize that if there is no image present that your plugin will not generate the og:image meta data, but is there a way to have it use a default image when no thumbnail is present? otherwise I always get errors on posts that don’t have images.

  • http://www.priteshgupta.com Pritesh Gupta

    The Button still work fine, 
    and if you dont wanna use the WP Post Thumbnail, simply delete the associated codes of line from the plugin’s php file. 

  • http://www.priteshgupta.com Pritesh Gupta

    The Button still work fine, 
    and if you dont wanna use the WP Post Thumbnail, simply delete the associated codes of line from the plugin’s php file. 

  • Fannar

    On the posts that don’t have any images the meta tag for images turns up empty like so:  and when I press the like button I get an error because of this. But on the posts that have WP Post Thumbnails it works well. I would like to have both posts with WP Post Thumbnail and without them.

  • http://www.priteshgupta.com Pritesh Gupta

    I will add this in a future version using a simple conditional. :-)  
    Though everything is gonna still work fine I suppose .

  • Fannar

    I managed to fix the problem, it was a combination of adding this to the plugin

    <meta property="og:image" content="”/>and then the iframe code for the like button had gone crazy as well.

  • http://www.ryan-isra.net/ Ryan Isra

    I just realized my adsense script doesn’t show up for a week.
    Then I found out that your “Fix Facebook Like” plugin causing the Quick Adsense stopped displaying ads.

  • Anonymous

    How can I thank you?
    your plugin really save my life..

    lot of FB like plugins I tried, then yours are the best.

    +1..

  • http://www.priteshgupta.com Pritesh Gupta

    Thanks! :-)

  • http://www.facebook.com/GLOBALPROSPECTMEDIASOLUTION Asia Farville
  • http://www.priteshgupta.com Pritesh Gupta

    You are welcome!

  • Olly

    I get the following fatal error:

    Fatal error: Cannot redeclare addheadercode() (previously
    declared in
    /var/www/vhosts/jamsideupltd.com/httpdocs/wp-content/plugins/social-links/sociallinks.php:312)
    in /var/www/vhosts/jamsideupltd.com/httpdocs/wp-content/plugins/fix-facebook-like/fix_facebook_like.php on line 218

  • http://www.priteshgupta.com Pritesh Gupta

    Try deactivating the social links plugin. 

  • http://eyeopinion.com Prosenjeet Dasgupta

    Hello!I just downloaded your lovely plugin.
    Installed it
    Configured it…Though didnt add the logo and Facebook ID
    It doest show in posts or pages
    Can you help please.

  • http://www.priteshgupta.com Pritesh Gupta

    Umm, try re installing it perhaps. And it wont work on previews.

  • Namila

    hi.i add ur plugin and config it..but still Like button doesnt working,it showing an error “”Your page’s type requires that a meta tag of the form be present.”
    i add my logo.png also.. why this still happening?? you can check my site http://sinhalablog.linkz2u.com/

  • http://www.priteshgupta.com Pritesh Gupta

    Write the full path of the logo of  your website.

  • Anonymous

    i add it as “http://www.sinhalablog.linkz2u.com/logo.png” but still Like button not working

  • http://www.priteshgupta.com Pritesh Gupta

    Your website “http://www.sinhalablog.linkz2u.com/” is broken.

  • Anonymous

    what?? :-/

  • Bee

    Hi there.. I installed the plugin and adjusted the settings as instructed, but my Like button is still grabbing the wrong image.  http://www.beedajuice.com  If you like a post, it should show this image: http://www.beedajuice.com/wp-content/uploads/2011/08/beee.jpg  (it needs to be adjusted, but I put this just for the trial).  Any idea what I’m doing wrong?

  • http://www.priteshgupta.com Pritesh Gupta

    You need to set WordPress Post Thumbnail for each image.

  • Bee

    Now it does appear to be working, but it is showing the code!

  • tm

    I actually have the same problem – only after installing your plugin…Hope there’s a way to solve it, cause the plugin’s working fine apart from that…

  • Guiutzu

    like button has stopped counting likes after install, how i add atributes to start counting?

  • http://www.maulanurulkhakam.com Maula Nurul Khakam

    but what about for blogger??hmmmm…

  • http://www.priteshgupta.com Pritesh Gupta

    You can use the same OG tags for blogger too.

  • http://www.maulanurulkhakam.com Maula Nurul Khakam

    hmm..in blogger i can fill sorce content og:image just for homepage using conditional, but for ite/each posting thumbnail were worong because content og:image is blank cause of the source link of image is dynamically…not like a homepage which is static logo…

    correct me if im wrong..

  • http://www.priteshgupta.com Pritesh Gupta

    See http://developers.facebook.com/docs/opengraph/

  • http://www.maulanurulkhakam.com Maula Nurul Khakam

    oke i see..but thats it for webSITE not blog dynamic, which is have dynamic content and image url/post… wordpress have the solution with this plugin..but blogger??

  • http://www.priteshgupta.com Pritesh Gupta

    You need to figure out something for that…

  • http://www.maulanurulkhakam.com Maula Nurul Khakam

    hmm..oke trying to like my blogpost in facebook http://www.maulanurulkhakam.com/2011/09/kupinang-power-jurusan-elektro-its.html , thumbnail of this like share is wrong.., not ike my homepage which is i put the url of image in but in each post..no URL..

  • Angie

    Is there a way to NOT have a like button on a certain page, I am using premis landing pages and do not want the LIKE button on one page.  Thanks!

  • http://www.priteshgupta.com Pritesh Gupta
  • Fanaticweb

    Hi there, I just installed your plugin recently on an existing blog using WP 3.2.1 and a CMS based theme using Custom Posts.
    I’m using the TF Social share plugin which includes the FB Like and Google+ social icons.

    Whenever I click on the FB Like button under a post (custom post using custom taxonomies), the thumbnail that is displayed on FB is some random banner ad image from another plugin I’m using for Advertisement which uses Php code to push random ads.

    Anyway we can control or change that to make sure it grabs an image form the actual post itself instead of fetching an image randomly from another plugin??

  • http://www.priteshgupta.com Pritesh Gupta

    I believe you should try deactivating the other plugin, otherwise changing the function names of this plugin might also work.

  • Deog_22

    Thanks alot for the plugin it really help me.

  • http://www.adamsaverian.com Adam Saverian

    WordPress 3.2 Isn’t working for me. Just to let you know. The open graph image tag still shows the wrong image.

  • Eric

    I’m still getting the old thumbnails when i type my website on facebook. What should i do? 

  • http://twitter.com/OnAJunket On A Junket

    I’ve noticed that when using this plugin, I insert a link into Google Plus that the titles becomes duplicated. Is there a way to clear that up? my site is http://www.onajunket.com

  • Ciprian Cirstea

    Hello, 

    I was using this to fix a problem I was having if there was no post thumbnail set. The plugin was grabbing an unrelated image from the page and posting it to FB. 

    <meta property="og:image" content="ID) );}else{ echo “http://mywebsite.com/wp-content/uploads/2011/10/myimage.png”;} ?>”/>

    After the latest update, the og:image is empty. Any ideas?

  • http://www.jussisolja.com/ Jussi Solja

    After installing your plugin to my site posts and pages don’t display at all…for some reason the HTML stops “printing” after the -tag…any clue?

    Would love to use the plugin ’cause it was exactly what the doctor ordered :)

  • Vas

    Hi, I am getting an error viewing pages with this plugin.  Please see below:

    Fatal error: Call to undefined function get_post_thumbnail_id() in /home//public_html/politicalidiots.us/wp-content/plugins/fix-facebook-like/fix_facebook_like.php on line 205

  • Vas

    Call to undefined function  get_post_thumbnail_id() in xxx/wp-content/plugins/fix-facebook-like/fix_facebook_like.php on line 205

  • Pchowla

    Hi, I wondered why this is quite working perperly. I have installed it with WordPress 3.3.1. But on a post (see here http://www.worldbankpresident.org/peter-chowla/media/timely-history-on-international-appointments-us-likes-to-throw-its-weight-around) which has a featured image – the og:image output is blank. While the home page icon set in the plug-in Settings page works fine on the home page. The images URLs for the posts are not coming properly in the meta tags

    Any idea why this might be happening?

  • Beatricebp

    Since I downloaded the app, it works fine in terms of preview… but it doesn’t record my “likes” anymore… will show up on FB profile, but not stay as a “2 likes”… Help? http://beatricebp.com/ Thanks!

CssChopper PSD to HTML Christmas Offer