Nocturnal Parakeet Monitor
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    post_to_socialpublic

    PostToSocial

    A small module for posting images and statuses/tweets to social sites

    Usage

    npm install PostToSocial

    var facebook = require('PostToSocial').facebook()
    var twitter = require('PostToSocial').twitter("j8Z5sYGX1peJuyG4P5kCWQ", "lQ8yY6LqKd4XUjwYIsv3JsqCQbp1NTwMIyVNhb6dxk")
     
    facebook.postImage(status, imageUrl, userToken, function(err, facebookResponse){})
    facebook.postStatus(status, userToken, function(err, facebookResponse){})
     
    twitter.postImage(tweet, imageUrl, userToken, userSecret, function(error, twitterResponse){})
    twitter.postTweet(tweet, userToken, userSecret, function(error, twitterResponse){})

    Included Errors

      {type: "ImageUrlRequired", message: "imageUrl is a required parameter.", statusCode: 400},
      {type: "SocialAuthenticationRequired", message: "Author must be authenticated with the associated social network to perform this action.", statusCode: 400},
      {type: "TextRequired", message: "'text' is a required parameter.", statusCode: 400},
      {type: "MissingParameters", message: "This method requires more parameters.", statusCode: 400},

    Keywords

    none

    install

    npm i post_to_social

    Downloadsweekly downloads

    1

    version

    0.0.1

    license

    none

    last publish

    collaborators

    • avatar