Connecting the entire world of Facebook users to your blog post in a matter of seconds using the new Facebook “like” button. We’ve all used the like button on comments, photos, and video on Facebook, but now you can use it on your own website! In this screencast tutorial let’s look at how to get the new Facebook “Like” button up and running on your cool WordPress blog and/or website. This will make you the hippest hipster ever!
WordPress – paste this code where you would like the button to appear.
<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>
Other websites – paste this code where you would like the button to appear and
replace “http://yourwebsiteaddress.com” with the URL of your page.
<iframe src="http://www.facebook.com/plugins/like.php?href=http://yourwebsiteaddress.com
&layout=standard&show-faces=true&width=450&action=like&font=arial&colorscheme=light"
scrolling="no" frameborder="0" allowTransparency="true" id="facebook-like"></iframe>
Add the CSS to your main stylesheet.
iframe#facebook-like { border:none; overflow:hidden; width:450px; margin: 0 0 -100px 0; padding: 0; }
Latest Posts
Cool Finds
- 10 Useful iPhone Shortcuts, Tips and Tricks
- Transfer Big Files Circumvents iPhone Upload Limits [Downloads]
- Libox Syncs and Streams Your Media Collection Just About Anywhere [Downloads]
- Chrome to iPhone Sends Links to your iOS Device from Chrome [Downloads]
- Google Mobile Brings True iPhone Push Notifications for Gmail and Google Calendar [Downloads]
- AirDropper Requests Files via Email and Saves to Your Dropbox [File Sharing]
- How a 16-yo Kid Made His First Million Dollars Following His Hero, Steve Jobs [Stories]
- Turn a Sheet of Paper into a Simple Flash Softbox [DIY]
- How to Migrate Your Entire Google Account to a New One [Data]
- Ten Laws to Design By

Hey Brandon,
I was wondering if you knew how to add the “like” button to tumblr posts like you showed how to do in wordpress posts in this tutorial.
You could try replacing “http://yourwebsiteaddress.com” in the Other websites code with:
{url}
or
{Permalink}
Let me know if that works or doesn’t work…
I wrote a plugin that makes this much easier and offers a live preview in the wordpress settings while you play with the different options. http://bit.ly/awqa5C
Hey Brandon, I watched this video and the php coding really helps. Just one question.
Have you seen those like button that after you like it and you hover the button, a small pop up appears allowing you to type something.
It’ll be great if you can have a video tutorial on how to achieve that. You can take a look at Flixster.com to see the effect.
Look forward to your next video and thanks again! =D
I think the space in the bottom of the iframe is because there is true value of the show-faces variable. This shows avatars of Facebook profiles under the Like button.
This is such a great way to get some extra traffic, and because Facebook is so big it just makes it even better! Thanks for the share buddy