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.

Is there a way to fix header issues with this plugin? As in the header already sent error?
Hi Kahil,
Which version are you using? It was fixed since version 1.2.0.
Anyways, remove the plugin, and then do a clean install of it.
If the problem still persists, contact me via the contact form at http://www.priteshgupta.com/contact/
I’m using the most current version on WordPress.org. Just installed it for the first time yesterday.
I was getting the error constantly when I had wp-super cache activated.
Now I get only this error and I can’t even get into my admin section now.
Warning: Cannot modify header information – headers already sent by (output started at /home/content/k/a/h/kahil/html/wp-content/plugins/fix-facebook-like/fix_facebook_like.php:29) in/home/content/k/a/h/kahil/html/wp-includes/pluggable.php on line 897
I deleted the plugin and installed it again. I again get this lil message right after installing:
The plugin generated 2 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
After a brief interaction with Pritesh, I would caution you to stay away from him and this plugin.
Hi Kahil,
I get you, my bad, I have fixed it, it will be in Version 1.2.1.WordPress SVN is down right now, I will upload it as soon as it is up.
Meanwhile, delete the plugin entirely, either by using WordPress Dashboard or FTP, and download the new version(whenever WordPress’ fixes their SVN)
Or you can download it from http://files.priteshgupta.com/plugins/fix-facebook-like.1.2.1.zip
Los estoy Probando, Gracias
Mauricio Huayta
Creador de: http://dominaphotoshopgarantizado.com/blog
Hello,
i have a problem with the plugin, in post page the og:image say empty.
any idee to help me fix that ?
best regards
Hi,
Make sure you have Post Thumbnails for posts, then only you will see something in og:image.
I’ve done this, but still no og:image. Could it be the Plugin I’m using for the Like button? I’ve tried several, but no luck. Can you recommend a Like Button plugin?
Yes, its that. You should try using a simple like plugin, or make sure your current plugin is not handling og:image. After doing these, you can check your settings at http://developers.facebook.com/tools/lint/
Hi, I have a problem with the like button. Using or not using your plugin is the same. It keeps going back to 0. If you push like it counts for 1 second then goes back to 0. Any ideas?
Try disabling all the Like plugins, and removing them. Then use any simple like button, with this plugin.
There must be a script conflict on your blog. Try use iframe on other “facebook script”, and XFBML on the other one…
There must be a script conflict on your blog. Try use iframe on other “facebook script”, and XFBML on the other one…
Anyone know how to use this? I have no programming experience. I downloaded and installed the plugin. Now what?
Go to Settings >> Fix Facebook Like, it does most of the work itself though.
I’m getting a fatal error when trying to activate the plugin. Thoughts?
Fatal error: Cannot redeclare addheadercode() (previously
declared in
/home/necoli/public_html/wp-content/plugins/social-links/sociallinks.php:316)
in /home/necoli/public_html/wp-content/plugins/fix-facebook-like/fix_facebook_like.php on line 216
The social links plugin is causing a problem because of poor programming in it,
May be this is the cause, you should try deactivating it.
First, great plugin that I use for a while! Thank you! :)Unfortunately, with WordPress version 3.2 it is no longer possible to use the post preview, the plugin appears to cause an error, if it sets the meta tags. Is there a way to correct this error?
Hi Draven,
This thing works absolutely fine with 3.2, and what do you mean by post preview?Please elaborate.
That’s right! It works fine with WordPress 3.2, but if you write an article and trying to watch the preview, it cancels the rendering of the preview when generating the meta tags. Unfortunately, no error message, but in the html source code of the preview the last entry is <meta property="og:url"
Haha, this will work only after the article has been published, why do you expect the php to generate the meta tags for preview?
Sounds no sense to me.
I know that the meta tags only take effect only at the published page! And why your script insert the meta tags also in de preview?
The meta tags will be there of course, but actual/real/correct value will only be there once the post is published.
And exactly this is the problem and cancels the rendering of the preview……..
Well, I don’t get you… :-
You can’t expect the meta tags to “render”.Please talk sense. You seriously need to preview meta tags? huh? This is a fairly basic plugin, and outcomes are pretty much obvious.
Sorry for my bad english…
The browser renders the page and it have a problem with the inserted meta tags from your plugin, take a look at your own preview, it cancel the rendering at html source code
A little if ( is_preview() ) { would solve the problem….
Umm, you are the only one having this problem, this seems a problem with your theme’s functions.php. Cause I just checked, it works absolutely fine with even in preview.
Anyways, I have fixed it, look out for v1.2.4.
No more of those Meta Tags in previews.
Hmmm, with my functions.php? Could you explain?
Thank you very much for the new version of your plugin
Perhaps only Google Chrome has the problem?
hei..
i’m using the plugin, but, i don’t know how to use it, properly..haha
I installed the plugin and entered in my settings but it is not showing anywhere on my site; nflbettingpicks.com
This plugin just adds some meta tags, so that next time whenever someone likes your content, his/her fb profile will show correct data. You need to configure a little from the settings menu of this plugin.
It will show in the source code.
Big thanks for your effort bro!
I’m Always getting the following image in Facebook LIKE posts:
http://imageshack.us/photo/my-images/714/safeimagephpdaqbxnlgpyj.jpg
Although my posts have thumbnails and my Facebook page has its own image and also I have setup your plugin for default image but still I’m getting the above image example!
Very strange behavior, I have only 1 post that is showing post image in Facebook LIKE post! Although this post has no thumbnail setup!
Thanks in advance for your help
Try deactivating rest of the Facebook Like plugins.
In WordPress 3.2.1 your plugin causes an empty iframe to render before the body content. It starts with this: iframe id=”a2apage_sm_ifr”
That causes about a 6-7 pixel empty bar across the top of the page, but only on “posts”, not pages.
???
Haha,
Its not my plugin, some other plugin is causing it. Try deactivating
some plugins.
I followed the above instructions when it comes to your plugin, however whenever it is activated and someone tries to click the like button it doesn’t work and says “error” see picture attached.
I tried with a number of different Facebook like plugins and got the same results.
I followed the above instructions when it comes to your plugin, however whenever it is activated and someone tries to click the like button it doesn’t work and says “error” see picture attached.
I tried with a number of different Facebook like plugins and got the same results.
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.
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.
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.
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.
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.
I will add this in a future version using a simple conditional.
Though everything is gonna still work fine I suppose .
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.
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.