React native facebook auth

If you want to use Facebook authorization in your react native application you have to configure your facebook application at . You should add Android sign in and 2 important parameters. First one — Google Play Package Name and second — Key Hashes. There are no any questions with first one. But how to find second one? Let me describe it.

First of all you should go to your Google play developer console and open Setup-App Integrity and copy SHA-1 certificate fingerprint for App signing key certificate and after that convert this hex value to base64. For example you can do it with this link. And that is it.

I prefer to use expo facebook library to simplify integration. For exaple this is my react hook.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Viacheslav Volkov

JS Developer from London, UK. Working with React, React Native and Typescript. My russian blog