react-facebook-login-component
React Component that lets you instantly login through facebook platform
Last updated 3 years ago by koss-lebedev .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-facebook-login-component 
SYNC missed versions from official npm registry.

react-facebook-login-component

React Facebook Component to log users in through facebook

version MIT License

react-facebook-login-component is a module that easily lets you drop it into your existing project and get the benefits of Facebook Login. It's a plug and play component that'll fit in your workflow if your using standalone React or React with Redux.

You can find login with Google here

Up to date with the latest API Version

Usage

npm install --save react-facebook-login-component
import React from 'react';
import { FacebookLogin } from 'react-facebook-login-component';

class Login extends React.Component{

  constructor (props, context) {
    super(props, context);
  }

  responseFacebook (response) {
    console.log(response);
    //anything else you want to do(save to localStorage)...
  }

  render () {
    return (
      <div>
        <FacebookLogin socialId="yourAppID"
                       language="en_US"
                       scope="public_profile,email"
                       responseHandler={this.responseFacebook}
                       xfbml={true}
                       fields="id,email,name"
                       version="v2.5"
                       className="facebook-login"
                       buttonText="Login With Facebook"/>
      </div>
    );
  }

}

export default Login;

Current Tags

  • 0.9.2                                ...           latest (3 years ago)

9 Versions

  • 0.9.2                                ...           3 years ago
  • 0.9.1                                ...           3 years ago
  • 0.9.0                                ...           3 years ago
  • 0.8.0                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.2                                ...           4 years ago
  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (12)

Copyright 2014 - 2017 © taobao.org |