This tutorial online video demonstrates you how to login Firebase with your Facebook account. There are some steps as follows:
1. Insert firebase-auth library to your app’s create cradle
2. Open up Fb developer, produce a new android app with android package deal name acquiring from your android studio challenge.
3. Include Facebook library, app Id, deliver critical hashes and get Facebook application secret important.
4. Open Google Firebase Console, enable Fb and paste your Fb application magic formula
5. When pressing “login Facebook”, we should established some examine permissions: email, general public_profile, consumer_friends.Ssome callback capabilities exhibit you the output states:
– onSuccess: This get in touch with when user login Fb properly, you can get Fb access token from loginResult
– onCancel: contact when person reject login with Facebook
– onError: connect with when login failed.
6. Put into practice onActivityResult functionality following contacting Fb login
SUBSCRIBE TO CHANNEL: