1.0.0 • Published 8 years ago

console.facebook v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

console-facebook

##Overview

This is a simple module to send your console messages to you or your friends facebook profile. Inspired by a friends package, similarly named console-slack.

I made this in an about an hour during a break between classes/tutorials as a fun little project to mess around with a hacked together facebook api that i found. It works pretty well. Only major issue is the login process requires username/password and can is fairly slow. Though I fixed slow login problem by limiting it to only happen once, as the login api is then stored within a user object which can be passed around.

Code available here.

##Example

var console-facebook = require('console-facebook');

var user = new console-facebook("email@gmail.com", "SUPERsecrectPASSWORD"); //your email/password combo

...
//after login process has finished
console.facebook("khabib chill this a test", user, "Tylor Stewart");

##Usage

###console.facebook(message, user, messageTo, cb)

  • message is a string/object to be sent
  • user user object with which you signed in
  • messageTo OPTIONAL: String name of person who you want to send message to. Defaults to sending message to yourself.
  • cb OPTIONAL callback which is called on nextTick