facebook-continueAs-react
Usage:
import FBbutton from 'facebook-continueAs-react';
FBbutton = FBbutton('YOUR_API_KEY');
const style = {
position: 'absolute',
bottom: '20px',
left: 'calc(50% - 132px)'
};
// In your render function
<FBbutton style={style} href='/oauth/facebook' preventDefault={true}>
Props:
- style (optional): Style object to apply to the element
- href (optional): String where you want the user to be redirected
- onClick (optional): Function to execute on click
- preventDefault (optional): Boolean, true to not trigger the default event of the fb button