Facebook Like-button

What's the HTML code for adding a Facebook like-button in a website ?
1 answer

html code for Facebook like-button

The following iframe tag can be added in the body of any page. One just have to replace the YOUR_URL part with the page you want people to like.

iframe src="http://www.facebook.com/plugins/like.php?href=YOUR_URL"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px">

don't forget to put the "<" sign in the beginning and to close the iframe tag at the end ( I couldn't do it here because it was not allowed )

Even if you don't have a website, this code can just make you like (in Facebook) any page or section of a page that don't have a like button. You just have to replace the YOUR_URL part with the URL you like, you add an html head and body to have a file you can open with Firefox or chrome, and then it will be ready to appear on your Facebook wall ( after you click it while being logged in of course ).