I have a list of links, and on every single page there is a “like” button to “like” that page. But I want a “like” button next to each link in the list that will like the URL of the link next to it (just like if you clicked on the link and then the “like” button).
How should I do it?
To create a button on each individual page, I use the following code:
<script>
window.fbAsyncInit = function()
{
FB.init({appId: '*****', status: true, cookie: true, xfbml: true});
};
</script>
<div class="share_button btn_fb">
<fb:like layout="button_count" font="tahoma"></fb:like>
</div>
source
share