Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fb login npm

import React from 'react';
import ReactDOM from 'react-dom';
import FacebookLogin from 'react-facebook-login';
import TiSocialFacebookCircular from 'react-icons/lib/ti/social-facebook-circular';

const responseFacebook = (response) => {  
console.log(response);}
ReactDOM.render(  
	<FacebookLogin 
		appId="1088597931155576" 
		autoLoad={true}   
		fields="name,email,picture"  
		callback={responseFacebook}   
		cssClass="my-facebook-button-class"  
		icon={<TiSocialFacebookCircular />}  />, 
document.getElementById('demo'));
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #fb #login #npm
ADD COMMENT
Topic
Name
1+4 =