Add a Facebook “Like” Button on your site

Adding a Facebook Like Button is fairy easy but for every page one has to
manually add a unique url in the code. It may be fine if you just want to add
the fcebook like button on your home page but if you have many pages on site it
may be difficult here is the solution

Add Facebook like Button with Java script on static page This will
dynamically add the url of the page in the facebook like button code using java

Just copy & paste the code below on any page or in your header or footer.
This is fine for any php or static page

Adding the facebook like button in CGI/Perl specially for dynamic sites using
header & footer in CGI

You are free to use this code any where you can modify change or distribute
this in any way you like