The "deadly way to automatically generate" similar "links for your site (which I recently implemented, so I know it works) would be to simply generate the" href "parameter, which (facebook) like.php reads from the iframe source. Just create the code iframe using thingie widget and use PHP to dynamize the href parameter:
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode($url); ?>%2F&layout=button_count&show_faces=false&width=50&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:75px; height:21px;" allowTransparency="true"></iframe>
You can customize it to a limited extent, just look at the list of attributes right below the button creation widgets.
Using fbml (which I'm too lazy to include, and somewhat reluctant due to the fact that I would have to include some more library):
<fb:like width="200" show_faces="no" href="<?php echo $url; ?>"></fb:like>
Here is a sample list of examples: http://fbrell.com/xfbml/fb:like
karim79
source share