——————
Note: Here is the latest version of the Facebook Like Wordpress Plugin for the impatient (and people not interested in the technical details but just looking for a solution working out of the box).
There is also the Official Wordpress page (from which you should rate the plugin and report it works, thanks).
This blog post is about the process of creating the plugin itself, so if you use the plugin directly you don’t have anything else to do than just installing it.
No coding necessary.
Otherwise you would add things manually and then the plugin would do the same again.
Jump to section 7/ Installation of the plugin if you just want to use the final product working out of the box.
Check also section 8/ Customize the plugin for help on configuring it when installed.
——————
Writing a Wordpress plugin is fairly simple provided you know PHP and follow the well documented process at wordpress.org.
If you’re in a hurry and just want a simple functionality, this guide is what you need.
Here’s a shortened version on how to create a Wordpress plugin that will add the new Facebook “Like” button announced yesterday at f8 to your posts and/or pages.
![]()
Simple yet customizable as we’ll still provide a settings page for the plugin.

1/ Optional Preparation
You can write a plugin and release it without submitting it to the official Wordpress directory.
Submitting your plugin to the Wordpress directory means your plugin must be release under GPLv2, so be aware of that before hand if it bothers you.
Some benefits of submitting to the directory are:
- faster distribution (users can find it easily)
- free SVN hosting
- packaging of the different versions
- access to analytics (number of downloads, …)
If you intend to submit your plugin to the directory, it may be a good idea to first look up which names are available as you may want to name your files and functions according to this name.
Check out the Wordpress plugin SVN to see what’s already taken.
2/ Create the plugin folder
bash# cd ~/wordpress/wp-content/plugins/ bash# mkdir like bash# cd like/ bash# touch readme.txt bash# touch tt_like_widget.php
We really need only two files:
- the readme file to describe the plugin,
- the actual code of the plugin in the php file (name it whatever you want).
3/ Write the Readme file
A basic Readme file looks like this:
=== Like === Contributors: bottomlessinc Donate link: http://blog.bottomlessinc.com/ Tags: share, facebook, like, button, social, bookmark, sharing, bookmarking, widget Requires at least: 2.3 Tested up to: 2.9.2 Stable tag: 1.0 The Facebook Like Button Widget adds a 'Like' button to your Wordpress blog posts. == Description == Let your readers quickly share your content on Facebook with a simple click. == Installation == 1. Upload `tt_like_widget.php` to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. (Optional) Customize the plugin in the Settings > Like menu == Frequently Asked Questions == = Is Like free? = Yes == PHP Version == PHP 5+ is preferred; PHP 4 is supported. == Changelog == = 1.0 = Stable version
You can get more information on the readme file with this more elaborated example.
Wordpress also provides a readme validator the way W3C does for XHTML validation.
4/ Write the PHP file
Only one function will be called in the file, the init function:
tt_like_init();
It does three main things:
- register and retrieve the parameters of your plugin if you have any (you will be able to set those in the settings page)
- register your own function to be called when an event happens, here an event called ‘the_content’ called every time the content of the post is rendered. Our plugin here will just append some content at the end of the post content.
- register your own function to be called to render the settings page in your Wordpress admin panel so you can customize your plugin.
function tt_like_init()
{
add_option('tt_like_width', '450');
add_option('tt_like_layout', 'standard');
add_option('tt_like_showfaces', 'true');
$tt_like_settings['width'] = get_option('tt_like_width');
$tt_like_settings['layout'] = get_option('tt_like_layout');
$tt_like_settings['showfaces'] = get_option('tt_like_showfaces') === 'true';
add_filter('the_content', 'tt_like_widget');
add_filter('admin_menu', 'tt_like_admin_menu');
}
The add_option function is provided by the Wordpress API and registers the default values of your options.
The previously saved setting are retrieved using get_option() and stored in our global variable we named ‘tt_like_settings’.
Our function tt_like_widget() will get called every time the content of the post needs to be rendered as we registered it with the add_filter() function.
In a similar manner, tt_like_admin_menu() will get called to render the settings page in the Wordpress admin interface.
The tt_like_widget() function is pretty straight forward: just append whatever you want to append to the $content variable.
function tt_like_widget($content)
{
$showfaces = ($tt_like_settings['showfaces']=='true')?"true":"false";
$url = urlencode(get_permalink()) . "&layout=" . $tt_like_settings['layout']
. "&show_faces=" . $showfaces
. "&width=" . $tt_like_settings['width'];
$button = '<iframe src="http://www.facebook.com/plugins/like.php?href='.$url.'" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:'.$tt_like_settings['width'].'px; height: 50px"></iframe>';
$content .= $button;
return $content;
}
Here we build a Facebook Like button which is just an iframe pointing to a Facebook URL having the URL of the current post as parameter.
It means we need to retrieve the URL of the current post dynamically, this is done using get_permalink()
This is also the place we use our settings to produce a Facebook Like button customized according to the settings on the admin page.
And now for the settings on the admin page. We basically build an html form that will record the user preferences.
function tt_plugin_options()
{
$tt_like_layouts = array('standard', 'button_count');
<div class="wrap">
<h2>Facebook Like Button</h2>
<form method="post" action="options.php">
<?php
if (tt_get_wp_version() < 2.7) {
wp_nonce_field('update-options');
} else {
settings_fields('tt_like');
}
?>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php _e("Width:", 'tt_like_trans_domain' ); ?></th>
<td><input type="text" name="tt_like_width" value="<?php echo get_option('tt_like_width'); ?>" /></td>
</tr>
<tr>
<th scope="row"><?php _e("Layout:", 'tt_like_trans_domain' ); ?></th>
<td>
<select name="tt_like_layout">
<?php
$curmenutype = get_option('tt_like_layout');
foreach ($tt_like_layouts as $type)
{
echo "<option value=\"$type\"". ($type == $curmenutype ? " selected":""). ">$type</option>";
}
?>
</select>
</tr>
<tr>
<th scope="row"><?php _e("Show faces:", 'tt_like_trans_domain' ); ?></th>
<td><input type="checkbox" name="tt_like_showfaces" value="true" <?php echo (get_option('tt_like_showfaces') == 'true' ? 'checked' : ''); ?>/></td>
</tr>
</table>
<?php if (tt_get_wp_version() < 2.7) : ?>
<input type="hidden" name="action" value="update" />
<input type="hidden" name="page_options" value="tt_like_width, tt_like_layout, tt_like_verb, tt_like_colorscheme, tt_like_showfaces"/>
<?php endif; ?>
<p class="submit">
<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
</p>
</form>
</div>
}
Here we have some code for an input box, a dropdown menu and a checkbox as example.
There is some handling for earlier version of Wordpress.
Refer to the options page help for further information.
The _e() function is here for internationalization.
5/ Submit your plugin to the Wordpress directory
Submit your new plugin to the directory by providing a unique name for it.
You will then be able to upload it to the SVN repository.
6/ Check in your code in the SVN repository
After Wordpress approves your plugin (it took 3 days for this one), you can check your code in the provided SVN link.
bash# mkdir ~/my_wp_plugin bash# cd ~/my_wp_plugin bash# svn co http://svn.wp-plugins.org/like A like/trunk A like/branches A like/tags Checked out revision 233010. bash# cp ~/wordpress/wp-content/plugins/like/readme.txt trunk/ bash# cp ~/wordpress/wp-content/plugins/like/tt_like_widget.php trunk/ bash# svn add trunk/* A trunk/readme.txt A trunk/tt_like_widget.php bash# svn ci -m "First stable version" Authentication realm: <http://svn.wp-plugins.org:80> WordPress.org Subversion Username: bottomlessinc Password for 'bottomlessinc': **** Adding trunk/readme.txt Adding trunk/tt_like_widget.php Transmitting file data .. Committed revision 233012. bash#
Now you can tag the revision of the plugin as your first version.
bash# svn cp trunk tags/1.0 A tags/1.0 bash# svn ci -m "Tagging v1.0" Adding tags/1.0 Adding tags/1.0/readme.txt Adding tags/1.0/tt_like_widget.php Committed revision 233013. bash#
Now that your code is checked in with the mandatory readme.txt file and you tagged the version 1.0 of your SVN to match the Stable tag: 1.0 in readme.txt, Wordpress will do all the rest and package it for you.
It will be available to a URL resembling http://wordpress.org/extend/plugins/like making it accessible to all Wordpress user and providing you download statistics and feedbacks from users.
You can also promote your plugin further by submitting it to wp-plugins.
7/ Installation of the plugin
Here is the complete code for the widget:
Facebook Like Wordpress Plugin (Latest Version)
Unzip it in your plugin directory.
bash# cd ~/wordpress/wp-content/plugins/ bash# wget http://blog.bottomlessinc.com/wp-content/uploads/2010/04/like.zip bash# unzip like.zip
Then go to the Wordpress admin dashboard, activate it, and optionally customize it in the settings page.
8/ Customize the plugin
The plugin works out of the box without configuration as it uses the IFRAME version of the button.
Optionally you can use the XFBML version but it requires more setup and a better knowledge of the Facebook platform as you will need to create a Facebook Application and enter its App ID in the settings page of the plugin.
Which one to choose, IFRAME or XFBML?
It really depends on how technical you are.
If you are not, stick with the default settings using the IFRAME version.
If you are technical you can venture in the XFBML version, but even there you will hit snags as Facebook is notorious for producing unstable Javascript and not getting things to work the first time (a daily struggle when you develop Facebook applications).
With XFBML, the user who clicked the Like button can add a comment that will be attached to the post on his profile.

The benefit of using XFBML is purely real estate: provided the user not only clicks the button but adds a comment, the profile post will now include the image you entered in the Settings of the plugin along with an excerpt of the article.
For comparison here is the one liner you will see if using IFRAME or if using XFBML when the user did not add a comment…:
![]()
… and here is the profile post the user will generate when adding a comment with the XFBML version of the button:

Even though Facebook provides a simplified interface to generate a new Application, it doesn’t work right away.
When I first set it up I had this message when clicking the button:
The application ID specified within the “fb:app_id” meta tag is not allowed on this domain. You must setup the Connect Base Domains for your application to include this domain.
Facebook ©2010
When editing the settings of the Application itself, I couldn’t see anything wrong, and hit the “Save Changes” button without modifying anything.
Surprisingly it raised this error, refusing to save the (non existing) changes:
Validation failed.
Connect URL must point to a directory (i.e., end with a “/”) or a dynamic page (i.e., have a “?” somewhere).
In this case just edit the Application, go to the “Connect” tab and in the first field called “Connect URL”, make sure your website ends with a forward slash.
For instance I had to manually change my Facebook Connect URL from “http://bottomlessinc.com” to “http://bottomlessinc.com/” to make things work.
And even after that, when using the XFBML version the button doesn’t show up in around 20% of the page refresh.
That’s why sticking with the default IFRAME version is more reliable.
There is also a chance that adding a slash to your Connect URL will solve the problem of the Like button blinking (showing up as pressed then right away as unpressed).
During this blinking of the button you can see the message “You like http://example.com” which disappears also right away.
If you use the XFBML version of the plugin, you must provide the numerical Facebook ID of the Facebook user you will use to manage the pages.
Otherwise people clicking on the Like button will receive this error:
You failed to provide a valid list of administators. You need to supply the administors using either a “fb:app_id” meta tag, or using a “fb:admins” meta tag to specify a comma-delimited list of Facebook users.
Did you find this post useful? Like it on Facebook :-) and Spare a few cents:
Thank you for creating a great plugin so soon!
I want you to add some functions to annotate page context like following.
http://developers.facebook.com/docs/reference/plugins/like
og:title – The title of your page; if not specified, the title element will be used.
og:site_name – The name of your web site, e.g., “CNN” or “IMDb”.
og:image – The URL of the best picture for this page. The image must be at least 50px by 50px and have a maximum aspect ratio of 3:1.
Thanks for the plugin – how about an option on where to insert the like button. I was looking at having it come on the top of the post as well as the end.
Great plug in. Thanks. However, I’d like to move the position and can’t seem to find the code on the post templates.
@Bruce Colwin: I believe, and I could be wrong, to move the position you would need to update the line
add_filter(‘the_content’, ‘tt_like_widget’);
That appends the widget to the post. If you wanted to move the widget to say after the title something like:
add_filter(‘the_title’, ‘tt_like_widget’);
Should work (have not tested it). Going off of information found on this page: http://codex.wordpress.org/Template_Tags/the_title
Just released the 1.1 version that allows you to add the button to the top and/or to the bottom of the post.
Download link at the bottom of the post.
Hey, thanks for creating this…wasnt liking manually adding it to posts! :-D
I have one issue is that the button count doesnt seem to work for me, only works in standard even if settings are on button_count, not sure if thats an error, bug or something. :(
Wordpress approved the Facebook Like plugin.
It’s now available directly from the Wordpress Plugin Directory
@PIF – i like your plugin for ”Like”, but i need to now if I can move this button in the top of post, but in RIGHT place?
Please, replay at my e-mail..
Thanks!
@Cinema Awards: not yet, but it will soon :-)
the version 1.3 is work in the right place of the post. nice!
Starting from version 1.3 you can now move the button to the right.
You can also set easily the margins in that revision.
Latest revision available both at the usual download link or in the Wordpress directory.
One of the blogs I maintain is powered by FeedWordPress. I tried three different “like” button plugins and all three seemed to apply the like button to random posts. Frustration until I determined these plugins do not work with FWP’s “syndication_feed_id” on a post. Delete this ID from the post and the Like button would show up on the post. If your plugin co-exists with FWP, that may be selling point… please lemme know.
You can now administer your Facebook “ghost” pages:
http://blog.bottomlessinc.com/2010/04/administer-your-ghost-pages-shared-by-the-new-facebook-like-button/
It allows you to send messages to all the users who liked your page.
Thanks for the ‘like’ plugin. I have it installed and working, but attempting to auto update to the most recent version gives this error:
Warning: require_once(/home/ianpauls/public_html/wp-admin/includes/class-pclzip.php) [function.require-once]: failed to open stream: No such file or directory in /home/ianpauls/public_html/wp-admin/includes/file.php on line 505
Any ideas? I can handle ‘admin’ type auto changes but I’m not a coder :-)
Thanks!
Ian
Hi,
Thanks for the post, it was really helpful.
however, I’ve got a problem which I can’t figure out and been frustrating me for the last 48 hours.
I’ve tried to use your plugin, and even using only the version by facebook on my single.php, and everytime I get this error message: ‘The page at … could not be reached’.
image: http://img686.imageshack.us/img686/6125/facebookerror.jpg
the url is corrent, ID)); ?> seems to be working – but still, I’m getting these error messages on every “Like” click.
I didn’t find anything about it on FB:Wiki pages or other plugin’s blogs, so I hope you will be the one who will find the answer ;)
Thanks in advance,
Asaf.
@mike I’ll check that
@Ian It doesn’t seem related to the plugin itself. But you can still manually install it:
- download the latest version at here
- unzip it
- copy tt_like_widget.php in wordpress/wp-content/plugins/like/
@Asaf
It looks like you’re not using our plugin (which is the iframe version, more robust) but instead you use Tim’s plugin who uses the XFBML version.
Go bug him for bugs :-)
Version 1.4 of the plugin now allows you to administer your Facebook page mirrors.
It gives you access to:
- the list of fans
- statistics
- possibility to update all your fans
Get it directly from here.
Read the instructions about this new functionality.
Great plugin! Only issue – the thumbnail feature doesn’t work… at least not for me. Can you help?
@Stephanie
The thumbnail will show up in the Info tab of the profile of users who liked the page.
It will not show up in the user’s stream nor on his profile wall where it will display something like:
“user” likes “url” on “blog name”
Hi. Thanks a lot for this fantastic plugin, it’s great, and so easy to use. I wonder if you can help me, though? I don’t think it’s directly to do with your plugin at all, as other people who don’t use the plugin are experiencing the same problem, but my facebook ‘like’ count seems to be stuck at 1, meaning all I ever see is “one person likes this” – even though I know for 100% certainty that more than 1 person has liked a particular piece of content. This person is having the same probel mon his page too – http://ritwikroy.com/blog/175/adding-a-facebook-like-button-to-my-wordpress-blog/ – see the “one person likes this” in the top left of that page.
Obviously I know it won’t show my friends’ likes when I’m not logged in to Facebook, but my worry is that the ‘count’ is just not being registered/updated by facebook, as I know for sure that more than one person has liked my content. Do you have any ideas on why it just keeps showing “one person likes this”?
Thanks for your help in advance, and thanks again for this fantastic plugin.
Hi!
Thank you for the plugin, however i have a similar problem that Asaf has. I get an error-message every time i klick the “like”-link.
Images:
http://mmanytt.se/facebook1.gif
http://mmanytt.se/facebook2.gif
I’ve putten in the ID 77960691432 for the page too, but it won’t work. I’ve checked that i am using your plugin and not Tim’s plugin, and the version is 1.5. Got any idea as to why?
Thanks in advance,
Martin
Version 1.5 allows you to:
- display on which type of page you want the button to show (home/posts/pages)
- internationalize the Settings interface (English and French for now)
@Alan
Facebook seem to have a long update delay when the first users are liking your post, it should update after a while.
@Martin
Facebook is trying to reach your page as http://content which is not the correct url of your page.
Are you testing this on a private website not accessible from the Internet and Facebook?
Ah, cool, thanks for the reply, much appreciated!
Thanks for your reply, it was my code fault. ;)
Version 1.6 now includes support for XFBML.
This is for advanced users as it requires some work outside of the plugin (creating a Facebook Application).
By default the plugin is still using the IFRAME version.
It allows for people who click the button to add a comment as well to the stream post on their wall.
You will need to create a Facebook Application, get its Application ID (as for the Facebook user ID it’s a bunch of numbers) and update the plugin settings with it.
@Stephanie Vega
Now the thumbnail will also appear in the stream post when a user adds a comment
@PlF
Thanks for your reply. No i’ve tested it on the live thing – http://www.mmanytt.se, and the funny thing is that it worked at first, then i think it got botched when i added the admin ID. I’ve inactivated the plugin now because its still a live webpage.
Awesome work on this plugin, thanks!
One thing I noticed — and this might be expected behaviour and/or beyond your control — is that since installing the plugin when I go to Facebook and attach a link from my site to my status I no longer get a choice of thumbnails from the blog entry like I used to but just the graphic specified in the plugin.
Any idea if that is fixable?
@Glark
Thanks for the feedbacks.
Don’t forget to Like this page and also rate the plugin :-)
That’s part of the functionality Facebook provides so people clicking on the link in your status update will be accounted for in the statistics for your page.
As a workaround if you want to get your choice of picture back, just keep the “Image URL” in the Settings to blank.
Thanks for the plugin. It works well. But for some reason the admin link doesn’t appear.
I have set it up for correct user ID. But the admin link doesnt show up at all. (I use iframe. You can check the source code at http://brijux.com)
Any suggestions?
Excellent job with the plugin – of several I tried, this is the only one that worked correctly the first try. I have one question – For some reason, I have one specific post that the like button is not working on. When the plaugin is active, the entire body of that post disappears. I haven’t gone through all of my posts, but this is the only one I’ve spotted on first glance. Any idea what would be causing that? If I deactivate the plugin, the post content shows up fine.
Here is the post in question: http://adamhcohen.com/why-companies-should-leverage-the-community-roundtable
Thanks in advance –
Adam
@Brijesh:
Did you like your own post?
The Admin link will not show up until you click the button yourself.
@Adam
Try the latest version 1.7 (just released) it should be fixed.
Thanks Pierre – Unfortunately the 1.7 version did not make a change. I also tried switching themes and had the same problem. Thanks for the prompt response and please let me know if there is any more data/detail I can provide.
AWESOME, so happy to see this!
Leigh Maro
I installed and get the following error when trying to activate:
Parse error: syntax error, unexpected ‘]’ in //wp-content/plugins/like/tt_like_widget.php on line 257
I am running wp 2.7.
Version 1.7.1 is released with new languages (Russian, Italian, Arabic, Spanish, Portuguese,
German)
Thanks to 5gorets @ http://www.5gorsk.su/ for the Russian translation.
Note: for a brief period of time a broken version of 1.7 was out, it was fixed quickly and a new maintenance release (1.7.1) was generated to avoid confusion.
See explanation to Nicholas just below for more info.
@Nicholas
This was due to a typo in the code (my mistake) and was fixed quickly.
Download it again from Wordpress or from this blog
I apologize for that mistake, my bad.
It was corrected in version 1.7 but I also released version 1.7.1 to avoid confusion.
Thanks for the fix. I put in our Corporate fan page ID, but got the error:
The application ID specified within the “fb:app_id” meta tag is not allowed on this domain. You must setup the Connect Base Domains for your application to include this domain.
I need to dig into your latest post to understand management of the individual object likes, but perhaps you can comment here.
I have my personal Facebook Account. I am an administrator of my Corporate Fan Page which was created by our generic (unused) Corporate Facebook Account (“dummy” account used to create the Corporate Fan Page). I want to manage Likes on my Corporate Blog from within my Corporate Fan page which is why I put my Fan Page ID in your Plugin as the “Facebook ID:”.
Obviously I need to put in either my personal ID or the dummy corporate FAcebook ID. Which would you chose and why?
@PlF
Yes, I liked my own post but its still not showing up. I tried both, iframe and XFBML version but no luck. Its not showing up at all.
Another strange thing I noticed. I have more thn 900 likes on one post. I dont know if that much people actually liked it. I saw the number of like around 850 just after I installed like button. How is it possible that people liked that post even before I installed this button. (http://brijux.com/2009/10/24/bobby-mcferrin-messes-with-your-mind/)
Do I need to do anything else other than inserting my user ID? I really want to admin my posts.
Pierre – I just wanted to publicly thank you for taking the time to help. It turns out this plugin is not compatible with another plugin called wp-typogrify… The latter is no longer actively maintained by the developer and was causing post content (body) to be missing for several of my posts. The issue is now resolved, but can’t thank you enough for making time to debug with me today.
@Nicholas
I think you’re almost there, just probably missing the slash at the end of your domain name in the “Connect URL” settings of the Facebook application.
I updated the blog post above in section 8/ to explain this problem you see.
@Brijesh
In the Facebook ID settings your entered “brijux, 25317511″.
This field needs the numerical Facebook IDs only, try using only 25317511 instead and magic should happen :-)
@Adam
Thank you for you precious feedbacks
So after reading your post today on managing the likes, I put the Corporate dummy page as the first Facebook ID and then my own followed by other managers. This appears to work. The only confusion is that messages sent to the followers of the object are only posted to some of their live feeds. Any ideas why?
@Nicholas
I’m glad you got it to work!
Some users are not seeing it either because of a delay in posting due to Facebook doing some caching, or maybe the privacy settings, or maybe a Facebook bug.
What is sure is that it’s out of the plugin’s scope as it happens on the Facebook side.
As all these are new features, Facebook is still struggling to get things right.
For instance on the pages I admin, the Insights reported by Facebook that are supposed to give you statistics about the users who liked your page are not updated.
They warn of a 48 hour delay for new fans to show up, but my Insights pages are stuck at April 25th!
Hello there, thanks for the great plugin! I do NOT have XFBML checked, but I am getting this error on-click: “You failed to provide a valid list of administators. You need to supply the administors using either a “fb:app_id” meta tag, or using a “fb:admins” meta tag to specify a comma-delimited list of Facebook users.” Thoughts?
Also, I have a “Promote” section with other social media links below my posts… what is the correct section of code I need to move to get the button in its proper place?
Many thanks, once again.
@PIF
I tried with only 25317511 but still no admin link. I am worried now :(
Thanks for the plugin, I love it! But I’m getting an error:
“You failed to provide a valid list of administators. You need to supply the administors using either a “fb:app_id” meta tag, or using a “fb:admins” meta tag to specify a comma-delimited list of Facebook users.”
And I already edited it with my user ID
@Andrea
Use your numeric Facebook ID, not the alphanumeric one.
Check the end of paragraph 8 of this blog post for more explanation.
Hey! Is it possible to add the button somewhere in the template with a custom function?
Thx for the plugin!
i have installed everything but the like button isnt showing anywhere. i have all locations checked
any help would be great
@Paul
Thanks for the suggestion, I’ll look into that but so far it exists as a plugin only so it doesn’t touch the core.
@THaF
I just went on your website and can see the button everywhere using FF, IE, Chrome, Opera and Safari.
It seems you got it to work?
Please share your trouble getting it to work and I’ll see if I can improve it in the next releases.
Thank you! It’s working now ^_^
Is there anyway to send everybody to the same page when they click the like button? The problem is everytime I click “Like” on a post, Facebook creates a new fan page for that particular post. I would like all the “likes” to go to the same Fan Page that I already have.
hi.
at: shootforyourlife.com we’re not using xfbml
we still get this error:
The application ID specified within the “fb:app_id” meta tag is not allowed on this domain. You must setup the Connect Base Domains for your application to include this domain.
@Andrea
Only you (as admin) can see those “Ghost” pages, all the other Facebook users are directly redirected to your own blog page.
Refer to this article for more info.
@alex
The error that Facebook returned to you is totally misleading as your problem is not with fb:app_id but with fb:admins.
Your problem is that in the Facebook ID field of the plugin Settings you entered the ID of a page that does not belong to you (185550966885).
You need to replace it with your own numerical Facebook ID.
Refer to the FAQ on how to do that.
Version 1.8 is released with new languages (Hindi and Thai)
It also supports asynchronous loading of the javascript if you use the XFBML version.
This should improve your page load time.
Enjoy and thank you all for you support and feedbacks.
Hi there, the plugin works on some posts, however on others I get an error that says the page cannot be reached, here’s an example:
http://www.nxtgamer.com/iphone/iron-man-2-review/
The odd thing is it works perfectly on other posts such as this;
http://www.nxtgamer.com/xbox360/halo-reach-beta-live/
After looking into it, it seems to be anything with “Review” in the post name – really bizarre… hopefully you can shed some light!
@Mike
The first page you mention is using the IFRAME version, while the second page is using the XFBML version.
I think your only problem is a caching problem as you use WP-Super-Cache.
Clear the cache and refresh both pages see if both work.
Just cleared the cache and it’s still returning an error, as I said before, weirdly it’s only happening on posts with “Review” in the title!
like the features of the updated plugin. however, when I moved it to the top, the text of the post no longer wrapped around the image in the summary.
To All:
The whole Facebook Platform is having trouble today as posted by a Facebook Admin on their forum.
Hopefully everything goes back to normal soon.
@Bruce
Do you have more details on your problems? I checked your website and the button looks fine.
You can shoot me an email also and I can debug offline, and post the results here for others who run into the same problems.
@PlF
I found the root cause of my problem. (Why I am not seeing the admin link)
When I initially installed this plugin, I provided my “username” into the facebook ID field. But than I changed it after couple of hours to the facebook numerical ID. But I think now it doesn’t take any effect, it is somehow chained to the “username”
Do you have any suggestions on how to see the admin link with my correct numerical facebook ID now?
Version 1.9 is out with full support for the Open Graph protocol.
We’re the first plugin to have that. Don’t settle for less ;-)
Even the guys at Open Graph don’t support all the options they standardized.
Hey there! If I understand well, having article as content type doesn’t create “ghost pages” anymore? That’s great news :-)
Thx
Would it be possible to add a function where the user could chose an image for the article? Or simply use the post thumbnail as image with the article? That should be easy to integrate!
@ PIF
I have changed it to iframe as i couldnt get the xfbml to work. Is it supposed to create a new facebook page every time. Can see that being a bit of a nightmare after a while
I’ve filled all the information on the settings but when I click on “I like it” it disappears few seconds later. Can anybody help? Example: http://blog.pisos.com/
Just read about the ghost pages so no worries with that.
Any idea why the like buttons dont show when i use xfbml
cheers
THaF
THaF: xfbml doesn’t work for me, too
@THaF and @Jordi
Could you please try disabling the “Asynchronous” setting of XFBML and let me know if it solves the problem?
Thanks
nope, the like doesnt show at all
Same here!
Thanks for the great plugin! I tried adding Facebook’s like button to my site myself yesterday and ended up creating more problems than I solved. This made it a ton easier.
One thing I’d like to request is a way to choose the first image from the post as the image when someone likes a post instead of having a single default image. I had it working for a while yesterday using these instructions. Even better would be if you could detect that the image is within Facebook’s magic 3:1 ratio and if not, fall back to the default image from the settings.
Also, I don’t use excerpts for my posts so I’d prefer that the og:description property be left out completely so that Facebook can create its own excerpt. I’ve gone through and commented out the relevant section of code for now, but I’d love to see this as an option.
Hi
I was using your plugin all this time with out and issue, and was upgrading to the new versions each time. I upgraded to the new version a few minutes ago, and now i have the excerpt of the post appearing right on top of the head, of all pages, and posts excepting the home page. Now i have deactivated the plugin…. and wondering what to do ;)
Well I just tolled back to 1.8, and all is fine. I think the database did not get erased so all my settings were there, as well the XFBML + async options show up on the screen.. as i recall 1.8 did not have async…. maybe i am wrong….
Will wait till this issue is fixed and upgrade
I released v1.9.1 for maintenance, fixing a typo and encoding the meta tags.
@Chris
Thank you very much for your feedbacks.
@sanjeevan
Thank you for your precious feedback.
I think the meta tags are what caused your problem and 1.9.1 should fix it. If not let me know and we’ll debug that offline if you don’t mind.
I’m having the same problem as Jordi Bufí – select Like – then 1/2 second later goes make to unselected state, and does not show up in my profile. I am guessing I am doing something wrong. Any thoughts are appreciated.
@Jordi and @Rich
This seems to be a Facebook bug so far.
Keeping crunching to see if I can find a workaround.
@PIF – if I try another (less robust) WP Like Plugin it seems to work. I like yours because of all the open graph meta and the potential to do XFBML and being able to define the Admin via the prefs.
@Rich
Thank you for your support.
Ouch, scary if the problem is on my part, coffee time, no nap, I’m on it and keep you guys updated.
I’ve seen this problem on websites using another plugin.
Does it happen to you using iframe, xfbml or both?
@PIF
seems to happen with both…
I am working on my test blog – http://swat.fallonhotdish.com
@PIF – you rock – thanks for all your help and support – I think it is working now.
To All:
Version 1.9.2 (available now) should solve all your XFBML problems.
I sincerely apologize for the inconvenience.
XFBML seems pretty stable now (I’m even considering using it for this blog in lieu of the already reliable iframe version)
@Rich
Thank you very much for taking the time to debug with me and solve the problem.
Here is the description of his problem:
When clicking on his button it turned into the Like state for a brief instant and then returned to the non clicked state.
During this blinking of the button you could see the message “You like http://example.com” which disappeared also right away.
It turns out it’s the very same problem mentioned in the blog post above: he was missing a slash at the end of his Connect URL in his Facebook application.
Except this time the error was different.
Very confusing, two different errors for the same root cause.
@Jordi
Would that solve your problem?
Installed the Like plug-in in WP 2.9.2 and only get the FB icon showing, displays a “1″ when clicked and that’s all — no admin link. Tried adding the code to the WP header.php file from your blog (Modify your Wordpress header), complete with my correct FB ID number and still no response.
I’ve read through all the comments so far and have found nothing that lends me a clue that works.
thanks,
john
@john
Looking at your website the fb:admins is empty.
The meta tag is currently reading this:
<meta property=”fb:admins” content=”" />
while it should be reading something like this:
<meta property=”fb:admins” content=”68310606562″ />
Set the “Numeric Facebook ID:” field in the Setting of the plugin to your own numerical Facebook User ID (chances are it’s not 68310606562).
Hi PIF,
thanks a lot for the plugin. Although i’m using the latest version, i have the same issue as Rich and Jordi: it displays “1″ for a sec then goes back to the non clicked state. This, with the iframe mode (XFBML mode does not work for me).
Thank you for your time,
A.
@PIF,
Thanks for the prompt help here. I finally found the Settings for Like on the WP admin page and filled in my FB ID number. Still, nothing happens when I click the Like button except it showing “1″. I must be missing something since nothing has shown up on FB related to my clicking the Like button on my site, not on my or my friends FB pages. Does this take time to happen, like hours or days perhaps?
Thanks,
john
@john
In your case put ‘YOUR FACEBOOK APPLICATION ID’ as I quoted it (without the simple quotes, and do not actually replace it with any application ID) in the field that reads ‘Facebook App ID:’ in the Settings).
Thanks a lot for the feedback it’s a good catch (I need to not print the meta tag fb:app_id at all if it’s an empty string.
Facebook doesn’t like it. They forgot the good old adage of Robustness principle used in building the network protocols that made the Internet:
“Be conservative in what you do; be liberal in what you accept from others.”
The error returned by Facebook is:
An invalid application ID was specified.
The application ID specified within the “fb:app_id” meta tag was invalid.
It will be corrected in the next release (coming soon as usual ;-) so you will not have to do this workaround anymore in case you deleted the default string.
@Alexandre Plennevaux
You specified a Facebook App ID but this Application is not setup correctly.
You need to add a trailing slash (/) at the end of your domain in the settings of this Facebook application.
See section 8/ of the blog post above about that.
For instance on my app it reads http://bottomlessinc.com/ and NOT http://bottomlessinc.com
Again you could bitch about the lack of adherence of Facebook to the robustness principle mentioned above :-)
Version 1.9.3 is out with:
- Show/Hide on search/archive
- Fonts
- Do not display empty og meta tags
- Encode only double quotes in meta tags (hopefully titles look better)
@john
You shouldn’t need the workaround anymore with that version, the ‘Facebook App ID:’ can now remain empty.
@PIF,
You rock, it now works great. Thanks again.
john
Hi,
Thanks for this great plugin.
My issue seems to be that the admin page link doesn’t appear to be working even though I have set the Facebook ID (to both my facebook ID and Jennie’s ID – separated by a comma). We both have liked the page, but the admin link still does not appear (note still logged into Facebook when I check the blog).
Any suggestions?
Cheers,
Reece.
@Reece,
I actually have the same problem today, Facebook seem to have been changing lots of things.
For instance now when you like something there’s a transient sentence reading “You like this” before settling on the final sentence “Mark Zuckerberg and 15 others like this”.
Do other people have the Admin link not showing up when it was showing before?
Great plugin… but I found one problem: If my blog post has an “&” symbol in the title and I click the like button, the “&” symbol’s HTML code also gets posted to my FB feed… in other words, if the post was called “John & Judy”, my news feed item would show as:
Brendan Lafferty likes John & Judy on the B-Sharp Entertainment Blog
Something else: “B-Sharp Entertainment Blog” in the same news feed item is pointing to my main site, http://www.southcoastdj.com, and not my blog, http://www.southcoastdj.com/blog. Is this controlled by this plugin, and is it changeable?
@Brendan
Thanks for your feedbacks.
I tried lots of ways to pass the string to FB and it still shows the same so far, with this ugly html encoding.
However it should not affect your feeds at all.
Thanks PIF… any word on the second part (if the blog is part of a subdirectory and not the main site)?
@Brendan
Oops by news feed you’re talking about Facebook’s news feed of course, I had RSS feed in my mind, sorry.
It’s a redirection problem not related to the plugin, check the Wordpress Settings for Worpress address and Blog address and toy with it.
Or maybe some mod_rewrite trick in a .htaccess that lure Facebook into thinking your address doesn’t end with /blog/ when they ping your blog.
I use a subdomain of my main domain instead, much easier to setup.
PlF,
Just a thought…
I know you can’t remove the original Facebook ID once someone has liked a page.
So would having a blank Facebook ID when a page is first liked have any similar effect on the Admin page link? I.e this page has no admins since the Facebook ID was blank at the time when the first person clicked on the Like button.
Reece.
@Reece,
If the Facebook ID field is empty, the meta tag doesn’t get added so I doubt it’s the cause.
Plus I have this problem on an installation that worked well before.
Downloaded the new app, seems to be fine now. Anyway i have not been abel to get XFMBL working, even if i tick both, the like button does not show up. By chance does your app include anything in the footer ? i happened to erase some fb stuff on the footer… was this the cause ?
let me know.
And for those who are trying to see the Admin link…. remember you need to use your personal account ID, and not the page ID…. hope i am giving correct instructions to all…. ;)
I still cant get xfbml to work. Can anyone run through what needs to be filled in on the facebook application in case i have missed something on there
Cheers
PIF: I found that changing the “&” sign to a “+” sign in post titles alleviates the problem I had earlier with “&″ showing in the FB news feeds.
Also, for those who can’t see the Admin Page link after they like their posts, make sure that the layout setting you’ve chosen is “standard” and not “button_count”. From what I’ve found, the Admin link won’t display if you’ve selected “button_count”. This should be fixable.
@Brendan
Great catch for the “Admin Page” link missing!
I filled a bug for Facebook to fix.
The good new (for me) is that it’s Facebook’s fault.
The bad news is that it’s Facebook’s fault (the bugs gets corrected on blue moons when Jupiter, Saturn and Pluto align). It should probably get fixed soon though as Facebook is giving all its attention to their new Social plugins these days.
For the characters, I still have some more options to try finding a workaround, but Facebook should display the characters properly in the first place, whether they are html coded or not (again, robustness principle…).
@PlF No problem.
BTW… I checked my Wordpress settings and blog URL appears correctly there (www.southcoastdj.com/blog). So, there’s definitely a problem (hopefully on Facebook’s end) where it’s ignoring everything after “.com” when posting the blog URL in the news feed. Hopefuly someone else can verify this on their own, as people who click on my blog name in a news feed are getting directed to my main site, not my blog.
Hey there,
First of all thanks for a great “Like” plugin! I’ve installed it but it looks that somehow it doesn’t work at my wife’s blog. Check out here:
http://www.hatalska.com/2010/05/06/polish-thursday-smoking-fast-driving-same-thing/
Below the post you can see the like button, when you press it (and you’re logged into FB) it changes to “You like this” then displays my name and my photo, then resets itself to the previous state (“Be the first of your friends to like this.”).
What’s wrong?
@Brendan
Basic test: try adding a slash (/) at the end of the url
@huckster
Try setting the type (very bottom of the Settings page of the plugin) to ‘article’ instead of ‘blog’ and let me know if it solves the problem.
Hi PIF,
i added a slash to the connect url, and upgraded your plugin to 1.9.3 but still, same issue: the click is not kept test url: http://www.infographie-sup.be/magazine/web-design/2010/the-johnny-cash-project.html. Can you explain how to debug so i can find the error message without bugging you?
Thanks,
A.
@PlF
Changed the settings to ‘article’ – didn’t help. Changed “show on:” to “Page” only – and it didn’t help either. ;(
Also tried experimenting with switching on and off the “Show on” checkboxes – not working. Maybe it has something to do with the WP Cache plugin?
@huckster
You definitely need to flush the cache (‘Delete Cache’ in the settings of WP Super Cache Manager) every time you make a change.
flushed the cache several times, made changes, flushed again – still doesn’t work. (you can check it out yourself)
Your documentation appears to be wrong saying that the value for “fb:admins” must be numerical. According to Facebook developer documentation, it says it can either be the numerical or the profile friendly name.
@Alexandre Plennevaux
I just tested the url you mention and everything works fine, count incremented, story posted to my wall, no bug at all
Great plugin in theory, but having some issue with it, name it doesn’t work :)
I removed all my manual code in header.php hoping this plugin would work for me, but it’s not. The like button renders, but after clicking it, a 1/2-1 second later, it reverts to an unclicked state as if I never pressed the like button. I checked Facebook and it’s not posted to my profile.
I previously had the Like button working when I manually added all the code, so it appears to be something specific with your plugin. I’ve tried all of these combinations with no luck:
1. XFBML
2. XFBML with asyn
3. IFRAME
all 3 have the same result. I’ve triple checked my appID and admin ID as well to ensure they were correct.
I have the same feedback as a few others — add an option to omit the description automatically being set to the value of get_the_excerpt(). I don’t have this value set and with the “Yet Another Related Posts” plugin, the value of get_the_excerpt() gets set to the output of that plugin which isn’t useful. I would like there to be an option to disable the explicit setting of og:description. For now I’ve commented it out.
@huckster
I had the same problem. Found the fix was to disable/unselect the “Load XFBML Asynchronously” option.
@Brendan and PlF
I have my layout set to “standare” yet no admin link :(
@TC
Thanks for taking the time to report those great feedbacks.
Could you please provide a link to the doc you mention?
Facebook is actively working on the plugins so they may be supporting it now.
Lots of Facebook users not using the plugin are reporting the same problem on the Facebook forum.
However you seem experienced enough to not fall in the common pitfalls, would love to debug with you if you have some time.
Shoot me an email to dev [at] [the domain you're reading this blog from].
Could you please provide a link to your site for debugging?
Great suggestion for the description, adding it to the next release.
Many thanks for helping improving the plugin.
I am loving this plugin as I think it will be a great tool for my visitor target. I only have a single problem. I click the like button and the only thing displays is the number “1″ after the icon. Everything seems to be fine on my facebook profile and I can get to the admin page via my profile. I can see who becomes a fan of a page via facebook, but all I get is a number on my actual site. I’m at a loss on one to do to get people’s names to show up when they like it. Here is an example: http://www.altnoise.net/back-to-blogging-with-a-new-big-head/ .
Great plugin btw, and you did a really good job. I don’t know if its possible but maybe a future consideration would be to add a statistics tab inside wordpress to see who clicked a like on any page of your website. This way you can check all the info on your own wordpress site.
@PIF: Just sent you email, would love to help debug.
Regarding docs for the fb:admin property being able to be non-numeric, I can’t find the page I read it on, but trust me, I had it working when I did my manual implementation. So I think you need to remove your is_numeric check from your code.
@Stephen Miracle
I went to your website and everything seems to work fine, do you confirm?
I could like your posts, no problem.
@TC
The is_numeric check is on the app_id only, and it still takes into account the fact that both fb:admins and fb:app_id must be able to support a comma separated list of ids.
i’m loving this plugin. it does everything i need it to, except it won’t give me my admin panel. no matter what i do it won’t work. i’ve used my numerical facebook id, setup the application correctly, toggled between the ‘Load XFBML Asynchronously’ option, and ensured that xfbml was enabled.
also, i’ve disabled all my plugins. got any ideas?
@john
Thanks for using the plugin and for your feedback.
Which layout are you using? Lots of users are reporting the admin link not working if you use the “button_count” layout.
Try the “standard” one and let us know if it solves the problem.
We filed a bug for Facebook to fix this.
PIF,
I installed the plugin, using XFBML (not loading asynch), and the counts are not correct. Immediately after installing the like count for any post I click on jumps to a number greater than 1. There’s no way 11 people clicked like on something right after I installed it (I don’t get that much traffic).
Any ideas how to fix? Thanks!
PIF,
Disregard my last question. I found the problem. I had the wrong ID entered in the Numeric Facbook ID field (page instead of personal).
Thanks!
i figured it out. of course it was user error. seems if you check to show on posts, pages, and home page, things get really screwy.
my biggest problem more than anything is the thousands of “pages” i’m going to have. i know you wrote a post on how to administer them, but i don’t see this working out in the long term…
by the way, you have the best facebook like button plugin available. trust me, i’ve tried them all :)
PIF, yeh I figured it out and felt kinda dumb for my reply afterwards :)
When I first turned it on I was in standard mode but did not insert my profile id when I liked an article. I then switched to count mode and then entered the id. After awhile, it finally dawned on me to return to standard mode and then I reliked a post and it all turned out fine. So thanks anyway.
Try as I might, I can’t seem to get the XFMBL version, that allows you to do this to work: http://blog.bottomlessinc.com/wp-content/uploads/2010/04/facebook_wallpost_xfbml.jpg
I setup a Facebook application and added my app ID to the settings page. What is the correct way to configure the settings within the Facebook app?
I should add that I did correctly add my site URL, complete with ending “/”, in the Connect URL field.
can’t figure out how to get the button to only be at the bottom of the post. help! thanks!
never mind. figured it out.
[quote]Hi!
Thank you for the plugin, however i have a similar problem that Asaf has. I get an error-message every time i klick the “like”-link.
Images:
http://mmanytt.se/facebook1.gif
http://mmanytt.se/facebook2.gif
I’ve putten in the ID 77960691432 for the page too, but it won’t work. I’ve checked that i am using your plugin and not Tim’s plugin, and the version is 1.5. Got any idea as to why?
Thanks in advance,
Martin [/quote]
same problem here, but I’m not running it on a private. first it worked, but in facebook it said “Herr Lehmann likes content” and after setup my fb-id i get this “Die Seite unter http://content kann nicht aufgerufen werden.” Problem. Is there any solution?
This is an awesome plugin. however, be careful using Punctuation (such as quotation marks ect) in your titles as it doesnt show that well on facebook.
for example a title called “let’s all party”
will become “let&# 8217;s all party” on facebook.
Hi guys,
Another issue I seem to be having with this plugin is that it appears to cause the “ShareThis” feature to become hidden for some reason. For example on the “http://www.jenniearmato.com/blog/” blog homepage both the Like and ShareThis features are shown, but clicking on a specific post (eg http://www.jenniearmato.com/blog/general/jennie-armato-economy-entrepreneur/) Only the Like button is displayed. If I disable the Like plugin and reload the post page, ShareThis reappears.
Anyone have any suggestions or workarounds?
Thanks,
Reece.
Hello! I have the latest version of this plugin installed, and the XFBML option still doesn’t work for me. The button doesn’t show up at all. I entered the application ID, edited the “connect” URL within the app settings and made sure it ended with a slash /. I tried with the “Load XFBML Asynchronously” option checked and unchecked, tried it with different application IDs, but nothing works. Anyone else having the same issue?
I had the version 1.7 installed with XFBML enabled. I still did not get the comment box with the Like. I upgraded my WP version to 2.9.2 and your plugin version to 1.9.3 and checked again – it’s the same thing. I am able to Like/Recommend but I do not get the comment box that I shd get with the XFBML on. Can you let me know what’s going wrong? Thanks
Version 1.9.4 is out with:
- nice formatting of titles on the Facebook page (no longer weird #8217; characters)
- you can disable the use of excerpt as description
- support for fb:page_id for administering your pages
@Chris Clayton
This should solve your title weird chars in the news feed
@Raj
Did you wait a bit? The one-liner doesn’t appear right away (Facebook waits to see if the user adds a comment).
The comment box appears only when a person just liked the post, and then mouse over the button again.
@P|F: I tried adding the / to the end of my blog name, but Wordpress removes it when you save it. So, even after entering http://www.southcoastdj.com/blog/, I end up with http://www.southcoastdj.com/blog
@Brendan
The latest version should allow you to have funky characters in your blog titles (&, -, ‘, …)
I went to your site, liked something, the link gets posted, things seem to work, where is it broken?
Send us an email, we’ll see if we can debug offline and post the results here.
Nice work, PlF :)
i really am impressed with your quality of support.
Just installed it on my photography blog. Thanks for the great plugin! :)
Hi
I have a facebook fan page that I created.
I would really like it that when someone clicks the like button on any post, it shows that they Like my FAN PAGE instead of the post link.
I inserted by Facebook fanpage ID in the settings area, but it’s still liking the individual posts and not integrating with the fan page at all. I’m not using XFBML or App ID.
I’m quite new to this.
Any help??
Plugin works great. Thanks for it.
I am just curious. What is “Facebook Page ID” field in v1.9.4.
(I assume that you can manually add your page by this, so people can become fan of that page. But then, the page is not unique for per post? And if so, doesn’t facebook automatically creates fan pages when you become admin of that?)
@Brijesh Chauhan
It’s a feature actually not documented by Facebook yet where you can administer your pages using an existing Fan page you had before the social plugins where release in April.
We’re just ahead of the curve with our Wordpress plugin, adding features even before Facebook launches them ;-)
Having the same issue with a few others…
I can only get the “page can not be reached” error.
URL:
http://www.concretestreet.net/index.php/2010/05/15/chevelle-2/
> Click Like
” ****** likes this. Be the first of your friends to like this. · Error ”
Error Message:
> The page at http://www.concretestreet.net/index.php/2010/05/15/chevelle-2/ could not be reached.
I have tried 4 other “like” plug-ins and have the same issue.
You plug-in is the best I have seen, but I still have this issue.
Any suggestions?
Great.
So the page you enter in “Facebook Page ID” is a single page for all of your posts. (Not unique page for each post). Am I understanding it correct?
@zowieguy
I tried your URL and it loads very slowly (20 seconds per page load, an eternity), so my guess is that when Facebook pings back your page, they just timeout and declare your URL inaccessible by lack of patience.
@Brijesh Chauhan
It should work the same as when you specify an application ID but I don’t want to make any speculation on something that is not even released and doesn’t have any documentation.
Feel free to toy and experiment with it and give us feedbacks if you find a concrete way to use it.
Version 1.9.5 is out, it’s mainly for PHP4 users (no need to upgrade if you’re on PHP5)
PHP4 users using v1.9.4 would see this error in their log file:
Warning: cannot yet handle MBCS in html_entity_decode()!
This was because we were using the encoding optional arguments in this function that were not supported until PHP5.
This version corrects it so you can still use PHP4 (although considering upgrading to PHP5 is recommended)
Many thanks to Nick at Website Redesign (http://www.re-design.com/) for pointing that out and helping narrow it down.
PIF : This is a GREAT plugin you have.. I’ve tried maybe 20 LIKE plugins and I like your’s the most !! GOOD JOB !
I do have a small request :) is there a way so when I LIKE a post and commented it, it’ll show the image on the post rather than author’s gravatar in my facebook profile ?
Thanks :)
@mocona
Thank you very much for the warm support.
The image displayed in the post is either the one you selected in the settings, or it should be picked up automatically.
We’ll take your feedbacks into account and probably add a snapshot of the liked page in a future release.
Hey guys! I have 2 questions I need help with:
1. I get this error, “You must specify an URL as part of this widget or API.” How do I fix that?
2. How come some posts say “robert like x blog post on sense salon.” and on other pages it leaves out the sense salon part and just says, “robert likes ‘x blog post.’” i would prefer it to have the name of my website for each like. is there something im doing wrong?
thanks in advance for any help.
@Robert
Thanks for your feedbacks.
For 1/
I saw it happening only on your home page. When opening the full article by clicking “read more” and clicking the Like button there, it works. I would suggest unchecking the “Show on Home” options in the settings for now.
In the next version we’ll make the default URL your home page so you will be able to enable the button on the homepage again.
For 2/
I observed that myself and it’s totally up to Facebook. Not sure what the rules are (it seems random so far) or if it’s simply a bug.
PIF, I’m still waiting for feedback on my question earlier.
@Gallo
I apologize for not getting back at you. I actually answered this question on the Wordpress forum.
Facebook wants the Like button to be close to what you actually like.
It makes sense as liking a specific post on your site doesn’t mean you like the whole site.
For people to like your whole website or your Facebook page, I suggest you use the Facebook Like Box (and not button), the way we do it on our blog (check the home page at http://blog.bottomlessinc.com/) with the “Find us on Facebook” badge on the right sidebar.
We’ll probably introduce that as an option (unchecked by default) in a future release as some blogs consist of just one page of content on purpose.
i’m not real sure what’s going on but for some reason my admin link is gone again. i haven’t been able to see it for a couple days. anyone else?
Thanks for a great plugin. Is it possible to hide the number of likes and just show the smaller button?
Great plugin! I had it up and running on my website. However, I noticed my WordPress Users plugin was not working properly. When Like was activated it caused my users to appear twice on my members page at tibesar.com/members. When Like was deactivated the members page appeared normal again. Any suggestions please. Thanks again for a great and timely plugin.
PIF, fantastic work. Is there any way I can place the like button in a custom place in my template? Some tag I can call? I want it at the top of my post, but before the post title and all.
My workaround was to uncheck all of the location boxes in your plugin, then add the xfbml code for the like button in my template.
Hi there,
If I entered a false FB ID first, then deleted it and forgot, what I entered – do I have any chance to fix this?
@John
My admin link is gone too.
@Michael
You cannot hide the number of likes (per Facebook, the plugin cannot fix that)
@Marc T
What is the link of the plugin interfering so we can take a look?
@Kenny
There’s no such tag for now, it will be supported in a future release
@IgglePiggle
If nobody liked your page yet, you shouldn’t have any problem changing it.
If somebody already liked it and consequently you cannot remove this admin ID, just add the desired one to the first one, separating them with a comma (and hope the guy who owns the false admin ID you entered doesn’t end up on your page as he could administer it for you… Facebook should consider this scenario instead of carving in stone the very first admin ID you enter).
Thanks for the plugin. Works great except I find that when I have it installed the picture on my blog post is partially displayed in the top left hand corner of my screen. Very odd!
When I deactivate it goes away, see here:
http://razorcoast.com/do-you-like-the-dublin-web-summit
Anybody notice anything similar?
Hello PIF,
The link to the WordPress USERS plugin that the LIKE plugin interferes with is: http://kempwire.com/wordpress-users-plugin
Thank you for your help and caring and, I am sorry for my belated reply!
@ Michael
@ PIF
You can include your own css file to any FB iframe, so you can hide anything
It can be specified as attribute of FBML tag
or as parameter of iframe source
… &css=http%3A%2F%2Fexample.com%2Fhide.css …
following code hide “likers”
.connect_confirmation_cell{
display:none;
}
@Tomas
*FBML attribute: css=”http://example.com/hide.css”
just a quick question.
when peaple share your post, it automatically uses the image you put in the plugin settings.
is it possible to use custom fields or something to suggest the plugin uses a different image for that post?
So is the admin page totally gone? I installed the plugin yesterday and though the like button seems to work fine on my site and report back to facebook I’m not getting an admin link.
Your plugin is excellent and seems like it is really well developed. I’ve implemented and it works great so far. Can you also please provide the code that I would need to manually insert the plugin in my index, single, page and/or archive PHP files?
Thanks!
I installed version 1.9.5 today with XFBML enabled, with PHP 5 and WP v2.9.2. I am able to Like/Recommend but I do not get the comment box that I should get with the XFBML on. I see this has been reported by other users, but haven’t seen an answer yet.
I saw you said: “The one-liner doesn’t appear right away (Facebook waits to see if the user adds a comment). The comment box appears only when a person just liked the post, and then mouse over the button again.” However when I mouse over again, nothing happens.
I feel like the comment box is the best part of this plugin and I wish I could get it to work. Thank you very much for your help!
Sorry i forgot to add, you can see this on my blog: http://www.djcatnap.com. The “Like” button is configured for all posts.
Hi there. Great work on the plugin. But i cannot solve the “page cannot be reached” Error.
Here is an example: http://www.dadsclub.com.au/fathers-rights-in-australia/
But the funny thing is it only effects posts, pages work fine
I can like this page no problem: http://www.dadsclub.com.au/about-us/
Please help! pulling out my hair with this one…
Hi PIF,
I have 7 likes on my home page and only one follower on the http://www.facebook.com/pages/manage. My admin link is still gone on the my WP site… Just thought you may find this useful to track down a bug.
I really admire what you’ve done and think you’ve done great work. I’ll definitely support you in this.
Michael Glowacki
Hypnotist, Author, Speaker
First off, I love this plugin – thanks!
I’m having a problem where some of my posts won’t accept any Likes. For the most part, the button works fine, but I can’t get any traction on, for example, this page:
http://jamiebeckland.com/2010/05/social-media-is-like-cocaine/
I click the button, it changes briefly, then changes back to the original state.
Any advice? It’s only happening on a couple of posts…
Thanks!
Something has happened to my like button. It was working and now it has stopped. I like my own posts as soon as I publish them. That seemed to work fine until a few hours ago. It now shows “1″ and then goes back to nothing. I didn’t make to many changes, as I am not too tech savvy. I put in my numerical id at the top and my the name id at the bottom, in the settings.
I have installed the plugin and activated it on my wordpress website. It appears on the pages (posts) but as soon as I click on it it give me an error… What could be the problem? visit any posts of mine and click to see… http://inikak.co.za Your help will be appreciated…
Same problem as INIKAK. Worked fine until yesterday. Now there are no likes being displayed for any of my posts, despite the admin pages still existing on Facebook, and if I try to “like” something I get an error.
The application ID specified within the “fb:app_id” meta tag is not allowed on this domain. You must setup the Connect Base Domains for your application to include this domain.
I figured out my problem. I needed to remove www in my FB application.
Another problem I noticed is when I click on “like” the count of people that like something is incorrect. I can click on something I just posted, and the count can be as high as 26. When I click through to the admin page, I’m the only person that likes it. Any ideas?
Hi,
The plugin is not working on Internet Explorer. Could you guide me as to why?
The source html has the plugin code. It just is not displayed.
Thanks
Karthik
ive been adding this plugin to afew of my other websites, and one bug i noticed is that if you select ‘article’ in the open graphic options the admin page link wont appear, possibly because facebook doesnt have an ‘article’ category.
so if the ‘admin page’ link doesnt appear, change the ‘type’ (at bottom of settings page, listed under Open Graph Options) to ‘website’ and then re-like (and refresh) your page.
:)
anyone come up with a fix for the missing comments box issue?
The plug-in is working great, except sometimes for certain posts, it shows the code in Facebook. For example:
Matt likes Drake 9AM — Freestyle on Say Mayday.
Any ideas how to make this not happen?
Thanks,
M
Like is great, works wonderful. Whenever I post a direct link though in Facebook, it never grabs the proper description anymore. Any ideas how to fix?
Hello, first at all, thanks for your work and this great plugin.
But some feedback/questsions:
1.) Will you update it here, when the admin-site bug is solved by facebook? What is your last update status from facebook about the bug report?
2.) What is the diffrence between the page and app id under the “Like” Settings in Wordpress?
3.) Is it “normal” that the plugin still creates ghost sites in facebook through i got a own facebook site (added the page & app id)? And is it possible that people who like a post on my blog also automaticly like the “mainpage” in facebook? Because i wonder how to manage all posts likings without a “mainpage”.
Greets
Like many others on here, I can’t get the “Admin” link appearing on mine. I’ve set my profile ID correctly. You can see an example post on my blog at http://dan.cx/blog/2010/03/javascript-for-modern-sites/.
The funny thing was, I made a test page on a totally separate and unrelated domain. The admin link appeared ONCE, but then when I refreshed, it was gone. Now it seems to intermittently be coming up and dissapearing. Very odd.
Your button is awesome, but it has bug. If I activate it, my nextgen gallery doesn’t work proper. (if you use album, it show gallery, but gallery doesn’t show pictures…
example: http://www.poljanska-dolina.si/fotogalerija/ (click on the piscture)
Please help
ugh, my ‘like” button says that i like “bluehost.com” not my actual site… boo. any tips? thanks.
Also doesn’t work on IE for me either, fine in Chrome & FF.
Thanks for the great plugin. It is active on my site. It works fine unless you click on a tag in the tag cloud. It is time for me to learn about ‘The Loop’, maybe that would help me sort out the problem.
I modified the plugin to make links into the public library. The changes were not rocket science, tell me if you would like a copy.
Hi, I’ve just set up the plug in . It works, people can like my posts but there’s nothing on my Facebook Fan Page, no stats about them, etc… and also no link to “admin page”.
Can you help me with this ?
Great plugin, and the only one which makes admin pages finally work, thanks a lot! But there are two small things you might address within the next update:
The plugin allows us to set the “og:type” tag to whatever is appropriate. However, for most blogs ist should be possible to set it to “blog” only for the home page and to “article” on all other pages, as specified here: http://developers.facebook.com/docs/opengraph (“Use article for any URL that represents transient content – such as a news article, blog post, photo, video, etc. Do not use website for this purpose. website and blog are designed to represent an entire site, an og:type tag with types website or blog should usually only appear on the root of a domain.”)
Secondly, I did not find a possibility to change the language of the button to the German “Empfehlen”. I managed to do that directly within the code of the plugin, but you might consider to add a menu for that.
Do you have any ideas why the plugin works only on one page on my blog:
- http://www.kamikazeonline.ro/2010/05/ginerele-buldogului-blaga-10-000-000-de-euro-de-la-berceanu-si-videanu/
while on all the others I get the error message ” could not be reached” ?
Is there something that I’m missing ?
Thanks!
When the LIKE is clicked get this error:
“The page at http://www.cuttingedgeemarketing.com/the-key-to-hiring-a-consultant-for-internet-marketing could not be reached.”
AND, I AM using your version. Downloaded from your web site
Also, I am getting TWO LIKE buttons on every post as you can see on my site:
http://www.cuttingedgeEMarketing.com
How do I get rid of the bottom one??
Hello,
We installed this plugin last week and love it. However, just today, we have started getting the following error message when we try to “like” our blog posts:
The page at http://blog.ineedhits.com/search-news/5-tips-to-get-your-google-local-listing-to-the-top-31087821.html could not be reached.
Could anyone please help? This is the site that the plugin is installed: http://blog.ineedhits.com
Thanks in advance
Well, I’m borked now, on my blog: http://www.keesromkes.nl/gps my button isn’t working anymore, AND the admin link isn’t showing up since the beginning. Some help woud be appreciated :)
Thanks for a great plugin!
I too am having the “The page at URL could not be reached.” problem with the IFRAME option. In my case, pages with no likes so far, such as this one: http://cpbotha.net/2010/05/23/convert-word-tables-to-eps-for-inclusion-in-latex/ give this error message, whilst pages that have already been liked (for example via facebook) work fine, such as: http://cpbotha.net/2010/05/29/augmentation-weekly-head-voices-23/
I would also really like to solve this problem!
See you,
Charl
One problem I’ve noticed with Facebook and Open Graph is that, if you manually post a link on facebook to a page that has some Open Graph header info, facebook no longer scans the page for images, it just uses og:image instead. If og:image isnt specified, but other Open Graph metadata IS specified, it does NOT scan the page for images to use as the share thumbnail. Instead, it just shows nothing because its expecting og:image because there are other og tags. So that means that all pages will be lacking a thumbnail preview no matter how its shared on facebook.
I didn’t want every page to have the same preview image throughout the site regardless of share method, so, I found a way to make it dynamically pick an image from whatever page you’re on for use in the og:image field instead of using one static image for the entire site.
I’m currently using the popular theme “suffusion”, which has a built in function that it uses to feature an image for a particular post. That function is suffusion_get_image($options = array()) located in actions.php. This function can be easily adapted.
Its a very smart function. First, it checks to see if you’ve selected an image to feature in that post using the theme-added button in the post editor. If there isn’t a featured image, it checks to see if you’ve got a post thumbnail. If there’s no post thumbnail, it checks the gallery. If there’s no gallery, it checks for embedded images. It then resizes it with timthumb, and spits out a linked picture with html code.
The function could easily be adapted to work here in a future revision by cutting out all the theme-specific stuff and sticking to the barebones essentials of the function.
Since I’m lazy, I did it the ugly, cheap, half-assed way. I just used the existing theme function as-is, where-is, and just added the following to your function tt_like_widget_header_meta()
//So that it knows what post we’re on right now
global $post;
//Pull up the special proprietary function from the popular theme suffusion that I am currently using.
$thedamnthing = suffusion_get_image(array(‘mag-excerpt’ => true));
//Strip out half of the html that gets inserted in the output from the theme’s function
$replacethedamnthing = “ID).”\”>post_title.”\” />“;
//With the HTML stripped out, I’m left only with the address of the thumbnail. No link, no html, no alt text.
$theimagelocationurl = str_replace($replacetheotherdamnthing, “”, $partonereplacement);
I then changed variable in the og:image section from $image to $theimagelocationurl
if($theimagelocationurl!=”) {
echo ”.”\n”;
}
and viola! I now have dynamically generated og:image tags for each post.
Hi,
Any workaround for the current “Red Error”?
http://mashable.com/2010/06/01/facebook-like-button-broken/
@PIF great plugin but I’ve run into an odd problem.
I have it running fine on one of my sites, used it right out-of-the-box.
I installed it on another site of mine (the one linked to my name in this comment and every time I try to ‘like’ something on my site it appears successful, then immediately reverts to, “Be the first of your friends to recommend this. · Admin Page · Error” the error is “The page at http://content/ could not be reached.”
I tried switching from ‘blog’ to ‘article’ in the dropdown but it doesn’t solve the issue. any help would be appreciated.
I checked my source code to ensure that all of the meta information for the facebook like button is being included and it all appears fine in my head section including the full URL to the post.
If it means anything, I disabled the plugin, installed the facebook javascript SDK manually, and used the FBXML call and it works fine. I can ‘like’ or ‘recommend’ any page on my site. As soon as I remove all of that, and reactivate the plugin, I get the same error about ‘the page at http://content/ could not be reached’
Hi!
I love the plugin but I’m having a problem. I hit like and it seems to work but, it doesn’t appear in my recent activities. Also, I can’t seem to get the admin link. Can you help me? Pretty please!
I really like your Like plugin but I can’t get it to work. Whenever I’m logged into FB and I click the Like button, the popup window blinks on and off with no content and never stops. I thought it was just my site but when I clicked on your Like button on this site it did the same thing.
Also, I went to install it in another website of mine and it didn’t come up in the list of plugins on WordPress.
Also, when I have it activated, it affects my other share plugins.
I’d like to post an exerpt from your article about FB creating a crowdsourced search engine to encourage my readers to click the Like button but I need to get it working first. The post would of course link to your site.
Thanks for a great plugin! I look forward to seeing it work properly.
Hi, Great plugin – but I have a problem with my theme, there it is showing up on EVERY page. I need a way to prevent it from showing on specified pages. Is this possible currently?
Gordon
Having problems with Like:
I Liked a few of the posts within my site, but I don’t have Admin access to any of them except for 1. I can see that I like the post, along with others, but again, no Admin tab. Any ideas?
Hi
I’m using this plugin in my blog and just changed the layout from button count to standard (since in button count it doesn’t show user’s pictures, even if the check box is checked.
Anyway, now all of my old likes disappeared!
It’s like I’m starting all over again.
Even going back to button count doesn’t show the old likes back.
Any advices?
Thank you very much!
no pics are shown….