Adding a Facebook Like button to your Wordpress blog is extremely simple and potentially a brilliant way to generate traffic. There’s no doubt the impact Facebook can have when releasing features and the new Like button is no different. Its expected it will make its way around the web incredibly quickly. You only need to look at the success of similar offerings, such as the TweetMeme Retweet button, which recently served 1.6 billion buttons in 30 days. And Facebook will no doubt see a greater uptake.
So, here’s how to add the Facebook Like button to your Wordpress blog:
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo get_permalink(); ?>&layout=button_count&show_faces=false&width=50&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:50px; height:px"></iframe>
That’s it. Well, almost. You need to drop this code into your Wordpress post template (generally single.php) or sidebar.php. The get_permalink tag tells Wordpress to add the current post URL to the Like button.