Socket
Book a DemoInstallSign in
Socket

socialsignals

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socialsignals

Enables easy access to the social media data for specific URLs from Facebook, Twitter and Google+

1.0.8
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Social Signals

NPM

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.

Installation

npm install socialsignals

Find this package at:

Methods

facebook(url, callback)

Fetches the facebook data for url.

Arguments
  • url The url to fetch Facebook social signals for
  • callback(err, data) A callback which is called after the operation is complete
Data
{
	total_count: 19109,
	like_count: 4756,
	comment_count: 4589,
	share_count: 9764,
	click_count: 1004
}

Examples

var social = require('socialsignals')

social.facebook('https://github.com/', function(err, signals){
	console.log(signals)
})

twitter(url, callback)

Fetches the Twitter data for url.

Arguments
  • url The url to fetch Twitter social signals for
  • callback(err, data) A callback which is called after the operation is complete
Data
{
	count: 44336
}

Examples

var social = require('socialsignals')

social.twitter('https://github.com/', function(err, signals){
	console.log(signals)
})

googleplus(url, callback)

Fetches the Google+ data for url.

Arguments
  • url The url to fetch Google+ social signals for
  • callback(err, data) A callback which is called after the operation is complete
Data
{
	count: 5498
}

Example

var social = require('socialsignals')

social.googleplus('https://github.com/', function(err, signals){
	console.log(signals)
})

License

Created by Justus Blümer

License: MIT

FAQs

Package last updated on 14 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.