# find-facebook-id

> [![npm version](https://badge.fury.io/js/find-facebook-id.svg)](https://badge.fury.io/js/find-facebook-id) [![CircleCI](https://circleci.com/gh/pradel/find-facebook-id.svg?style=svg)](https://circleci.com/gh/pradel/find-facebook-id)

Latest version **0.2.0** (published 2017-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install find-facebook-id
pnpm add find-facebook-id
yarn add find-facebook-id
bun add find-facebook-id
```

Provides the command `find-facebook-id`.

## 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.2.0 |
| Published | 2017-04-12 |
| First published | 2017-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Pradel Léo |
| Maintainers | leo-pradel |

## Links

- npm: https://www.npmjs.com/package/find-facebook-id
- Repository: https://github.com/pradel/find-facebook-id
- Homepage: https://github.com/pradel/find-facebook-id#readme
- Issues: https://github.com/pradel/find-facebook-id/issues
- npm.io page: https://npm.io/package/find-facebook-id

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.81.0

## Recent versions

- 0.2.0 (latest) — 2017-04-12
- 0.1.1 — 2017-04-12
- 0.1.0 — 2017-04-12
- 0.0.2 — 2017-04-12
- 0.0.1 — 2017-04-12

## README

# find-facebook-id

[![npm version](https://badge.fury.io/js/find-facebook-id.svg)](https://badge.fury.io/js/find-facebook-id)
[![CircleCI](https://circleci.com/gh/pradel/find-facebook-id.svg?style=svg)](https://circleci.com/gh/pradel/find-facebook-id)

Find a facebook id given a Facebook name.

Support:
- users
- pages
- groups (You will need a valid facebook access token)

### Install
```
yarn add find-facebook-id
npm i --save find-facebook-id
```

### Usage
```javascript
import findFacebookId from 'find-facebook-id';

// Find facebook id return a promise

const id = await findFacebookId('zuck');

findFacebookId('zuck').then((id) => {
  console.log(`facebook id of zuck is: ${id}`);
}).catch((err) => {
  console.log(err);
});

// To query a group you must pass a valid facebook access token
findFacebookId('groupsatopenuniversity', facebookAccessToken).then((id) => {
  console.log(`facebook id of groupsatopenuniversity is: ${id}`);
}).catch((err) => {
  console.log(err);
});
```

### Cli
Install:
```
yarn global add find-facebook-id
npm i -g find-facebook-id
```

Usage:
```
$ find-facebook-id <username/pagename>
$ find-facebook-id <groupname> <facebook-access-token>
```

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