# console-facebook

> Send your console logs to a facebook user!

Latest version **0.0.3** (published 2016-04-19) · ISC 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; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-04-19 |
| First published | 2016-04-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | iamkhan |
| Maintainers | iamkhan |
| Keywords | console, facebook |

## Links

- npm: https://www.npmjs.com/package/console-facebook
- Repository: https://github.com/saaditkhan/console-facebook
- Homepage: https://github.com/saaditkhan/console-facebook#readme
- Issues: https://github.com/saaditkhan/console-facebook/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

## Recent versions

- 0.0.3 (latest) — 2016-04-19
- 0.0.2 — 2016-04-19
- 0.0.1 — 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 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 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._
