Easily get social share counts for a url.
Socialcount.get("facebook", "http://github.com", function (count) {
console.log(count); // 11111
});Socialcount.all("http://github.com", function (counts) {
console.log(counts); // { facebook: 11111, pinterest: 6, google: 10000, linkedin: 795 }
});Get share count for url from provider (currently facebook, pinterest, google, and linkedIn.)
Get all share counts for url from available providers, counts is an
object with the providers as keys and the counts as values.
Get share count for window.location from provider (currently facebook, pinterest, google, and linkedIn.)
Get all share counts for window.location from available providers, counts is an
object with the providers as keys and the counts as values.
- Remove Twitter count, https://blog.twitter.com/2015/hard-decisions-for-a-sustainable-platform
- Add LinkedIn as a provider.
- Add UMD so project can be used as AMD module.
- Add Google Plus as provider
google.
- If called without a url, use
window.location
- Ola Holmström (@olahol)
- Filip Danisko (@filipdanisko)
MIT