# react-fb-signin

> Login with Facebook component

Latest version **0.0.3** (published 2020-05-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-fb-signin
pnpm add react-fb-signin
yarn add react-fb-signin
bun add react-fb-signin
```

## 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 | 2020-05-19 |
| First published | 2020-01-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Om Vaishnav |
| Maintainers | omvaishnav |

## Links

- npm: https://www.npmjs.com/package/react-fb-signin
- Repository: https://github.com/omvaishnav/react-fb-signin
- Homepage: https://github.com/omvaishnav/react-fb-signin#readme
- Issues: https://github.com/omvaishnav/react-fb-signin/issues
- npm.io page: https://npm.io/package/react-fb-signin

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.13.1
- [webpack](https://npm.io/package/webpack.md) ^4.43.0

## Recent versions

- 0.0.3 (latest) — 2020-05-19
- 0.0.2 — 2020-01-11

## README

# react-fb-signin
Login with Facebook (React Component)

## Installation
```sh
npm install react-fb-signin
```

## Usage
```js
import React from 'react';
import FBLogin from 'react-fb-signin';

class App extends React.Component {
    fbLoginSuccess = (props) => {
        console.log('success', props)
    }

    fbLoginFailure = (props) => {
        console.log('error', props)
    }
    
    render(){
        return (
            <FBLogin
                appId="<your_app_id>"
                fields="email,name,birthday"
                successCallback={this.fbLoginSuccess}
                failureCallback={this.fbLoginFailure}
            >
                Login with Facebook
            </FBLogin>
        )
    }
}

export default App;
```
*Note:** 
    1. Don't forget to replace "<your_app_id>" with your facebook app id.
    2. Add in fields parameter whichever permission you want from the users.

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