This module enables easy access to the social media metrics publicly provided by
- Facebook
- Likes
- Shares
- Comments
- Clicks
- Twitter
- Occurrences of a URL in tweets
- Google Plus
- +1s
Getting facebook like counts with nodejs is easier than ever.
npm install socialsignals
Find this package at:
- Github: https://github.com/justusbluemer/socialsignals
- npm: https://www.npmjs.com/package/socialsignals
Fetches the facebook data for url
.
url
The url to fetch Facebook social signals forcallback(err, data)
A callback which is called after the operation is complete
{
total_count: 19109,
like_count: 4756,
comment_count: 4589,
share_count: 9764,
click_count: 1004
}
var social = require('socialsignals')
social.facebook('https://github.com/', function(err, signals){
console.log(signals)
})
Fetches the Twitter data for url
.
url
The url to fetch Twitter social signals forcallback(err, data)
A callback which is called after the operation is complete
{
count: 44336
}
var social = require('socialsignals')
social.twitter('https://github.com/', function(err, signals){
console.log(signals)
})
Fetches the Google+ data for url
.
url
The url to fetch Google+ social signals forcallback(err, data)
A callback which is called after the operation is complete
{
count: 5498
}
var social = require('socialsignals')
social.googleplus('https://github.com/', function(err, signals){
console.log(signals)
})
Created by Justus Blümer
License: MIT