0.0.1 • Published 8 years ago
iamkhan v0.0.1
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.
##Example
var user = new fb("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 sentuser
user object with which you signed inmessageTo
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
0.0.1
8 years ago