Answer the question
In order to leave comments, you need to log in
How do I clear the "Tell Friends" counter?
Attention! The question does not fully reveal the essence of the problem. It's not about the standard widget. Therefore, it is necessary to read a couple more sentences.
The task was the following: it is necessary to implement "custom" buttons of social networks. "Ok, Google..." brought us here . Everything is chewed in detail, so there were no problems in implementation.
Now let's focus on the js code of the share function from VKontakte, which is responsible for returning the number of these same publications by users.
pageuri = 'http%3A%2F%2Ftest.ru';
VK = {};
VK.Share = {};
VK.Share.count = function (index, count) {
$('.vk span').text(count);
};
$.getJSON('https://vk.com/share.php?act=count&index=1&url=' + pageuri + '&format=json&callback=?');
Answer the question
In order to leave comments, you need to log in
I did not understand anything, but try to make a link like http://site.ru/?v=1
, where v=1 is the version of the current reset.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question