# facebookloginlibrary

> Facebook login library

Latest version **1.0.5** (published 2020-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install facebookloginlibrary
pnpm add facebookloginlibrary
yarn add facebookloginlibrary
bun add facebookloginlibrary
```

## 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.5 |
| Published | 2020-08-17 |
| First published | 2020-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Denis Fedorovici |
| Maintainers | denfedweb |
| Keywords | facebook, facebook login, facebook api |

## Links

- npm: https://www.npmjs.com/package/facebookloginlibrary
- Homepage: https://github.com/denfedweb/facebookLogin
- npm.io page: https://npm.io/package/facebookloginlibrary

## 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.5 (latest) — 2020-08-17
- 1.0.4 — 2020-08-17
- 1.0.3 — 2020-08-17
- 1.0.2 — 2020-08-17
- 1.0.1 — 2020-08-17
- 1.0.0 — 2020-08-17

## README

# Facebook login libraty

## Installation

Using npm:
```shell
$ npm i -g npm
$ npm i --save facebookloginlibrary
```

Using yarn: 
```shell
$ yarn add facebookloginlibrary
```

Options: 
```js
{
  appId: "your-app-id",
  cookie: true,
  version: "v7.0"
}
// example
import facebookloginlibrary from "facebookloginlibrary";

const fcb = facebookloginlibrary({
  appId: "your-app-id",
  cookie: true,
  version: "v7.0"
});

fcb.init();

document.getElementById('facebook-button').addEventListener('click', async ()=> {
  const loginResponse = await fcb.logInWithFacebook();
});

```

In Vue.js:
```js
<script>
  import facebookloginlibrary from "facebookloginlibrary";

  export default {
    name: "App",
    data: function(){
      return {
        fcb: null
      }
    },
    components: {},
    computed: {},
    methods: {
      facebookButtonHandler(){
        this.fcb.logInWithFacebook().then(res=>{
          console.log(res);
        });
      }
    },
    created() {
      this.fcb = facebookloginlibrary({
        appId: "your-app-id",
        cookie: true,
        version: "v7.0"
      });

      this.fcb.init();
    }
  };
</script>
```

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