Globobeet / sociare-counter

NodeJS utility for getting share counts for a given url
MIT License
2 stars 2 forks source link

Facebook has shut down its share count API #13

Open joshlasdin opened 8 years ago

joshlasdin commented 8 years ago

At this point, with facebook & twitter shut down (the 2 arguably most important services), should sociare-counter become deprecated?

rrecuero commented 8 years ago

I believe there is still value in these signals that can be complemented with calls to FB and Twitter API for authenticated users. I would add Buffer to the networks list

export function getBufferShareCount(shareUrl, callback) {
  const url = 'https://api.bufferapp.com/1/links/shares.json';

  return jsonp(url + objectToGetParams({
    url: shareUrl,
  }), (err, data) => {
    callback(!!data ? data.shares : undefined);
  });
}