I
I
Ivan Churkin2015-03-10 00:57:48
In contact with
Ivan Churkin, 2015-03-10 00:57:48

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=?');

Everything is OK, it works as it should. pageuri in this case is a unique field, we change the character (or add a slash to the end), as the counter is reset to zero (returning to the previous pageuri returns the same result as before the change, which is understandable in principle).
That's actually the question. How to reset the counter for a specific pageuri (or url-address in Russian). Is there a way to change a certain page_id , but not for the standard “Like” widget from VKontakte, but for my “solution”.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2015-03-10
@ivanchurkin

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 question

Ask a Question

731 491 924 answers to any question