Code Snippet
Facebook “Like” Button for WordPress
Some very easy copy-and-paste code here to add to the template for blog posts to allow for Facebook "liking" of the article. Probably best in the single.php template underneath where it outputs the content of the post.
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo rawurlencode(get_permalink()); ?>&layout=standard&show-faces=true&width=450&action=like&font=arial&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" id="facebook-like"></iframe>
Consider the possibility of Deceiving users with the Facebook “Like” button: http://bit.ly/cUafIz – by @arnabdotorg
Here’s the WordPress plugin:
http://wordpress.org/extend/plugins/like
An honest one that does not deceive users.
Thanks for this article. I like this :D
I found official docs here http://developers.facebook.com/docs/reference/plugins/like
I recently updates the information on the Reference URL. It contains a link to a great WP plugin and here’s how to add FB comments w/ the like button: http://media-sprout.com/add-facebook-comments/
Trying to use the Facebook Javascript SDK (as opposed to iframe) and at first everything seemed fine….
Then today had a a friendly heads-up from somebody using IE 7 or 8… who couldn’t even load up my site without browser crash.
Fixed some issues loading the SDK after the opening body tag but the facebook code doesn’t validate and crashes IE6.. seems so crummy, is iframe a better way to go?
short and simple just as I like it! :)
me to, cheers Chris yet again for a very useful snippet
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.