[Update 5.9.3]
- Bug Fixes.
- Custom Page Type Added.
- Disable on Custom Posts.
- Custom Post Type Added.
[Update 5.9.2]
- Send Button Support Added!
[Update 5.8 - 5.9]
- 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]
- Disabled in Certain Pages Bug Fixed.
- Show in home Bug Fixed.
- 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
Same problem here: Send Button worked for about a week and now disapeared?
Any Ideas?
Thank you very much
Regards JC
[Reply]
Hey. I just checked the PHP version at my web host and it is PHP Version 5.2.17, but this still does not work for me. I am pasting it into my PHP that is part of my theme just like this:
Layout();
?>
Any thoughts?
[Reply]
Hi Ahmed,
somehow the button always shoes in english – although I chose german in the plugin interface.
Any idea for a solution?
[Reply]
…shows.
[Reply]
Is it necessary to install any other plugins? I can’t see a “Live Preview”, but all config-data is correct.
[Reply]
Dear developer, right after updating this plugin to this version I cannot edit links while posting new articles. Also I cannot move boxes like publish,categories etc. All are freeze. I am using thesis 1.8 developer version. When I deactivate this updated version I can edit my links and move those boxes but those stop woks when I reactivate your plugin.
I am using your plugin for around 1 year. This is the first time I am facing such problem right after updating. I believe there is a bug. Please solve the problem.
[Reply]
Hey Ahmed. I have been using your plug-in for about a month now. However, since last week or so when I or someone else “Likes” a post it does not appear on their wall in facebook. The like function works fine on old posts (2-3 months and older), but not on new once. Strangely enough the count works fine as well. Any ideas? Anyone else with such issues? Thanks.
[Reply]
*edit*
I did install the new version today but it did not change anything for me.
[Reply]
Hey, after installing the new version, many fields in the “New article”-window don’t work anymore. I.E. I can’t upload new pictures or new media. The pop-up-frame just doesn’t appear.
I deactvated. Please have a look, I need your plugin
– thank you!
[Reply]
Reply:
June 20th, 2011 at 8:24 pm
This bug been fixed in 5.9.3.1:)
[Reply]
Downgraded to the last version, the uploading windows are back now.
[Reply]
Like others I can’t upload new pictures or new media. The pop-up-frame just doesn’t appear. Also I can’t add tags anymore.
All the best
Søren
[Reply]
Reply:
June 20th, 2011 at 8:24 pm
This bug been fixed in 5.9.3.1
[Reply]
Was very happy with the plugin (thanks), but it looks like in the latest update, there’s a script clash with any admin pages that include “editor” when loading the jquery scripts:
(eg
Unfortunately I have to disable the plugin until a fix can be sorted. Hopefully you can find one.
Thanks,
Matt.
[Reply]
Reply:
June 20th, 2011 at 8:23 pm
This bug been fixed in 5.9.3.1
[Reply]
Thanks Ahmed – now working fine again.
[Reply]
Hey,
I’m a french user of your plug-in.
I use a like bouton for the homepage URL it’s working perfectly…
But on every single post page, I have the “like” bouton, when users clics on it, the count number grow, but it’s not publish on the facebook wall… It is not working
My website : http://www.fluxtendu.fr/
I try with your plugin and with manual code and it is always the same thing
Any idea ?
thanks
Edern
[Reply]
What php function should I call if want to place the button manually ? Thx
[Reply]
Hello, Ahmed!
I’m other one of your users and I have a blog with this plugin installed. Since last update in some of the posts, for some people the button doesn’t work. You can try if you want. It gets an error, linking to this URL. According to the URL, the ID is not set and other parameters neither, but the ID is perfectly set, since it’s working in other posts and actually for some other people in the same post and it’s very weird. I’ve tried to debug it but I don’t have enough knowdledge about Facebook and its API. Could you help me?
Thanks a lot for your job!
[Reply]
Reply:
June 26th, 2011 at 12:39 am
Hello,
actually Facebook is having a lot of bug lately, and the app id is one if ‘em… so you can fix that by going to the settings area, and click the i don’t have one link, and setup new application, and change the app id…
That would help fixing the problem..
[Reply]
Hello again,
I’ve done it just as you told me but I keep having the same error. Any idea else?
Thanks a lot. Kind regards.
[Reply]
Is there a way to disable the FB counter? Thanks!
[Reply]
Reply:
June 27th, 2011 at 9:29 pm
chose another button style from the settings page..
[Reply]
Thanks for the quick reply! Sorry, the “reply” link doesn’t seem to be working for me. I could just not be seeing it, but all the styles seem to include the counter, i.e., the number of likes. I just want to have the like button alone. Thanks!
[Reply]
I have the latest version 5.9.3.1 The other day the fb like button stopped working correctly. I got a new app id and it worked again. Again today, the fb like button stopped working, got a new app id and it works.
Any ideas how to keep this working without having to get new app id every couple days?
[Reply]
I have the button installed at http://www.rockstartriathlete.com , but when the like button is pushed, it doesn’t seem to work. What is the problem with it?
[Reply]
Hey Ahmed. I tried sending you an email to the “me@” address. I’d love to hire you to write me a custom feature for my site relating to my Like buttons. Please get in touch with me!
[Reply]
Hi there, I see that it needs an Admin ID but I have no idea where to get that from, I’ve tried using my FB username but it doesn’t work. Any help?
[Reply]
Hi Ahmed.
For some reason, there is a lot of white space between the like button and the start of my blog posts.
Any ideas on how to fix this? See it here:
http://turnkeyparlor.com/icecreambusinessblog/
Thanks,
Neil
[Reply]
The page failed to provide a valid list of administrators. It needs to specify the administrators using either a “fb:app_id” meta tag, or using a “fb:admins” meta tag to specify a comma-delimited list of Facebook users.
i have installed this on my website stated in my details…i dont know what this message means as it shows an error next to my like button when i clicked on it to add to my own profile which of course it did add to….can u explain im a newbie
[Reply]
Hi,
There seems to be a minor bug in version 5.9.3 that makes the button not show up.
The error is in buttons.inc.php line 174 where it should say GetElementById and not GetElementsById (notice the S in Elements).
Changing this s makes it work again for me.
[Reply]
Your Plugin always causes an HTML error when you try to validate the page here: http://validator.w3.org
So I manually edit the last lines in fun.inc.php to this:
if($_SERVER['HTTP_USER_AGENT'] == ‘facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)’) {
echo $Meta . $Title . $URL . $Admeta;
}
Maybe you could implement that by yourself to the next versions?
[Reply]
Reply:
July 26th, 2011 at 1:44 pm
Okay, Thanks a lot
[Reply]
This button returns an error:
Your page’s type requires that a meta tag of the form be present.
Weird thing is, the meta tag is present & filled out in my source code.
What’s wrong?
[Reply]
meta property=”og:image
[Reply]
get_the_ID();doesn’t work inside
wp_head();It returns null/blank, hence your plugin never properly detects post’s featured images.
Replace this in fun.inc.php:
$Page_ID = get_the_ID();$Name = get_bloginfo('name');
$parent_title = get_the_title($post->post_parent);
$prem = get_permalink(get_the_ID());
$post_by_id = get_post(get_the_ID(), ARRAY_A);
With this:
global $post;$Page_ID = $post->ID;
$Name = get_bloginfo('name');
$parent_title = get_the_title($post->post_parent);
$prem = get_permalink($Page_ID);
$post_by_id = get_post($Page_ID, ARRAY_A);
This also fixes $parent_title not being set, sinbce calling to $post without declaring it global gets you null again
[Reply]
Hi.
Like button is not display when “Position” is “manually”.
Perhaps, I think that the reason for output character string ‘getElementsById(“fb-root”).appendChild(e);’ is that it is misspelling(correct string: getElementById).
[Reply]
hello, i fixed a bug in the fun.inc.php file. on line 56 i switched things around so i could get the actual description to appear:
htmlentities(trim(substr(strip_tags($post_by_id['post_content']), 0, 140)))
you had substr happening first which would split tags and error out strip_tags so no description would appear at all
[Reply]
Hi,
Incase your having issues with the “zero” likes bug, I have written a post that might be useful:
facebook like button not working or showing 0 likes
Cheers
Woody
[Reply]
The past few weeks I’ve noticed this “Facebook Like” plug in has been pulling preview images that don’t even relate to the post our readers are “liking.” Why does it do that. How can I fix it? I always upload the correct preview image and it still is faulty.
Thanks
[Reply]
hi Ahmed,
any idea why if I check show faces then the thumbnail and user name will only show if I am logged in my facebook account at the same time, with the same browser? that’s the way it has to be or I do something wrong? … :-/ . Thanx!
[Reply]
Hi Ahmed,
i thank you for your good plugin. I think it is the best facebool plugin for wp.
But actually I can’t use it because it doesn’t work. It doesn’t hold the like preference and i don’t why.
I hope you can help me!
Thx
Kya
[Reply]
Hi, i’ve just modified the plugin because of some sharing errors with images posts.
The meta tag og:description shows 140 characters from the non-formatted post, so in case of an image as first element, it shows: “[caption ...]”
I’ve used the function “apply filter”, and moved the striptags before the cut:
on line 61.
Thank you for the wonderful plugin, every time i made a template for a friend it’s just the only thing they ask, the facebook like button
[Reply]
Ops, something goes wrong. Here the code without tags:
meta property=”og:description” content=”‘.substr(@strip_tags(apply_filters(‘the_content’, $post_by_id['post_content'])), 0, 140).’”/
[Reply]
Hi Ahmed, Sorry to bother you! I added the FB like to my wordpress pages but when someone likes the page, a random image from my sponsors logos pops up. How to set the image myself associated with each page?
Again, sorry to bother you. Hope all is well in Cairo.
[Reply]
The plug in slows the site down to a point that I had to disable it.
[Reply]
hi, I can’t seem to get this plugin to work. I have installed and activated it but I can’t see the “Live Preview” either. I have dragged the widget over to my sidebar but all I get is a title saying “Facebook Recommendations” please help, people are asking for the Like button on my site
[Reply]
getting W3C validation errors from this plugin as follows:
Error there is no attribute X
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the “Strict” document type with a document that uses frames (e.g. you must use the “Transitional” document type to get the “target” attribute), or by using vendor proprietary extensions such as “marginheight” (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the element to incorporate flash media in a Web page, see the FAQ item on valid flash.
Line 21, column 17: there is no attribute “property”
I am new to PHP and this is the one error I have on all of our sites. I would like it cleaned up or I will be forced to remove the plugin from all of our sites. I would prefer not to because I like the plugin but at this point I have little to no choice. the error is gone when the plugin is deactivated.
[Reply]
I hope this is a great improvement because I can really use this on my site but the last version precluded the ability to load photos and took my website forever to load (if it ever loaded).
[Reply]
Hey Ahmed. Tell me, is there anyway to set the og:type tag for my homepage only as “website” instead of “article”?
[Reply]
This facbook plugin is not viewing on my website. there is no like button of facebook
[Reply]
Hi,
I’m having a problem with your plugin due to the following lines of code:
require_once(ABSPATH . “wp-content/plugins/facebook-like-button/inc/admin.inc.php”);
require_once(ABSPATH . “wp-content/plugins/facebook-like-button/inc/filters.php”);
require_once(ABSPATH . “wp-content/plugins/facebook-like-button/inc/buttons.inc.php”)
etc…
Please don’t use ABSPATH as some people have a custom content directory outside the wordpress installation, use plugins_url:
require_once(plugins_url(‘inc/filters.php’, __FILE__));
This will make your plugin a lot more portable
[Reply]
Sorry i meant you should use WP_PLUGINS_DIR instead of ABSPATH or dirname(__FILE__)
[Reply]
Ok this one is very bad, in inc/disable_pages.php
update_option(‘disable_like_status_’ . $page_id, true);
This means that for every post, you are creating an entry in the options table!!! You are essentially polluting the wordpress option table.
This should be a meta field in the post:
update_post_meta($page_id, ‘disable_like_status’, true)
this is what the post meta table is for so please use it
[Reply]
Hi!
I have a problem with strange character on Facebook when I hit the Like Button and Share from the blog/page. The site is in swedish and the characters are fine
See below:
ö
Has this something to do with your plugin? Do you have any solutions for the misbehavior?
http://www.tarbysfabrik.se
BR // Petri
[Reply]
Hi,
as Erezie already said on November 5th, it would be far better if you could use dirname(__FILE__) for your includes. We do not have the plugins in the same directory than ABSPATH.
I had to change about 20 to 30 lines of requires because of this.
Thanks!
[Reply]
Reply:
January 8th, 2012 at 11:22 pm
Okay great, it’s on my todo list
[Reply]