Skip to content

therepo90/react-facebook-auth-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-facebook-auth-button

Easy to use Facebook auth wrapper

Usage:

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;

About

Easy to use Facebook auth wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published