1. First of all you need to configure your target page(where you want to direct public when they click your link on fb). Below are some instructions for the same:
Add this at top of the page:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd">
the above should start with proper '<' so that it would be like a tag in your page
you need to add following into the html tag:
xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr' xmlns:fb='http://www.facebook.com/2008/fbml' xmlns:og='http://opengraphprotocol.org/schema/'>
the following meta tags are needed to put in head of the page:
meta content='text/html; charset=utf-8' http-equiv='Content-Type'/>
meta content='Long description." ' name='description'/>
meta content='Facebook like, i like' name='keywords'/>
meta content='?' property='og:site_name'/>
meta content='admin_id' property='fb:admins'/>
meta content='must watch' property='og:title'/>
meta content='activity' property='og:type'/>
meta content='http://ia.media-imdb.com/images/M/MV5BMjI4NDQwMDM0N15BMl5BanBnXkFtZTcwMzY1ODMwNA@@._V1._SX95_SY140_.jpg' property='og:image'/>
meta content='myZone' property='og:site_name'/>
The meta tags needs to be started using proper '<', this blog doesnt allow me to show that the way they should be. Here admin_id is to be replaced by your fb profile id.
2. After configuring your target page, we need to add the like button in there. For that you have to visit facebook developers forums:
http://developers.facebook.com/docs/reference/plugins/like
here we should put the url to like... and set the standards for your like button, and have to get code from there.
Take the iframe code and put in your page(from where you want to like your target page{the target page and the page from where you want to like, could be same})
3. After this, the only one step you have to follow is to like this blog ;)