Say I have a blogging site http://www.example.com using custom cms, and I want each content in the site to display a like button. I have been able to add a mod that inserts code snippets in each page, incliding the like code, but how do I go about differentiating the likes from each different post because as I recall, the facebook like code requires a src="http://www.example.com", how do I make the src value unique for each page like src="http://www.example.com/news/a_news.php". How do I achieve this…?
Say I have a blogging site http://www.example.com using custom cms, and I want each
Share
refer below URL to generate like button for your page.
http://developers.facebook.com/docs/reference/plugins/like/
Once you are done with settings get Code (SDK script + button code) which looks like below.
like button code for URL http://www.site.com/news/a_news.php
now you have to dynamically set up like button code for each link.
say for b_news.php button will be
for c_news.php button will be
you just have to change data-href= in like button and all set.