# console.facebook

> Send console messages using facebook chat api!

Latest version **1.0.0** (published 2016-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install console.facebook
pnpm add console.facebook
yarn add console.facebook
bun add console.facebook
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-04-19 |
| First published | 2016-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | khan |
| Maintainers | saaditkhan |
| Keywords | facebook, console.facebook, console.log |

## Links

- npm: https://www.npmjs.com/package/console.facebook
- Repository: https://github.com/saaditkhan/consolefacebook
- Homepage: https://github.com/saaditkhan/consolefacebook#readme
- Issues: https://github.com/saaditkhan/consolefacebook/issues
- npm.io page: https://npm.io/package/console.facebook

## Dependencies (1)

- [facebook-chat-api](https://npm.io/package/facebook-chat-api.md) ^1.1.0

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-04-19

## README

# 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](https://github.com/deecewan/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](https://github.com/saaditkhan/console-facebook). 

##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

---
_Source: https://npm.io/package/console.facebook · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
