Creating a Wordpress plugin: Add the new Facebook Like button to your posts

——————
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.

Facebook new Like button

Simple yet customizable as we’ll still provide a settings page for the plugin.

Facebook new Like button Wordpress plugin settings

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.

Facebook XFBML Like button comment

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…:
Facebook Like button wallpost IFRAME

… and here is the profile post the user will generate when adding a comment with the XFBML version of the button:
Facebook Like button wallpost XFBML

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:

Tags: , , ,

385 Responses to “Creating a Wordpress plugin: Add the new Facebook Like button to your posts”

  1. JC says:

    Hi, I’m using your plugin but the url obtained is not actual post url that was liked but instead a fixed subdomain url (http://www.shinnpark.com/products-page/sale/). Any idea why?

    Appreciate your assistance.

    Cheers
    JC

  2. Seags says:

    HI, I am using this plugin on a number of my websites. It works fine when using the default iframe but as soon as I used the XFBML it does not even show up.

    I have created the app on Facebook and I have saved it to ensure it is correct.

    On further investigation I get a “b is undefined” in FireBug.

    Any ideas?

  3. Sid says:

    Thank you for your plugin. Encountered a small problem (using iframe). When I checked “Use Excerpt as Description” the plugin started to add the iframe code in the header too (between the metas). Checking both top and bottom added it 2 times in the header, then at the top and at the bottom of the post, as it should. Atahualpa theme.

  4. Gordon says:

    It would appear that your plugin has an issue with the theme Atahualpa 3.5.1 by BytesForAll – try it and look in the header of the source to see what I mean. It adds an iframe into the header section of the code !!!!

  5. Shiva says:

    How to add “like” to a template? any hook?

  6. Tink *~*~* says:

    How can I change the “Be the first of your friends….” text? Can’t find a setting where I can do that….

    thanks -

  7. Álvaro says:

    It’s possible to discard categories in the plugin?

  8. Michael says:

    On my admin pages I only see myself and my friends as likers, but not the other people who pressed the like-button. Do you have any idea how this comes? Thanks a lot for your help!

  9. Hey, I have a small problem. When someone clicks the Like button in my blog, the text that appears in Facebook looks like this:

    Level up! » Blog Archive » Level up! on juusopalander.com

    The first “Level up!” is the name of the blog. I’d like it to be: Juuso liked Level up! (postname) on Level up! (blogname)

    Any suggestions how to do that?

  10. @Tink: This is not possible. Well, you could possibly manipulate the text (content) with CSS, but this should be against the guidelines…

    @Michael: This is just the way the like-button-plugin works. Maybe you have seen the like-box-plugin without stream and header somewhere… Take a look at http://developers.facebook.com/plugins ;)

    @Bottomless Inc.: Is this plugin suitable for integrating the og:tags only? I have already built my own like-button-implementation and would like to have a consistent administration for my og’s… Thx!

  11. PlF says:

    @Andreas
    It supports all the og tags from the open graph protocol.
    The plugin is actually listed in the implementations (http://opengraphprotocol.org/)

  12. Hi

    We like your plugin very much but have been disappointed as we keep losing the count. We had 16 likes on a post yesterday and today it has defaulted to ‘be the first to like this’ We are using the default iframe setting and Mystique theme.

    Any ideas how to solve this?

    Many thanks

    Andy

  13. TheRioTimes says:

    Hi, anyone having a conflict with Like and Share this?

    If the “Like” plugin is activated it seems to remove the “ShareThis”… although not everywhere, see my dev site:
    http://riotimesonline.com/dev/

    But I have seen it work, on this site:
    http://www.brazilnyc.com/2010/03/dancebrazil-in-nyc/

    I really want to have both!

    Please help if you can.

  14. Laughing Spaniard says:

    The wordpress facebook like plugin doesn’t work unless you MANUALLY add this in. (please correct for next version)

  15. Laughing Spaniard says:

    code didn’t post. Anyway it’s the header w3.org xmlns info for xfbml. ”

  16. LaughingSpaniard says:

    How to suppress it in a few particular pages or posts? Is there a tag to add?

  17. Michael says:

    @Andreas Sefzig: I’m taling about the button’s Admin Page of facebook, not my blog.

  18. Michael says:

    @PIF I still have the issues I described here: http://blog.bottomlessinc.com/2010/04/creating-a-wordpress-plugin-add-the-new-facebook-like-button-to-your-posts/comment-page-1/#comment-1761

    Additionally, my new blog has an apostrophe in it’s name, which seems to be a problem when people like the page without giving additional comments. You can try it out at http://michael.eisenriegler.at/. In fb my site’s name shows up as: “Michael likes Willkommen zu Michael Eisenriegler’s Repository! on Michael Eisenriegler's Repository.” Do you have any solution for that?

    Thanks a lot,

    Michael

  19. PlF says:

    @Andy Britnell
    Are you still losing the count? You would lose the count if you change the permalink of an article or if you move it somewhere else.

    @TheRioTimes
    Are you using the Addthis plugin? The two are indeed conflicting and the next version should fix this.

    @Laughing Spaniard
    The plugin automatically adds the xmlns:og and xmlns:fb declaration.
    The link you refer to is wrong saying the html tag should be inside the head. Plus they add only the xmlns:fb tag and forget the xmlns:og.
    Both tag should be added automatically at the right place by the plugin, what is your website so we can take a look at the source?

    @Michael
    Thanks for catching the single quote problem, it will be solved for the next release.
    For the blog/article type currently we only support articles because the buttons appear next to articles, even on the front page.
    For the language, you Facebook language setting will determine how the button if displayed (Like or Liebe,…) and you Wordpress settings will determine how the plugin configuration page in the Wordpress admin dashboard is being displayed.
    If you want the button to read “Liebe” instead of “Like”, change you Facebook language settings (but it will display it only for you, the beauty is that others with different language settings will still see “Like” written in their own language)

  20. Eric Angelo says:

    Hello, I am very new to the game:

    How do I change the colour scheme other than “light” or “dark”? Neither are readable on my website!

    I checked the code in the .php file but I’m unfamiliar with the coding.

  21. Eric Angelo says:

    Also, when I click the like button on my site it equals 4 likes

    “Eric and 3 others like this” I tried 4 times, each time it did this.

  22. @plf: Thanks, but how do I suppress the like box on a particular page (or for a particular post–doesn’t much matter). Is there a tag to add to the post or page to suppress the like box just for that page or post?

    As far as the xmlns:fb declare, for whatever reason the plugin did NOT add it anywhere, though the og tags did get added (this is wordpress 3.0 with headway). I put the xmlns:fb myself inside the head, but before the header, and it seems to work fine there. (That’s also where og was put by the plugin.)
    I don’t see that the plugin added any “xmlns:og” either, though it did add other og tags. What xmlns:og tag do I need to add? It seems to be working fine without the xmlns:og tag.

    My website is http://www.laughingspaniard.com/
    thanks.

  23. Michael says:

    @PIF:
    Regarding single quotes: This happens with different types of single quotes, I already tried two of them.

    Regarding og:type: The problem seems to me that “article” would be the correct type, but only “blog” gives me the Admin page, or did I miss anything? IMHO, there is no Admin Page for “article” and no link to it. What would you recommend?

    Regarding language of the button: Nope, I don’t see it this way. Your default configuration gives me the English buttons, no matter what language I use on fb. So I edited the line “‘//connect.facebook.net/de_DE/all.js’;” inside the plugin, now everything is in German (even for you!)

    cu,

    Michael

  24. To be cautious, I added the xmlns:og and moved it and xmlns:fb to the very top, before even the head. (Facebook could use better developer docs.)

  25. Davo Hugo says:

    Hi there

    I recently added the “Like” wordpress plugin to two of my sites …. at JamesHughesBlog.com, and at EmmaMcLaughlan.com

    On both sites, I can “Like” a post … and it will appear on my profile page, along with an image and title etc in the small popup when rolling the mouseover the link on facebook, and it also adds to my Likes and Interest page on my Info page on my profile. Thats all GREAT and Im really pleased with it.

    However, only on JamesHughesBlog.com does the Like notifications go to my friends “News Feed”.

    So if I click “Like” on EmmaMclaughlan.com it will appear on my profile but not in my friends “News Feed”.

    I have the exact same set up it seems on both, the only difference being obviously a different facebook application set up for each.

    Can anyone suggest why it would be working on one, and not the other??

    I have tried for hours on this to work it out, please help.

  26. Aspa says:

    The plugin has recently stopped working for me. No error, but pressing the like button doesn’t do anything anymore. The number of likes to my previous posts (when it used to work) has also disappeared. I am using the default options. Any ideas?

  27. Ondrej says:

    Is there any way not to have the vertical gap between the line with the button and the top end of the post? See a test site here: http://programs.apex-test.com/1935/apex-foundation-on-facebook/ Thank you.

  28. isuquinndog says:

    Thanks for this plugin!!

    Right now when I add this to my blog and I Like it, it shows the URL of the blog post, not the title of the blog post. How can I fix that? Thanks so much!

  29. Shawn says:

    is there a short code I can use to put the ‘Like’ button in where I need it? I want it on my homepage but it was getting placed in an odd area of the page, and pushing some images around. Any ideas? Thanks!

  30. Davo Hugo says:

    Ok my problem is now the “Likes” from my Pages will appear in the NewsFeed … but the “Likes” from my blog posts wont appear in the NewsFeed…. please help

    (website: http://www.emmamclaughlan.com)

  31. Ondrej says:

    How it picks up the “excerpt” for the Open Graph? When I post a link at our FB page, it will correctly pick up the beginning of the post. But when I check the “Use excerpt for description” in this plugin, og:it will show a label of the Socialize plugin, which is placed under the post, as Description. Why the difference? And mainly, how to fix this? http://ogit.heroku.com/inspect?url=http://programs.apex-test.com/76/uk-english-plus-work-experience-nvq-copy-doc/

  32. With all the like plugins I’ve tried (yours included) the image I select sometimes works, but other times the plugin just selects another random image from my page and uses it for the facebook post instead. Any ideas?

  33. Zach says:

    Mike-ENDOtactical –

    I have the same issue! It seems to just select a random image from the page. Has anyone found a solution?

  34. wordpressin says:

    Hi I’ve used this plugin on another site & had no issue using both the iframe and xfbml versions. Hopefully someone could share some insight.

    Currently I can use the Like button when I select Load XFBML Asynchronously. When I do this you can click Like & write a comment and it will post on my Facebook page. So I know the Facebook settings are set fine etc…

    The problem is when I select “Use XFBML” as well the Like button disappears. This is an issue because the content doesn’t get the meta info sent over to Facebook including the image I set etc etc… Any feedback on this would be great!

  35. Eric Angelo says:

    How do you change the text colour?

  36. bill says:

    I am using the framed version, and in the plugin settings, I put a correct url path for the image to display on facebook when a comment is typed, but it is not displaying the correct image on facebook. It appears to be pulling an image from my widgeted sidebar (on each test I tried, it pulled a different image!)

  37. wordpressin says:

    Yup having the same issue, I set an image url and the image is not getting picked up by Facebook, everything else is. When I go to Facebook it shows a little icon of a grey robot guy, what does that mean!?

  38. wordpressin says:

    I figured out something with this plugin. For some reason it started pulling one of the icons from the Add To Anything plugin. After I deactivated that plugin, the image in Facebook would grab the post image. Yet I have an image url set with XFBML :/ Any ideas? This is very confusing, as I said before I’m using this with another blog with no issues.

  39. Rami says:

    Can i extend Open Graph using this plugin?

    in i can use filters to add custom opengraph_{name} where {name} is the unqualified Open Graph property name.

    Can you add this to your next version of the plugin?

  40. Sam Stevens says:

    Looks like a great plugin. When I enable it though, regardless of placement, it makes the TweetMeme Tweet This button disappear.

  41. regole-se says:

    Grat plugin!!!
    …but there is no possibility to insert the button in feeds :(
    Will this feature be implemented? :)

  42. As a request for enhancements: w3c compliance.
    The plugin seems to produce some w3c errors — enter a webpage with the plugin (and widget) activated and see:
    http://validator.w3.org/unicorn/
    thank you.

    here are some errors:
    xmlns:fb=”http://www.facebook.com/2008/fbml”> Attribute xmlns:og not allowed here.
    xmlns:fb=”http://www.facebook.com/2008/fbml”> Attribute xmlns:fb not allowed here.
    Attribute property not allowed on element meta at this point.
    Required attributes missing on element meta.
    etc.

  43. PlF says:

    @Laughing Spaniard
    There’s no tag to customize the button per post.
    For the xmlns:og and xmlns:fb tag, they must be with the html tag.
    However note that the W3C validator doesn’t take custom name tag into account so it will not validate.

    @Shawn
    Theres’s no short tag for now.

  44. @PlF
    Thank you for the information about custom name tags. Note that the plugin is actually the one adding the xmlns:og and xmlns:fb tags (after I switched to using the twentyten theme), and the tags look like they are with the html tag. However the page is not w3c validating them.

  45. nommo says:

    Hey PlF, all,

    Looks like a nice plug-in… just trying to get my head around Open Graph. I am having a couple of issues on my blog (I actually use my personal blog as a testing ground for plugins before I roll them out on production sites for my day job)….

    I am using the iframe version not FBML (standard not button count)
    I have entered my correct facebook numerical account ID
    I have liked my own post and have 6 others who liked it
    But I cannot see the admin link :(

    Also – the blog post I am trying it out on has an apostrophe in it which is not being displayed correctly in Facebook, and the site title is blended with the post title:

    “Nommo’s Elderberry and Bramble wine” is displayed as “Nommo’s Elderberry and Bramble wineConvergency”

    You can see here: http://www.convergency.co.uk/blog/2009/11/nommos-elderberry-and-bramble-wine/

    I tried reading comments & FAQ but not finding any answers – can anyone help?

    Thanks

  46. nommo says:

    And of course the html special character encoding was parsed by Wordpress here ;)

    So what I meant to say was:

    “Nommo’s Elderberry and Bramble wine” is displayed as:

    “Nommo’s Elderberry and Bramble wineConvergency”

    Hopefully that will work :)

    Cheers

  47. Bujaka says:

    Can I disable the share option after clicking like. I don’t want to let people share the posts just like them. If possible, how? Thank you!

  48. Hey PlF

    The plugin works great. But I think there is some bug in the “margin” settings. Even if I change the margin space values in the settings, nothing shows up in the website source code. The only thing set in code is “width=450″. Other parameters dont show up at all.

    You can check it on my website http://brijux.com (like button is not set on home page, you can see it by going to any individual post)

  49. Bethany says:

    Having similar trouble as Brijesh. Trying to give some separation between the like button and my post content but the bottom margin doesn’t work. I’ve even tried adding a top margin to my content but it keeps pulling it up somehow. It starts out correct then once the page loads it pulls it up right under the like button. Any thoughts?

    http://bethanygilbert.com/blog

  50. Taylor says:

    Is there a way to make the image that is linked the POST image? That would be really cool? Is there a way to do this? To code this? Any thoughts?

  51. I can’t seem to find a wau to edit settings. Like button is at both top and bottom of the complete post but does not appear within the excerpts.

    Example: http://smartregion.org/2010/08/virginia-first-in-defense-spending/

    please advise; thx

  52. ok, found the settings and only have Like button at top of post but still nothing within excerpts and the “Like” doesn’t seem to be carrying over to my related Facebook page. what have I done wrong? thx

  53. Reynaldo says:

    How to do manual placement?

    seems doesn’t work

  54. Pelznase says:

    Hello! I have a question about the plugin. You habe this green “H” beside your posts at Facebook.
    How and where can I define such a graphic?
    Up to now ist uses my youtube oder rss-button.
    But I would like to have a certain graphic there.

    Regards

  55. Lennie says:

    I get the following error on my pages:

    You must specify an “href” attribute to the iframe. Something like .

  56. JD Mahs says:

    Thanks for the plugin – it was easy to install. However, there are two problems we are experiencing: one problem is when someone clicks the Like button, it shows up on their Facebook profile and the link that appears is clickable to our blog post. However, the URL that shows up under the link is not the correct link – it is only a portion of the link (it doesn’t include the /blog2 at the end). The second problem is the description that appears – the description is our generic blog description, not the description of the post. When I modifed the plugin settings for description (turned on that check box), the description is just a bunch of coding – not real words.

    How can we change the URL to the correct URL?
    How can we get the description of the actual blog post to show?

    Thanks for your help!

  57. Rami says:

    function single_image_thumbnail() {
    global $post;
    if ( !function_exists( ‘has_post_thumbnail’ ) ) return;
    if ( !is_singular() or !has_post_thumbnail( $post->ID ) ) return;
    $thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘medium’ );
    echo ”;
    }
    add_action( ‘wp_head’, ’single_image_thumbnail’ );

  58. Rick Ross says:

    How do you change font color to a custom color?

  59. Fred says:

    Hi,

    Love the plugin. Just a heads up that it’s not parsing apostrophes correctly in the blog title. E.g., I liked the test post on my new blog and the Facebook update read: Fred likes “The Tortuga Backpacks’ Story on The Tortuga Backpacks' Blog” instead of “Fred likes The Tortuga Backpacks’ Story on The Tortuga Backpacks’ Blog.” The plugin seems to be handling the page title fine though. I suspect others are having the same problem. I didn’t want to fix the code on my end and have to redo the effort every time that you update the plugin.

    Thanks in advance for any updates. Keep up the good work!

    -Fred

  60. I do not know if it is supported now, if not, it would be great to implement it: optional NOT showing the Like button for some posts, e.g. with somethink like NOLIKE custom field

  61. Dennis Madsen says:

    Hello,

    Thanks for your plugin. I got problem with validation on W3C. The following meta-tag is not valid:

    Can you please fix that?

    Thanks!

  62. Dennis Madsen says:

    Sorry, it deleted my HTML. The meta-tag is the one with the property og:site_name.

  63. Christos says:

    Hi, i recently added LIKE Application but i was wondering if there is a way for adding the button in different places except the one is included in the settings

    Thanks

  64. Jed Smith says:

    For some reason the latest version of the Like button generated by your plug-in is not visible in Firefox (I’m using v3.6.9). However it is visible in Internet Explorer.

  65. MarcN says:

    Hi,

    When I put the like box on my site, it functions well but some of my site ads don’t display. Can you help me to fix this problem? thanks

  66. ningendesu says:

    Thank you for the Good plugin. Help the translation. Language is Japanese. Please contact in email address.

  67. device says:

    Thanks for the awesome plug-in! Works like a charm, however last week it started pulling the wrong image as the thumbnail. Not sure if it’s something on our end, or Facebook API. Has anybody else has this issue? Seems to pick up the first image on the page, not the image in the post. Can share an example if you need it.

    Appreciate the help!

  68. David Fox says:

    I’ve been pretty happy with this plugin. But I’m having trouble with the Image URL conflicting with Facebook figuring out what image to use:

    If I use the Image URL field in the plugin’s settings, whenever I add a comment under the Like button, that image gets included on the my Profile page. If I don’t use the Image URL field, then no image is used. That kind of makes sense.

    But, when I use the Image URL field and then enter a comment on my Facebook page along with a link to the blog post, Facebook no longer gives me a choice of which image to use. It ALWAYS chooses the image I’ve pointed to with the Image URL field.

    Is there a way so that:

    1. When adding a link to the page from within Facebook, I always get a choice of which image to include.
    AND
    2. When adding a comment below the Like button on the blog page, it uses the Image URL image (rather than nothing).

    In other words, I’d like a choice when that’s possible, and when it’s not, I’d like Facebook to use the offered image.

    Thanks!

  69. I installed your plugin, thanks for the great work. However, I’m trying to display the little counter box like you have it setup now and there is no option for this? Is this a new version, not yet released on Wordpress? What I want to display is the exact design you have showing right now, below the entry title (Likes [192]).

    Thanks for your help.

  70. Chris says:

    Can you use page id’s instead of a profile id from Facebook.
    I need the admin section to be associated with a Facebook fan page rather than my personal profile.

  71. Chris says:

    Also would like to see who has liked the page. It tells me that 16 people like it but not who they are. Any way of finding this out?

  72. karacsi_maci says:

    Hi!

    Great plugin, i just don’t understand the langugage.
    My profile is hu, my application language is hu (meant hungarian), but the text and button is english.
    Can you help me with this?

    Thx

  73. Sarah says:

    Great plugin. Thanks! I have one question tho… I want the ‘Like’ button to appear on my homepage, below the intro exert of every post. How do I do this? I am just using the plugin outta the box and I am able to add it to the individual posts but is there a way that I can add it to the end of each post summary on the homepage?

    Any help or guidance is appreciated.

  74. dom says:

    Is there a way to force the language to be french for everyone.

  75. dom says:

    I changed from en_EN to fr_FR where it was calling all.js.
    shouldn’t that do the trick?

  76. Alex says:

    Hi,
    It seems that there is a small problem with the “country_name” meta. It should be “country-name”.

    Thank you,

  77. Kelly says:

    Works well with 1 exeption:
    I cannot get the button to display on my homepage / index template. Does anyone have any ideas?

  78. Stephan says:

    I really love this plugin. Only thing is, I want to place the like-button in another location in single.php. Is there a way to do so?

  79. Norman says:

    can i intsall that plugin in my joomla CMS??

  80. Christos says:

    I cant see the Like button with IE All Versions.. Any idea why?

  81. Rasmus says:

    Excellent plugin – works great!

    I have tried to verify the open graph integration on http://ogit.heroku.com/ though – but it seems your plugin does not handle open graph title and URL.

    Is there any way to incorporate this?

  82. Sub says:

    I’m a bit new at this. Si installed the plug in and left all settings at default. When visitors click on the LIKE button, eh, nothing happens. Can anybody help me out please? Thanks!

  83. darrell says:

    as per Alex’s comment above, there are some other underscores which should be hyphens:

    when i run the Facebook Linter over my site, thus:

    http://developers.facebook.com/tools/lint/?url=www.darrell-berry.com

    I see the following warnings:

    Misspelled Name You used postal_code but you should have used postal-code
    Misspelled Name You used country_name but you should have used country-name

  84. Joe says:

    Thanks for this plugin.

    Just installed it.

    Is there anyway to see who has liked which posts or get notifications when someone likes one of my posts?

  85. Theresa says:

    i uploaded your plugin but somehow it ruined my blog. If you try now to open my blog it added an addtional http to it so that it can not be opened. the other sites work out well with the I like button. its just the blog. Do you know what to do?

  86. Tom says:

    I just used your Wordpress ‘Like’ plugin but it doesn’t seem to work how I imagined it would…

    When I ‘Like’ a post on my website, it shows on my FB page as “Tom likes http://mywebsite.com/category/post-slug-name/” instead of “Tom likes Blog post title”.

    Is there something wrong? If so, how can I fix it?

    Thank you

  87. billy says:

    gday i am getting two likes coming up and in the plug in section there is no “edit” .. how to i access the settings page?

  88. Aielzer says:

    Great plugin! :) can u tell me what is the php code of this plugin. I will insert the “like box count” manually.

    Thanks
    Aielzer

  89. TJ says:

    added my page ID 149717885051025 in the Like Button Plugin Settings page next to both > Facebook Page ID and Numeric Facebook ID and I don’t get any Admin link next to the Like Button on the posts in the page blog that uses the like button. So… somethings not working. Any Ideas ??

  90. Hello and thanks for this great plugin. One issue: There is an error in the German localization: The correct German translation of “Recommend this to your friends” ist “Empfiehl dies deinen Freunden”, not “Empfehle …”. Even many Germans are unaware of the fact that “empfehlen” is an irregular verb. Can you fix that in the plugin? Or is the text generated by Facebook? Please send me a short note – thanks.

    Joerg

  91. Ashish Tilak says:

    Hi..
    Thanks for this great great plug in.
    I’m using it very happily in my blog (in Gujarati language though).

    My question is: how can I configure this plug in so that it show like button in comments also?
    If someone likes some comment of a post, he/she should be able to click like button beneath the comment.

    Please help.

    Ashish

  92. Graham says:

    Thanks for your plugin! It seems to work on my local XAMPP test site, but I’m having trouble getting the button to appear on my live site. For example at http://confidentman.net/emotions/stop-worrying there is a space at the top of the article where the button _should_ be; but no actual button appears. I’m just using the basic settings; no XFBML or other advanced settings. Any idea what might prevent the button from appearing?
    Thanks, Graham

  93. Graham says:

    Of course as soon as I post about the button not appearing… it appears! WTF?!?

  94. David says:

    I use AddToAny share button which supports various social media and bookmarking sites (including Facebook). I additionally use the Facebook Like button. I use Facebook Insights to track share and like statistics.

  95. KitKat says:

    I have an error, how do I solve problem? …

    Error: No lograste dar una lista válida de administradores. Debes proveer los administradores usando una meta etiqueta fb:app_id o una meta etiqueta fb:admins para especificar una lista con comas de usuarios de Facebook.

    Error: Fail to give a valid list of administrators. You must provide managers fb using a meta tag: meta tags app_id or fb: admins to specify a list of comma-Facebook users.

    Thanks

  96. marc juneau says:

    ive launched quite a few sites and everytime i try to use this plugin i have this same issue but it doesnt appear to be an issue on yours when i like one thing for some reason every page i go to then it is already liked … so its like if i like one thing i have then liked everything, it is not individualizing the likes across the site … any ideas??

  97. Kasia says:

    Hi, thanks for this plugin :) It work preety well on my site. Thanks again. Kasia

  98. Jan says:

    IS there a way of removing the Like button from specific posts or pages?

    I’ve seen some people asking for it but there was no answer. This function is very much needed as I do not need like on pages such as contact or About us and would like to remove it somehow.

    Is there a way?

  99. Thank you for the plug in. It works great and the article is very interesting on how to create a plug in.

  100. Billy says:

    I installed the plugin and after trying to get it to work fit a while… got frustrated and deactivated it. Now I can’t login to the backend of my blog. I’m getting redirected to a page that won’t pull up. So I’m staring at a blank page when I attempt to login to wp-admin.

    Anyone have the same issue? If so do you know the fix?

  101. Dawn Hibbs says:

    I have the like button set up on my site. It shows up everywhere. I am not understaning why if someone likes what they click on they are not connected to my FB page as liking Executive Maids. It seems that they are liking the page that they clicked “Like” on.

  102. My blog name has an apostrophe in it (Scott’s Diabetes). Whenever a user clicks on the “Like” button, what shows up on their facebook page is “Scott (Ampersand, Pound Sign, 039 semicolon)s Diabetes” (I typed the names of the symbols so they don’t get encoded in this comment).

    Is there anyway I can change this (without changing my blog title)? It is really ugly looking on Facebook!

    Thanks!

  103. Admin says:

    Can I make the Like button appear in the RSS feed? If not, what does the “Show on Feed” option mean? When I select it, it will not stay.

  104. Howard says:

    Why is my blog showing…

    143,078 people like this. Be the first of your friends.

    Where does it get the 143,078 from? I have not even launched my site!

  105. Geert says:

    Hi there,

    Great plugin, but I have 2 questions… It’s placing a Like button underneath every post AND under the post title.. how can I disable the button underneath the title, so it only shows undernearth the post content ?

    Second issue – it seems to be generating xhtml validation errors.. is this a known issue?

    thanks !

  106. jen says:

    hello! thanks for the plugin. i’m having the same problem as Geert – the button shows up just underneath the post title and at the end. i’d like for it to just show up at the bottom. could you help me?

    thanks!

  107. John Pruitt says:

    To those having issues with this plugin not showing on the home page, I got it working for me. In my index.php file I have this:

    <?php if ( is_category() || is_archive() || is_home() ) {
    the_excerpt();
    } else {
    the_content();
    }

    So all I did was add this to tt_like_widget.php.

    add_filter('the_excerpt', 'tt_like_widget');

    I added it on line 149, inside the tt_like_init funtion. Hope it helps

  108. Dylan6666 says:

    How can I change font color?

  109. iSal says:

    Hi,

    Thank for this helpfull Plugin. It’s great and simple ;) “I like”

    I’ts working fine for me, but one little issue. The post in facebook shows a link of my post and a link of my blog, but this last link doesn’t match. My blog URL is http://ecobebe.com.mx/blog and Facebook sends to http://ecobebe.com.mx
    could you help me?

    Thanks!

  110. Nick says:

    I was wondering if there is a way to just put ONE facebook like button at the top that is assigned to your blog as a whole. I don’t want people to like or not like each individual post on my homepage, i just want people to be able to like the site as a whole.

    is this possible?

  111. Jason says:

    Hi. Fantastic plugin. I just dl’d it yesterday and mistakenly entered the wrong Facebook ID number. So I found out the proper id number and entered it on the settings page. However, even with the correct id number, I am still not having any success with getting admin access.

    Any assistance would be greatly appreciated.

    Thanks.

  112. boriel says:

    This is a fantastic plugin! Thank you.
    Also, it would be nice to allow this plugin not to appear on certain posts or pages if the admin sets a custom field :-)

  113. Michael says:

    After this working fine for well over 6 months, today it gives me this error across all of my blogs (multisite installation)
    You failed to provide a valid list of administrators. You need to supply the administrators using either a “fb:app_id” meta tag or a “fb:admins” meta tag to specify a comma-delimited list of Facebook users.

    I have entered my Facebook ID and I still get this error.

  114. littleoslo says:

    now we have a problem ! in the old days we dun have to put in the fb numberic id n it works fine but now we must have to do it otherwise it shows as error.

    it is fine to put in the numberic id but then it creates many “page” for you as long as you like the post yourself. it seems very annoying :(

  115. Michael Mallett says:

    This works on one of my domains, but not on another. I am not using XFBML as far as I know? If I just put in my ID I still get the error.

    Any help?

  116. Jan says:

    Hi,

    I installed the plugin and it worked great! till I updated wordpress to 3.0.5.

    now you can like something, but after a second it switched back from ‘1 person liked this’ to ‘lile’ again.

    anyone else has the same problem?

  117. Oula says:

    Hey,

    Is it possible to add the like button to a different kind of post/page? I would like to use the like button on my single product pages. I am using WP-ecommerce. Is there a script I could add in the single product page code?

    Thanks,

    Oula

  118. duke says:

    Hello,

    I want to know is it possible to when we click on like button and then it pop out for a comment.

    Please See the Image Attached with this Comment.

    From My Website
    http://i834.photobucket.com/albums/zz269/duke7891/like3.png
    http://i834.photobucket.com/albums/zz269/duke7891/like4.png

    and from other site
    http://i834.photobucket.com/albums/zz269/duke7891/like1.png
    http://i834.photobucket.com/albums/zz269/duke7891/like2.png

    Can you help me make my like button like this above?

  119. Elizabeth says:

    I have had this plugin for several months now and it just started acting weird. On one computer I can’t see when anyone “likes” the page, but on second computer I can see everything. This is not specific to a certain computer as it shows up on some and not others. I am thinking about using a different plugin. If I do that, will it erase all the previous “likes” on older posts? Thank you!

  120. Nicole says:

    Firstly, thanks for the plugin. It works perfectly.
    The problem is that I when I moved my site to another host all of my likes disappeared. How do I move them to the new host (which has the same domain)?

  121. Joereg4 says:

    Get an warning/error from http://developers.facebook.com/tools/lint when filling in the postal code and country. It says “postal_code” is misspelled and it should be “postal-code”, instead of an underscore it needs a dash. I changed the code below in the plug-in editor and the warning/error went away.

    $tt_like_settings['og']['postal-code'] = get_option(‘tt_like_postal_code’);
    $tt_like_settings['og']['country-name'] = get_option(‘tt_like_country_name’);

  122. Michael says:

    I am using this plugin on a photoblog. I had believed that I had this plugin working fine but when a user likes a page using it – the preview image that is shown in their facebook profile for the “like” is a small image from the footer of my site – not the image from the post. No matter which post one likes – the same footer image shows up in their facebook profile. I have removed the first image that did this in the footer but now it is simply another one.

    Any help on fixing this problem? No preview image in someones facebook profile would be preferable to one pulled from the footer.

    Thanks!

  123. Dennis says:

    Hi!
    Just one question: I´m totally overextended with the Facebook Open Graph… I have a Like-Button on my blog, but with no meta-tags on my page. And now I want to implement the tags into my pages and posts. Can I use your plugin? That means: I don`t need your Like-button, I`ll use my own (I´ve implemented the original Facebook-code). I just want to use your plugin to create the meta tags – some of them dynamic, of course, like thumbnail-image and title… Is your plugin what I need?

  124. PlF says:

    @Dennis
    Yes you can use the plugin to just setup your opengraph variables without displaying any Like button (just go to the settings page, fill out the opendgraph info and uncheck the “Show” checkboxes)

  125. B says:

    I use this plug-in on my blog. When someone likes a post I’ve made it appears on their facebook as a random icon from my website.

    Is there any way for you to add an Icon option to your plug-in so that every time someone uses a Like button a specific user chosen icon comes up on their fb page every time?

    That would work great for me and others.

  126. Roby says:

    Great plugin, simple and perfect.
    I’ve just putted on my wordpress, everything is ok but when i click on “Like” and then go to my Facebook page..
    I see, for example,

    Titel post
    http://www.mysite.com
    You may use these HTML tags and attributes:

    How to remove “You may use these HTML tags and attributes:”.
    I’ve still removed from wordpress modifyng my ccs theme, but still remains on FB.
    Thanks!
    R.

  127. clemence says:

    Hi,

    As a lot of people here, I’ve got an issue with the image chosen. It takes a random one.
    I’ve tried to put your code on the header but it doesn’t work.

    Any help?

    Thx

  128. Jenna says:

    If I changed the permalink and lost the “like’ count, is there any way to get it back? thanks!

  129. Post likes are broken with Wordpress 3.1 using Atahualpa 3.6.1. The like button appears in the header. After I enabled “Like” plugin, I also get the Sociable bar in the header. Previously, I used to get it below the post. Please take a look at a sample post page.

    http://praveen.kumar.in/2011/03/09/making-gnu-emacs-detect-custom-error-messages-a-maven-example/

  130. Hello,

    Thanks for an excellent plugin. It’s clean & simple and better thank some of the other “Like” plugins out there. However, I came across a small bug that I was hoping to report. When Running WordPress with debug mode enabled, I get depreciated argument notices like the following:

    “Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead…”

    I was able to fix this bug by updating line 429 of the latest version of tt_like_widget.php. This line makes an argument call to the older, numbered-style capabilities functionality of WordPress. Here’s the original line:

    add_options_page('Like Plugin Options', 'Like', 8, __FILE__, 'tt_plugin_options');

    I updated it to the following:

    add_options_page('Like Plugin Options', 'Like', 'manage_options', __FILE__, 'tt_plugin_options');

    By switching to the named capability “manage_options” the notices are now gone. In my situation the “manage_options” capability seemed like the best fit. However, another capability could be better for the plugin.

    Hopefully, you’ll be able to integrate this bug fix into a future release.

    Thanks again for a great plugin!

  131. Great plugin! However, wondering if the og:image has any effect on the display image for posting url’s through Facebook directly. Before I installed the plugin, we were able to choose an image on the link upload, but now are not given any image, not even the defined og;image in the settings. Thanks for your help!

    http://www.facebook.com/home.php#!/pages/Read-and-React/117347134951674?sk=wall

  132. Alvin says:

    Hello. I’m having a problem with the plug in telling me:

    The app ID specified within the “fb:app_id” meta tag is not allowed on this domain. You must setup the Connect Base Domains for your app to be a prefix of http://cope.bc.ca/2011/03/26/photo-post-demo-at-dennys/.

    I tried the fix descried in the post in the FAQs, but when I go to the app, there is no reference to “Connect Base Domains” or a “Connect Tab”. All I have is tab that says “web site” and I have “http://cope.bc.ca/” as the site URL and “cope.bc.ca” as the site domain.

    Can anyone help?

  133. George says:

    I’m having an issue with our “like” button. When someone “likes” a post we made on the page, it picks a random image from the categories list to show up on facebook walls, rather than showing the image associated with the “liked” post. Is there anything we can edit to make the post image show up on facebook walls, rather than just a random category? I would toy with it myself but I’m relatively new to html and don’t understand all of it just yet:) If you could give me the script that would point to the specific “liked” post image and where to add it, it would be much appreciated.

    Thanks!!!!

    George

  134. Way says:

    it could be the best “like” plugin… but no possible to configure a link image… for example, first image in the text…. Facebook select one automatically… and this is awkward…. sorry… but… uninstall…

  135. Thnok says:

    Hey I want to know how do I enable the send button along with the like button?

  136. Ryan says:

    Nice plugin, how do i check who has liked my post.

    EG: Kim, Bob and 11 others liked this

    I would like to know who the other 11 are?

  137. Pablo says:

    I think I know what the image problem is. I also wanted the plugin to display my custom image, but it would always pic a random one for the facebook page. I then kept trying different configurations. Then I tryed liking a post that no one liked before and it worked!
    I then realized that I had tried a different plugin before and many people had liked the previous posts. Perhaps that different plugin grabbed a random image and it associated with Facebook already and everytime I like that post it uses the same random imagem.
    I don’t think there is a real solution, only to wait to see if it works with new posts with the new plugin already installed.
    Thanks!

  138. Is there any way to insert the button manually into a post?

    Great work, this is the best FB Like button by far!

  139. Jason says:

    For those struggling with a random image displaying, try changing the Type in Open Graph Options from “Article” to “Blog.” Not sure why this works, but after I did this the image URL I indicated (my logo) appears when Liked on FB.

  140. YourCustomBlog says:

    Also wondering how to insert the like button in a custom template? When I use:

    I get:

    Warning: Missing argument 1 for tt_like_widget()

    So…what arguments should I pass?

  141. RMvalues says:

    Hi,
    After implement this plugin, it appear on the top and bottom of post, but it conflict with quick adsense (techmilieu.com/quick-adsense) plugin, it mades the quick adsense plugin not working on top and bottom of post and replaced by like plugin.
    Can you fix it not to replace other plugin but below them ?
    Thank you.

  142. Lisa says:

    I love the look of this plugin and really do want to use it.. and I’m sure that whatever is wrong is due to my lack of knowledge in this area, HOWEVER, I can’t make it work:) I have been able to generate a lot of different errors though, so if there is a prize for that, I’m a contender!
    The plug-in appears on my posts and page beautifully. But if you click on it, you get the ugly red ERROR and one of these or other messages.

    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.

    I read the comments above and tried changing the type to blog, now i get “The app ID “210498405657164″ specified within the “fb:app_id” meta tag was invalid.”

    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.

    I currently have nothing in the Pprofile ID of Page ID fields. I have tried various combinations there, but none seem to work. I installed the FollowMe Plug-in and that one works perfectly. But I would rather use this one if you can possibly tell me how to get it working.
    Thank you

  143. Lisa says:

    I forgot to mention that I have uninstalled and reinstalled the plugin several times, including removing it through ftp. same results. and it seems to remember the information I put it last time, so I’m not sure where it holds that, but maybe if could clear that? I have cleared cache, cookies, etc. MANY times now.

  144. Josh says:

    I’ve had this plugin for a while and have always been a big fan. Back in the day, if someone clicked “like” then it would display this on their Facebook page: “John Doe likes “Instert Blog Post Name” on WebsiteTitle.” That was awesome, but now for some reason, it displays something more complex. It picks a random image from the site and displays the title, some text, a long link, and all kinds of other unwanted things.

    How do I make it go back to the simple “John Doe likes “Instert Blog Post Name” on WebsiteTitle” display like before?

  145. Kirk says:

    When clicking the “Like” button, the post pulls up a random photo from another blog entry. How can I specify which image is linked to the “Like” plugin for each specific post?

  146. Frank says:

    Hi,

    sorry for my bad english :-(.

    When I have the “more” Function (read more…) on my Article, then i see the FB-Like Button only in first Part from this Article.

    When i go of the Link “read more” then is the like button not to see.

    What can I do, that I see the like button every time?

    I have installed the Like Button under the Article.

    Thanks for help.

    Many greetings
    Frank

  147. Facebook url linter has this error for your plugin:

    “While some Open Graph data was found at this URL, it is missing one or more of the required attributes. If you control the URL you should make sure it has all of these attributes: title, type, image, url”

  148. Ryan says:

    Same problem as Lisa

    have been using it on my wordpress site for a while and recently it stopped working. i get an error when you click on the like: “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.”

    I never had anything in this field or section as it said for Avanced users and i didnt want to break anything

    I have added my numerical Facebook ID but to no avail.

  149. fastharry says:

    Hi..I have a quick question….my website is http://www.fastharry.com….The like button is working fine, I created a “like” button app that works OK….and I entered all the optional info (facebook PROFILE id, facebook page id, and the app ID from the approval page of facebook. I liked my own FB page (fastharry.com) and I do not see anywhere on my profile page or fastharry.com FB page about a ADMIN page..can anyone tell me where that is located?…Thanks, you can email me at support@fastharry.com

  150. Mathieu says:

    I am also looking for a way to use this plugin to generate a like button for the whole domain (not individual posts) and to custom place it ‘above the fold’ in my index.php page. Is this possible? I’ve tried using the FB generated code but keep getting an error.

  151. Mark says:

    HELP!! Am using Wordpress and Facebook – Like – Plugins since a few years. Now since (if I only knew!) some time, the LIKES don’t work anymore on all the posts. On my page http://www.markkujath.de and also on http://www.teamzwo.de – you can click LIKE, see the “you like this” for half a second, then it jumps back, the “like” Button appears again. This is not on every post, but on 70% of the posts. PLEASE HELP, I tried everything from several Plugins about XFBML and also including several code-sniplets, App-IDs… NOTHING! Works only for SOME posts, PLEASE HELP!!

  152. Darren says:

    I’m having some issues with the plugin lately, When someone clicks the liek button it’s not being registered. It says 1 person liek for 1 second then goes back to blank. What’s the issue here, can someone recommend another plugin?

  153. Ranjan says:

    Thank you for an awesome plugin! Any plans on adding the Send button?

  154. Aaron says:

    Plug in seems to have broken, same as Ryan. Any ideas why?

  155. john says:

    the plugin needs an update. it stopped working. (profile_id -> id)
    when will it be avaible for mortals? :)

  156. Sven says:

    Hi There

    I really liked the plugin but as Lisa and Ryan said, it stopped working – it still shows up, but if I like a post, the “like” disappears after a while or I get an error message. I checked the FB ID… but I have not changed it.
    I am not sure, but I think it stopped working correctly after updating to wp 3.2 – I should be grateful for any help.

  157. roro says:

    Stopped working a week a go… No new likes, but you can add likes to posts that already have it.

  158. Merce says:

    I have a new problem. If you clic on the button, you can see for a second that 1 person likes the post. But, after this second, that information disappear and the counter is restarted.

  159. Jason says:

    I’m getting the error message, but no explanation like some above are. Just started today. Can anyone help me work out why it’s stopped working?

  160. SupamaN says:

    Thank you. I will to start this plugin.

  161. Karl Badeo says:

    the plugin stopped working on our site, http://maximusmark.com/. it seems like it stopped working on new wordpress versions as it still works on our other site with wordpress not yet updated. any plans for a new update?

  162. Robyn K. says:

    Yes, would love an update for this plugin. It stopped working after updating to WP3.2.
    It’s the best fb plugin I’ve found, and I’ve tried quite a few.

  163. Hello!
    Like plugin has a problem with Simple:Press plugin for WordPress forum. When Like is active – the forums don’t appear. Even if I check the checkbox for not showing Like on pages, the forum still doesn’t show up. The only way is by deactivating it.
    Can somebody help me out at let me know how can I add page exception to the code of Like, so it excludes /forum?
    I also figure out that the problem between Simple:Press and Like is the use of function the_content
    Cheers!

  164. Ok, if you have that problem with Like and Simple:Press allow in Simple:Press the following 2 options:
    1. Load js in footer
    2. Allow multiple loads
    from the WP integration tab. Sorry for the spam!

  165. Ryan says:

    Seems that the support for this plugin is no longer.

    Possibly due to not enough donations lol. If anyone does have a solution to this “You failed to provide a valid list of administators…..” error or a plugin that works please let us know thanks

  166. Use on your WordPress site for a while and recently stopped working. I got an error when you click on eg “You do not have a current list of administrators to Administors is necessary to use one.” FB: app_id “Providing a meta tag, or using” FB: Administrators tag “comma-separated list of Facebook users to enter” I have never in this area, or in the article, as shown in Avanced users, and not something I wanted to break. I have a Facebook ID numbers, but in vain.

  167. Gavin Thorn says:

    Firstly, thanks for a great plugin.

    I’m using the ALO EasyMail newsletter plugin and an issue I have is the Like button appearing on the email that gets sent. A workaround is to prevent the button code from being inserted if there is no permalink (as in the case of an email). The modification is very simple and affects the area of code around line 377 in tt_like_widget.php as follows…

    $purl = get_permalink(); <– existing code
    if(!$purl) return $content;

    Best regards,
    Gavin

  168. Hannah says:

    Hey, I recently read that with the use of iframes, facebook tracks your visit to a site with a like button, even if you don’t click it. Regardless of whether you have a facebook account or not. I suppose it is the same with the share button.

    A german website, heise.de, implemented a two-click-solution, where your presence on the site will only be send to facebook when you actually use a facebook button.

    I think that’s an awesome idea, so now I am looking for a plugin that could do this on wordpress. So far to no avail.

    heise.de even provides the code, but unfortunatelly I don’t know the language and grammar to program my own plugin. But maybe you like the idea too and like to implement this into yours!

    This is a link to the open source code/plug in heise.de provides:
    http://www.heise.de/extras/socialshareprivacy/

    unfortunatelly the documentation is in german, but the plugin itself is probably understandable to you?
    http://www.heise.de/extras/socialshareprivacy/

    And this is the – also german – article where I got all this from
    http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html

    I hope this is somehow interesting to you, in any case, thanks for reading and kind regards!

  169. prk says:

    Is it possible with this plugin to make the connection described in http://developers.facebook.com/docs/reference/plugins/like/: “Your page will appear in the “Likes and Interests” section of the user’s profile, and you have the ability to publish updates to the user”? I guess it have to be XFBMLversion then, and that you have to create a App ID?

    I manage to get the page to appear in the “Likes and Interests” section with the instructions from developers.facebook.com, but that is from a ordinary .html document, and not Wordpress.

  170. Fred says:

    Hi there,

    also having the random image published on facebook… wondering how can I change the image that shows up when someone like my post…

    many thanks for the great plugin!

  171. Mattias says:

    Quote:
    “@Michael
    For the language, you Facebook language setting will determine how the button if displayed (Like or Liebe,…) and you Wordpress settings will determine how the plugin configuration page in the Wordpress admin dashboard is being displayed.
    If you want the button to read “Liebe” instead of “Like”, change you Facebook language settings (but it will display it only for you, the beauty is that others with different language settings will still see “Like” written in their own language)”

    I have problem with this. I’m from Sweden, I have set my Facebook to Swedish. My wordpress site is in Swedish and so is the Adminpages of Wordpress. I have even translated this plugin into Swedish. But the Likebutton is still in English under my posts. That doesn’t look good on my Swedish site.

    I used the Facebook Like plugin before and there you can choose what language you want to use in the Pluginsettings, but it didn’t work 100% like I wanted it. Yours does, except this little problem. Any ideas?

  172. art says:

    I made og:title with custom field ‘facebook_image’ and then edit plugin file:

    $image = trim(get_post_meta(get_the_ID(), ‘facebook_image’, true));
    if($image!=”) {
    echo ”.”\n”;
    }

  173. Aaron says:

    Hi, my like button was working fine until today but now I’m getting an error and when I run it through the facebook developer debug site it says:

    Error Updating Page: Value cannot be null (Value given: null) TAAL[BLAME_file]

    Any thoughts on what I need to do to fix it?

    Thanks, Aaron

  174. Lee says:

    Very handy and useful plugin, but you really need to have the ability to exclude the Like button from a particular post (e.g. private posts, etc.). I have looked everywhere for a solution and can’t find a way to do this. Any chance a short code will be coming for this in the future?

    Regards,
    Lee

  175. Jessica says:

    We’re using your wordpress Like plugin and it works fine, but the image it pulls when it posts to facebook is random and usually wrong. is there a way to control the image it chooses to post since this is important in what people click on?

  176. katie says:

    Hello, I use this plugin and I get this error in FB Lint:

    The og:description property should be explicitly provided, even if a value can be inferred from other tags.

    I have checked the Use Excerpt as Description option. How do I get rid of this error?

  177. Jennifer says:

    Plug in works..except when someone likes a post -it posts to face book with a Twitter “t” Icon. How do i fix that?

  178. Steve says:

    I’m happy with this plugin but confused about one thing: I want to get an og:image metatag pointing to something that Facebook will always try to use. The FB guidelines say this:

    The og:image is the URL to the image that appears in the Feed story. The thumbnail’s width AND height must be at least 50 pixels, and cannot exceed 130×110 pixels. The ratio of both height divided by width and width divided by height (w/h, h/w) cannot exceed 3.0. For example, an image of 126×39 pixels will not be displayed, as the ratio of width divided by height is greater than 3.0 (126/39 = 3.23). Images will be resized proportionally.

    I know this is about FB and not about the Like plugin, but what is the suggested workflow when creating a post? Do I need to create a separate media item that is the thumbnail for the post. How do I tell Like to use that thumbnail for the og:image tag. Or can I just tell Like to use one of the images in my post? As someone remarked above, FB randomly selects background graphics — the twitter icon in my case — and it really looks stupid.

    Thanks for this plugin.

  179. Dean says:

    hey guys – great plugin, simple and works!

    is there a SHORTCODE???
    or how can i add it to excerpts on the homepage?

    thanks a lot

  180. Alex Ben says:

    Great plugin but I have ONE QUESTION.

    I would like to insert some code just AFTER content (single.php) and BEFORE like button. But even I add a hack to functions.php a code is being inserted AFTER like button.

    Is it possible to insert some code just after content but before like button? Or can I insert like button manualy?

  181. Kingsley C. says:

    This is good. It works great. Thanks, I used this plugin on my site.

  182. art says:

    hi! good plugin!
    but after some plugins, which use add_filter(‘the_content’, …
    get_the_excerpt inside like plugin show only content of that plugins (for example related posts plugin)

    even the_content() inside your plugin return not only related posts plugin content without content of post

Leave a Reply