RSS 2.0 Feed
Posted on April 23rd, 2010 at 08:24 AM by Corey Ballou

Download The Me Likey WordPress Plugin Now

UPDATED 06.14.10 8:52 pm

  • Fixed an issue with the shortcode handler calling an undefined function, thereby not registering shortcodes properly.
  • Fixed the screenshots on the WordPress Plugins page.

UPDATED 04.28.10 7:00 am

  • Resolved an issue with the admin id META tag.
  • Disabled the app_id parameter in the configuration until a FBML solution is implemented.
  • Added a “default image” option to the admin to be used when no post image exists.
  • Improved the preview mode to switch to a dark background depending on the layout choice.
  • Added comments to the admin options.
  • Modified the HTML namespace parameters to be included by the script, you must now ensure your header.php file uses the language_attributes() function:
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

UPDATED 04.27.10 8:26 pm

A number of feature requests have been fulfilled.

  • An AJAX preview mode is now available in the options for a quick preview of the button.
  • All META tags are now populating correctly.
  • Fixed parameter naming issue with META tags (replaced “name” with “property”)
  • Additional options have been added to the configuration page; height, layout, show faces, and the ability to define your own custom class for the iframe.
  • Fixed the handling for populating the description meta tag. The code now attempts to get the excerpt first, then the first 255 characters of the post, and lastly the blog description as a fallback.
  • A few other minor issues were resolved which I found while implementing feature requests.

UPDATED 04.27.10 8:00 am

A number of issues with the admin options were found which would hinder you from modifying certain default settings. This has been resolved and the .tar.gz file has been updated accordingly. A couple of outstanding issues noted in the comments are being addressed. These issues include associated images not displaying on Facebook, no admin option for toggling between display methods, and the og:description meta tag not populating properly.

It is recommended that you add the following namespace parameters to your theme’s header.php HTML tag:

<!-- DEPRACATED. See code reference above. -->
<html xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">

I have dabbled with the Facebook Open Graph API for the past few days following f8 and eventually arrived at a full featured plugin for displaying Facebook’s new “Like” button functionality on your WordPress blog. The plugin is chock full of goodies, including:

  • Option of using either the standard or button_count (small) display mode.
  • Customizable width of the iframe containing the button.
  • The first included image of the post will be cropped to 50×50 and included in the user’s Facebook profile. (possibly broken)
  • Customizable placement of the button, which can be either at the top of your post, bottom of your post, or included using the php function me_likey_button(); in your theme files.
  • Ability to include the button within a post using the shortcode (BBCode) tag [like_button].
  • Ability to change the button’s wording to either “like” or “recommend”.
  • Customizable font family, including arial, lucida grande, segoe ui, tahoma, trebuchet ms, and verdana.
  • Ability to change the color scheme of the button to either “light” or “dark”.
  • Ability to enable/disable the button on a per post (or page) basis directly from the add/edit post screen.
  • Automatic inclusion of Open Graph meta tags to ensure your site is fully compliant with Facebook’s new handling.

Download The Me Likey WordPress Plugin Now

The plugin will have an official page shortly. Suggestions and feature requests are appreciated as I want to ensure the plugin is useable by all. For more details regarding Open Graph and meta data requirements, please click here.

76 Responses

  1. Naz says:

    Hi,

    I love this plugin but unfortunately because of Facebook’s changes where you have to specify fb:admin this plugin is not working properly.

    Whenever anyone presses the Recommend button this error comes up: “The page failed to provide a valid list of administrators. It needs to specify the administrators using either a “fb:app_id” meta tag, or using a “fb:admins” meta tag to specify a comma-delimited list of Facebook users.” – It links on FB fine but it doesn’t count the Recommendations on my actual site.

    Can you please let me know if this is something you are working on solving and adding to the plugins interface? or if there’s a piece of code I can add to the plugin myself?

    As you can imagine this is quite frustrating as all my old registered Recommendations are gone and all the new ones do not register. Grateful for any help you can provide with this issue…

    1. Corey Ballou says:

      Hey Naz,

      There’s already a configuration option to specify your admin id number via the settings page. You can actually add multiple admins in this field separated by commas. In my case, I use 21600417, coreyballou as a value (the second is my FB username). This sets the following meta tag on each of my pages: Once you have done this and saved, you need to go in to each post and be the first one to “like” the page/post. From then on other users can like the page. This essentially sets you as the admin. Let me know if you have any other problems.

  2. Recommenda says:

    Love this LIKE plugin but I’m not able to get any like button support in FB. My friend has a website and your like button and whenever he posts something a page is created in FB, an admin interface page where he can see all the people that liked the page and even post to their wall, etc. Under his like button he has a link to the admin interface but I don’t have any links under my like button. Do I need to paste some META tags somewhere in my site to activate this. My friend said your plugin did it automatically for him.

  3. Vatih says:

    This plugin is working perfectly! Awesome…
    For a long time i try to find the LIKE button that can showing up the content on the wall feed.. Very useful.. LOL :D

  4. Kermit Woodall says:

    I’m having problems with Me Likey working passing the proper URL specifically:

    http://advocate.kermitwoodall.com/multimedia/video-test/video-category-life/?tubepress_video=wvFoF6uzpDY

    But what it actually puts in the URL to like is:

    http://advocate.kermitwoodall.com/multimedia/video-test/video-category-life/

    Any ideas?

    Kermit

  5. Skip says:

    Hey, like the plugin a lot, thanks for building it.

    It would be great if there was a way to have different php calls for different configs. In other words, if I wanted it to use recommend with standard, I call me-recommendy-long or something. If I want just like with the count, I call me-likey-short().

    Just an idea because I want to use different looks on our home page versus the entire post template.

    Thanks again.

  6. Victor says:

    Hi,

    Just a simple question, how can I change the “Recommend” to “Recommander”?
    I tried to change the php code, but it didn’t work.

    Congratulations for your work, seriously.

    Thanks in advance,
    Victor.

  7. Adam says:

    Hi, for some reason the plugin started echoing my posts’ tags into the description meta tag. Any idea why?

  8. Charlemagne Web Designs says:

    Hello,

    There appears to be a problem, possibly not on the plugin’s end, with the implementation of the code.

    I have been using this plugin just fine for months for two sites but all of the sudden, I noticed this error coming up when the Like button is pressed:

    [i]The application ID “60567011104″ specified within the “fb:app_id” meta tag was invalid.[/i]

    (Where 60567011104 is one of the site’s Facebook ID’s)

    It seems Facebook is now demanding the Application ID be passed along as a parameter, but since the plugin has that value disabled by default in the plugin’s admin interface, there is no way to pass the Application ID in the call.

    This is confirmed in version 1.0.5.

    Please advise.

  9. MobileGround says:

    Hello cballou :
    i have the same problem that Dave faced .. when i use the short codes its just appear
    [like_button] instead of the facebook button
    i have the latest plugin version 1.0.5

    1. Corey Ballou says:

      Thanks for the notice, I’ll let you know by email if I find a problem and get this resolved.

    2. Nina T says:

      I am trying to set up a new site, and having the same problem as others: when I use the shortcode [like_button] in a post I get EXACTLY that… no button, just the plain text.

  10. LKamms says:

    Thanks for your attempt to help me. I did what you said: ” I believe the value you are looking for is 93571392426. I would suggest determining the Facebook user account that runs the page and using their user id. After you have updated the fb:admin from the Me Likey settings page, you will need to “Like” the page with the login credentials of the Tropical Birding user.”

    I confirmed the user ID was the long # starting with 9
    i entered it into the console Me Likey settings
    I saved it.
    I went to a page and clicked LIKE and it took, but then the “1 person” disappeared again.

    I asked client to login to FB as account user, then Like a page.

    Same thing.

    Again, the odd thing is that this did work for me one time. It translated into a notification on my FB page.

    Anything else I can do? Many thanks…

    Laura

    1. LKamms says:

      Hi there,
      My client’s site is due to launch in a few days, so thought I’d make one more attempt to resolve the Me Likey button issue (described above) or I’ll have to delete this excellent idea of a plugin!

      If you are willing to offer me support, send me an email at laurakamms [ at ] gmail.com.
      Thank you very much!

  11. Matt says:

    Great plugin however we have a multi-site setup in wordpress 3.0 and would like to take away the option for the to select if they want to enable it per page/post. is it possible to take away the option in the post and page editor?

    Thanks!

    I realize this is a great option for most even myself but we just don’t want our lower level users to have this option.

    1. cballou says:

      Hey Matt,

      I’ll definitely take a look into adding this functionality in the next release.

      1. LKamms says:

        Can you tell me some reasons why the Like button will appear, but upon clicking, it will not register a ping in Facebook? The “1 Person” shows, stays for ten seconds, then disappears leaving the Like Button as it was.

        I added my client’s FB user name correctly, plus I used Thesis open hook to append the Header hook with language attributes code.

        <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes()

        Oddly enough, this worked last week for one day. I have not made any changes to the open hook or header since then. Re-inserting the code, and pressing the Little Save button did not make it refresh and suddenly work again.

        What can I check next? Thanks,

        Laura

      2. Corey Ballou says:

        Hey Laura,

        Let’s see if I can’t help you out. I viewed the source of your site and found that your fb:admin field is set incorrectly from the admin. The value is currently set as Tropical-Birding/93571392426?ref=ts but I believe the value you are looking for is 93571392426. Also, if this value does not work, I would suggest determining the Facebook user account that runs the page and using their user id.

        After you have updated the fb:admin from the Me Likey settings page, you will need to “Like” the page with the login credentials of the Tropical Birding user. Hope this helps.

  12. Peter says:

    Very nice plugin. The only problem I’ve found is that page titles with special characters (like swedish åäö) are not correctly posted to Facebook.
    Other FB-plugins have the same problem, but it really should be possible to solve or?
    Please HELP!

  13. Curtis says:

    Great plugin thanks! I notice that when a user “likes” a page, it creates a separate and new “Fanpage” that only I the administrator can see. Is there a way that all the “likes” on my whole site can be funneled to my main Fanpage?…is that articulate? not sure…:)

  14. Hiya,

    Pleased I moved to Me Likely; simply the best Like button solution I’ve found because you take care of the Open Graph / Facebook meta tags. Thanks for that!

    I think there may be an issue/bug with the most recent version though. In particular with the og:description property. It seems to be extracting code rather than a description.

    For example, for this page the meta tag reads;

    content="document.getElementById("post--blankimage").onload(); Related geeky posts:Matt Smith, as the Doctor, on the cover of Doctor Who magazine (17.782) Dr Who – Flesh and Stone – connected to the Time Wars game? (17.024) What role will the Eternal D"

    1. cballou says:

      Hey Andrew, I appreciate the bug report. It seems as though Me Likey is picking up on some tags from within your post content. I’m not exactly sure why it found these as opposed to the summary or description, but I’ll definitely have to take a look. In the meantime, I’ll also be resolving issues with entity encodings. I’ll keep you posted!

  15. Ryan says:

    Thanks for the plugin. However I noticed that even if I select to turn off show faces it keeps being set to “Yes”.

    1. cballou says:

      Ryan, thanks for the bug report. I’ll take a look at this in the evening and push an update.

  16. Frederick says:

    I like this plugin, I can’t wait to test it. Thank you

  17. Why is it that when I have this plugin set to see faces, the only one I can see is my own? I have a post here where 4 other people like it, but only my avatar is showing up. Here’s the link to the post I’m referring to:

    http://www.mommylivingthelifeofriley.com/2010/06/review-giveaway-powermat-home-office-mat-lose-cords-arv-170/

    Please let me know what I’m doing wrong. Thanks so much!

    1. cballou says:

      Hey Melissa, there are a couple of caveats to the “see faces” functionality which make it less than favorable in my opinion. Here is some information taken directly from the Facebook Developers page which may shed some light on why you don’t see any faces:

      “Since the content is hosted by Facebook, the button can display personalized content whether or not the user has logged into your site. For logged-in Facebook users, the button is personalized to highlight friends who have also liked the page.”

      To summarize, it seems as though they claim you’re only going to see profile pictures from your own personal friends group when you’re logged in to Facebook while visiting the page.

  18. DaveUrsillo says:

    Thanks for the update. Unfortunately I’m still having problems with the manual call. I’m not sure if it’s just me but I’m going to try some different things out.

    1. cballou says:

      Dave, perhaps you downloaded a cached copy of the update. If you’d be so kind could you let me know which method you used to upgrade:

      1. Downloaded the file directly from the blog post.
      2. Upgraded the plugin to 1.0.4 through your WordPress Admin plugins page.
      3. Downloaded the file from the WordPress Plugins site and manually installed.

      This should be very easy to resolve once I know this info.

  19. DaveUrsillo says:

    Beautiful. Thanks so much for your help and especially for the great work you put forth in offering this plugin to WordPress users.

    Dave

  20. Dave says:

    Hey mate,

    Thanks for this great plugin. Unfortunately, I’m having trouble using the shortcode [like_button]. When the plugin is set to Manual call and I use the shortcode in a blog post, the text “[like_button]” simply displays instead of the Facebook Like button.

    I’ve tried messing around with settings but to no avail. Any ideas?

    1. cballou says:

      Hey Dave,

      I found a discrepancy between the copy on the WordPress Plugins homepage and the gzipped file I offered on the site. I fixed the error and repackaged the files for you. A quick upgrade to version 1.0.4 should fix your shortcode issue. Sorry for the inconvenience!

Leave a Reply

Allowable tags
a, abbr, b, blockquote, cite, code, em, i, strike, strong, pre lang, line

* comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.