Hello. In my project I use samopisnye share-buttons. Until recently, to get the facebook counter, I used the following construct:

var counterUrl = 'https://graph.facebook.com/fql?q=SELECT+total_count+FROM+link_stat+WHERE+url%3D%22' + encodeURIComponent(url) + '%22&callback=?'; $.getJSON(counterUrl, function (response) { ... }); 

Now facebook says that this method is outdated, returning an error to the request:

 (#12) fql is deprecated for versions v2.1 and higher 

Tell me, please, what other method of getting the number of share links exists?

    1 answer 1

    Currently working method without unnecessary fields in the answer: https://graph.facebook.com/?id= + YOUR_URL + &fields=share{share_count}