This is a simple code that I made for my site, but bring them if they need it ... what it does is, it adds to any page you like add the code, without changing anything. <?php function like(){ function url() { return 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; } $url = url(); [hide]return '<iframe src="http://www.facebook.com/plugins/like.php?href='.$url.'&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>'; } echo like(); ?> PHP: you can include on each page using this code, keeping the above code in a file called like.php <?php include("like.php"); ?> PHP: