L
L
Leonid Tsarev2010-01-01 21:59:56
In contact with
Leonid Tsarev, 2010-01-01 21:59:56

Find out the number of "likes" VKontakte

The question is the following, on the pages of the site there is a "Like" button from Vkontakte.
I would like to somehow automatically find out the statistics - which pages were liked and how many times.
This info should be in the site database.

It seems that you can find out like this:
vkontakte.ru/share.php?act=count&index=1&url=YOUR_URL
Returns
VK.Share.count(1, LIKE_COUNT);
But I really don’t want to do this for every page out of a thousand.
So far I see options:

  1. Periodically for each page (say, on every 10th load of each page) update the number of likes
  2. Reroute like through your script
  3. Somehow subscribe to like event in javascript


The problem with (2) and (3) is that I can't find out about the unlike in any way.

Maybe I'm missing something, and there is a magic call that will give me all the information at once?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
Leonid Tsarev, 2013-11-13
@leotsarev

Now everything is there: VK.Observer.subscribe('widgets.like.liked', update_likes); VK.Observer.subscribe('widgets.like.unliked', update_likes);

J
JeanLouis, 2010-01-02
@JeanLouis

Yes, there is no such magic call, you better report it to VKontakte support. I often see this question on the net, I think if everyone asks them this, they will somehow react.

I
ilya_compman, 2010-01-02
@ilya_compman

So far, VKontakte does not have such opportunities (unlike facebook), but as far as I know, the API should expand very soon, I think it's worth waiting for these times

V
voidus, 2011-05-12
@voidus

You can intercept the call to window.fastXDM.Server.callMethod and thus learn about likes and unlikes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question