Hello.
On the site I make a music album. I decided for each track to make the buttons "Like".
With a button from VKontakte, everything is very simple:
<div id="vk_like_[id]"></div> <script type="text/javascript"> VK.Widgets.Like("vk_like_[id]", { type: "mini", pageTitle: 'Заголовок', pageDescription: 'Мне понравился трек [trackname]'}, [track_id]); </script>
That is, what is the point, in the loop, you can create any number of containers with a unique ID
, and in the same cycle generate JS, send like
ID
to the ID
container you need and at the end we specify a 32-bit number (in our case, track_id
), which makes many like
buttons on one page unique.
In FaceBook, I can't figure out how to do this. Who has already done this, do not know how to do it?
Thank. :)