IFrames are Old School
<iframe src="https://www.facebook.com/plugins/like.php?href=YOUR_URL" scrolling="no" frameborder="0" style="border:none; width:450px; height:80px">
</iframe>
Switch over to XFBML Scripts for a Like Box, it will get you more likes. Just takes 3 easy steps.
Add the following code just below the <body>
<div id="fb-root"></div> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return; } js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=128405173935907"; fjs.parentNode.insertBefore(js, fjs); } (document, 'script', 'facebook-jssdk')); </script>
Add the following in the html tag like
<html xmlns:fb="http://ogp.me/ns/fb#">
Then lastly add the following where you want to place the like box
<fb:like href="<URL>" send="true" width="450" show_faces="true"></fb:like>
Send="true" // if you want the viewers to send the same link/page to their friends & spread your message







25 Nov 2011
Posted by Aals 

