soclalldeprecated

SoclAll API for Node.js

Usage no npm install needed!

<script type="module">
  import soclall from 'https://cdn.skypack.dev/soclall';
</script>

README

SoclAll

SoclAll API library for Node.js

Installation

npm install soclall

Go to SoclAll and register an application for free.

Usage

var SoclAll = require('soclall')
  , s = new SoclAll(app_id, secret_key);

console.log(s.getLoginUrl('facebook', 'http://yourdomain.com/callback'));

API

getLoginUrl(network, callback_url)
  • network -- string -- see networks
  • callback_url -- string
  • returns string login url
getUser(token, callback)
  • token -- string
  • callback -- function(err, user)
getFriends(token, callback)
  • token -- string -- token given by SoclAll
  • callback -- function(err, friends)
postStream(token, message, callback)
  • token -- string
  • message -- string
  • callback -- function(err)
sendMessage(token, message, friends, title, callback)
  • token -- string
  • message -- string
  • friends -- array -- list of friend's IDs
  • title -- string
  • callback -- function(err)

Networks

  • facebook
  • twitter
  • google
  • linkedin
  • live
  • plurk
  • tumblr
  • mailru
  • reddit
  • lastfm
  • vkontakte
  • disqus
  • wordpress
  • foursquare
  • github

Bugs and Issues

If you encounter any bugs or issues, feel free to open an issue at github.

Credits

SandKlock