Firebase Facebook Login and Firebase Google Login
This repository has module to implement Firebase Social Login.
import Module by clicking on File-> New -> Import Module
include in your App level Gradle
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation project(path: ':loginwithgoogle_facebook_from_firebase')
call below code in your LoginActivity
LoginButton loginButton=findViewById(R.id.fbLogin_Buttin_ID);
new FacebookFIrebaseLogin(mActivity, loginButton, new ResponceClass() {
@Override
public void updateUI(FirebaseUser user) {...}});
Make sure you have google-services.json file download from Firebase console.
This demo Android app demonstrates authenticating with Firebase Login for Facebook, Google, Twitter, email & password, and anonymous.
-
Sign up and create a new Firebase.
-
Create apps for each provider on their developer consoles. See the Firebase authentication provider docs for more details.
-
Enable Facebook, Google, Twitter, Email, and Anonymous providers on the Firebase Dashboard for your app. See the enabling providers section of the Firebase user authentication docs for more details.
-
Populate all of the values in
res/values/keys.xml
.