With over 500 million active users, Facebook is a giant in the Internet sphere. It’s not surprising to see more and more websites and blogs placing Facebook like buttons on their sites to get more visitors and exposure. Placing a Facebook like button on your web page allows people to like your page and share it with their Facebook friends. It’s pretty simple to add one to your site and I’ll show you how to do it in a few simple steps.
This is what your button will look like. Firstly you need to figure out where you would like to place your button on your web page. You then copy and paste the following code snippet into your HTML and be sure to replace the sample URL with your own web page URL.
<iframe src="http://www.facebook.com/plugins/like.php?href=http://sample.com &layout=standard&show-faces=true&width=450&action=like&font=arial&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" id="facebook-like"> </iframe>
If you have a WordPress blog then you could replace the sample URL with the following code which will get the current URL of your page.
<?php echo rawurlencode(get_permalink()); ?>