1.0.6 • Published 5 years ago
socialall v1.0.6
SocialAll
SocialAll API library for Node.js
Note: SocialAll is an unified API for 15+ popular social networks that supports social login, posting (supported video & photo), messaging and friends inviting.
Installation
$ npm install socialallGo to SocialAll and register an application for free.
Usage
var SocialAll = require('socialall')
, sa = new SocialAll(app_id, secret_key);
console.log(sa.getLoginUrl('facebook', 'http://yourdomain.com/callback'));API
sa.getLoginUrl(network, callback_url)network--string-- see networkscallback_url--string- returns
stringlogin url
sa.getUser(token, callback)token--stringcallback--function(err, user)
sa.getFriends(token, callback)token--string-- token given by SocialAllcallback--function(err, friends)
sa.postStream(token, message, callback)token--stringmessage--stringcallback--function(err)
sa.sendMessage(token, message, friends, title, callback)token--stringmessage--stringfriends--array-- list of friend's IDstitle--stringcallback--function(err)
Networks
- disqus
- foursquare
- github
- lastfm
- live
- mailru
- plurk
- tumblr
- vkontakte
- wordpress
Bugs and Issues
If you encounter any bugs or issues, feel free to open an issue at github.