Answer the question
In order to leave comments, you need to log in
How to get the number of links shared in Mail.ru (My World)?
Good time.
There is such a code for getting the number of shares of a link in a social network. My World networks:
var url = encodeURIComponent(location.href);
$.getJSON('http://connect.mail.ru/share_count?url_list=' + url + '&callback=1&func=?', function(response) {
$('a.mail_ru .counter').text(response[url].shares);
});
Uncaught TypeError: Cannot read property 'shares' of undefined
http://connect.mail.ru/share_count?url_list=http://vk.com&callback=1&func=?
?({
"http:\/\/vk.com":{"shares":12372,"clicks":413}
});
Answer the question
In order to leave comments, you need to log in
Found a solution here: https://github.com/enjoyiacm/goodshare.js/blob/mas...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question