How to handle callback of the button "like" the site Vkontakte?

0 like 0 dislike
4 views
There is a situation: on the page there are several buttons "I like" and you need to make some action if the user clicked on it, but the standard callback API Vkontakte returns only the number of votes, I don't know why it was made and to reach out to developers like there is no way.


Please tell me how else might this event be processed.
by | 4 views

6 Answers

0 like 0 dislike
you have some option buttons? then for each different generated code is just an iframe, where the high table with id = "vk_like", well it is elementary that generate using JQuery you can hang
\r
.on('click', function() { //code } 

or I did not understand your question
by
0 like 0 dislike
understood, and Yes, there all frames missed.
you need for each button a separate action to do?
by
0 like 0 dislike
Does not handle. This is done so that a user clicking on a known and understood "Like" not subscribed to the list about the increase in bodies.
by
0 like 0 dislike
In this case, the decision — only on timeout to pull vk.com/developers.php?oid=-1&p=likes.getList with a different item_id. The benefit of the access_token is not needed.
by
0 like 0 dislike
Guys, the easiest way to Support unsubscribe.
by
0 like 0 dislike
Put each button in a separate iframe with nothing in it except this button. When it comes to the callback, look at the name of the frame in which he came, and the called function, which lies in the parent frame, passing it the name of the frame.
by
110,608 questions
257,186 answers
0 comments
32,707 users