Skip to content

HemantSharmaDevloper/Login_with_Facebook_google_firebase

Repository files navigation

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.

Firebase Login Demo for Android

This demo Android app demonstrates authenticating with Firebase Login for Facebook, Google, Twitter, email & password, and anonymous.

screenshot showing authentication provider buttons

Setup

  1. Sign up and create a new Firebase.

  2. Create apps for each provider on their developer consoles. See the Firebase authentication provider docs for more details.

  3. 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.

  4. Populate all of the values in res/values/keys.xml.

About

Integrating Facebook and Google Login from Firebase android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages