var $network = require('networks-module');
$network.init({
facebook: {
},
twitter: {
},
linkedin: {
}
});
$network.publish({
// required [facebook, twitter, linkedin]
network: 'facebook',
// The type of post
type: 'image',
// The description/message
message: 'test',
// Asset that this post is going to be published to
asset: {}
}).then(function (respond, warning) {
//
}, function (error) {
//
});