After hours of searching and trying many techniques I have found the snippet of code you need to easily add the Facebook recommend button to every page of a dynamicly generated page. Should work with Joomla, Wordpress, Drupal and any other PHP based CMS.
Here is the code you need to paste: <iframe src="http://www.facebook.com/widgets/like.php?href=<?php echo "http://" . $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>&layout=button_count&show_faces=false&width=110&action=recommend&font=tahoma&colorscheme=light&height=30"
scrolling="no" frameborder="0" style="border:none; width:125px; height:30px" allowTransparency="true"></iframe>
This is the code I have used on this page to get the "Recommend" button in the top right hand side of the article below the star rating. Let me know if you have any trouble getting it to work.


