-
-
Notifications
You must be signed in to change notification settings - Fork 37
Firebase and Facebook Authentication Configuration
-
Go to https://console.firebase.google.com and Add Project
-
Go to the settings page for the project's default app
-
Find the configuration values on the page and paste them into a
firebase/config.js
file (see firebase/config.js.example for the format)
-
From the Firebase console, go to the Authentication section
-
Go to the Sign-in method tab
-
Click to edit the Facebook row and enable it
-
Find the OAuth Redirect URI and copy it
-
Go to https://developers.facebook.com/apps and Add a New App
-
Add the
Facebook Login
Product -
Choose the Web product
-
Add a site URL (I don't think the URL matters--you can just use https://plogalong-th-dev.firebaseapp.com/)
-
Edit the Settings for the Facebook Login product
-
In
Valid OAuth Redirect URIs
paste the OAuth Redirect URI you copied in step 4 and clickSave Changes
-
Under Basic settings for the Facebook app itself (not the Facebook Login product), click Add Platform and choose Android
-
In the Android settings, add the key hash mentioned here into the Key Hashes field
-
Add the iOS platform (the same way you did with Android)
-
In the iOS settings, add
host.exp.Exponent
as the Bundle ID (as mentioned in the Expo docs in Step 12) -
Click Save Changes
-
In firebase/config.js, add the Facebook App ID (see firebase/config.js.example for the format)