React Facebook Authentication
Component for facebook authentication based on this repository
Example
;;; const response = { console;} const fbBtn = { return <button onClick=onClick>Login with facebook</button>} ReactDOM;
Component example
;; Component { superprops; thisresponse = thisresponse; }; { // Send the token to the server and link the account console; }; { return <FacebookLogin appId="1099597531133376" component= { return <button onClick=onClick>Login with facebook</button> } fields="name,email,picture" callback=thisresponse /> } ;
Parameters
params | value | default value |
---|---|---|
appId | string | Required |
scope | string | public_profile, email, user_birthday |
fields | string | name,email,picture |
callback | function | resultFacebookLogin |
autoLoad | boolean | false |
xfbml | boolean | false |
reAuthenticate | boolean | false |
btnText | string | The text of the button |
btnClassName | string | Class name for the default button |
version | string | 2.3 |
language | string | en_US |
component | function | The button used for the auth |