Description
React Facebook Login is a React component for adding a Facebook login button to a React app. You install it with yarn or npm, and your application also needs react and react-dom. The README shows a basic button with styling, and a version with no styling that uses a render prop. The render function receives onClick, isDisabled, isProcessing and isSdkLoaded, so you can draw the button yourself and leave all styling to your own CSS. By default the button includes Font Awesome icons. If you do not want them, you can pass your own element through the icon attribute, either a Font Awesome icon or custom markup, and set a custom CSS class. The default permission request is public_profile, and the README explains how to request a custom permission. A development section explains how to run the demo on localhost port 8080. The project is public on GitHub under the keppelen account, and it is aimed at React developers who need a Facebook sign-in button.…
Highlights
- Facebook login button for React
- Styled default button
- Render prop for a fully custom button
- Custom CSS class and icon
- Custom permission requests
Ratings & Reviews
No ratings yet
Be the first to rate react-facebook-login.
People also visit

react-simple-oauth2-login
A React Component for OAuth2 Login - adapted from react-github-login
react-facebook-login FAQ
What is React Facebook Login?
A React component that adds a Facebook login button to a React app.
How do I install it?
Run yarn add react-facebook-login or npm install react-facebook-login. Your app also needs react and react-dom.
Can I style the button myself?
Yes. The render prop version has no CSS and passes onClick, isDisabled, isProcessing and isSdkLoaded to your render function.
Which permissions are requested by default?
Only public_profile. The README explains how to set a custom permission.
Is it open source?
Yes. The source is public on GitHub under keppelen.
What are the best react-facebook-login alternatives?
Popular alternatives to react-facebook-login include react-facebook-auth, react-simple-oauth2-login and @react-oauth/google. See all react-facebook-login alternatives



















