fb-continue-as-button-react

fb-continue-as-button-react JS library on GitHub fb-continue-as-button-react JS library on npm Download fb-continue-as-button-react JS library

Facebook "continue as button" with profile pic image in React

Version 1.0.4 License ISC
fb-continue-as-button-react has no homepage
fb-continue-as-button-react JS library on GitHub
fb-continue-as-button-react JS library on npm
Download fb-continue-as-button-react JS library
<script type="module"> import fbContinueAsButtonReact from 'https://cdn.jsdelivr.net/npm/fb-continue-as-button-react@1.0.4/+esm' </script>
Learn more

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