# react-facebook-auth-button

> Easy to use Facebook auth wrapper

Latest version **0.0.2** (published 2018-06-30) · 0 weekly downloads

## Install

```sh
npm install react-facebook-auth-button
pnpm add react-facebook-auth-button
yarn add react-facebook-auth-button
bun add react-facebook-auth-button
```

## 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.2 |
| Published | 2018-06-30 |
| First published | 2018-06-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 152.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | RepoGames |
| Maintainers | repogames |

## Links

- npm: https://www.npmjs.com/package/react-facebook-auth-button
- Repository: https://github.com/therepo90/react-facebook-auth-button
- Homepage: https://github.com/therepo90/react-facebook-auth-button#readme
- Issues: https://github.com/therepo90/react-facebook-auth-button/issues
- npm.io page: https://npm.io/package/react-facebook-auth-button

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^15.5.4
- [webpack](https://npm.io/package/webpack.md) ^2.6.1
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2

## Recent versions

- 0.0.2 (latest) — 2018-06-30
- 0.0.1 — 2018-06-30

## README

# react-facebook-auth-button
Easy to use Facebook auth wrapper

## Usage:

```jsx
import React, { Component } from 'react';
import FacebookAuth from 'react-facebook-auth-button';

class App extends Component {
  state = {
    loggedIn: false,
    fbLoaded: false
  }
  onFBLoad = loggedIn => {
    this.setState({ fbLoaded: true, loggedIn });
  }
  onStatusChange = loggedIn => {
    this.setState({ loggedIn });
  }

  render() {
    return (<FacebookAuth onLoad={this.onFBLoad} appId="Your facebook APP_ID" onStatusChange={this.onStatusChange} />);
  }
}

export default App;
```

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