Firebase Federated Identities - Signing in with Google and Facebook

Hi,

I’ve been trying to get Firebase to allow Google and Facebook logins, but I’m kinda stuck.

What I’ve done :

  1. Imported the Firebase SDK, Google Play Games SDK.
  2. Created Firebase project, added Google Play Games app.
  3. Coded and tested Firebase email/password account creation/authentication - its working.
  4. Followed step by step the Firebase Unity docs but got stuck at “Authenticate with Firebase” on Authenticate with Google on Android  |  Firebase Authentication

I’m not sure what to do with the sample code :

// Configure Google Sign In
        GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                .requestIdToken(getString(R.string.default_web_client_id))
                .requestEmail()
                .build();

Any help, pointers, tutorials on how to proceed would be much appreciated.

2 Likes

I’m in the same boat.
I currently sign in using GooglePlayGames so as to have access to leaderboards and achievements, however, I’d like to be able to save into the Firebase database hence I need to get this working as well.

This is my 2nd day on this. I’ll let you know how far I get

Hey guys, in the same boat here. Let you know if I find anything, have you guys had any luck?

same here in 2018

It might because your Web Client ID, but I’m not sure because we need config more thing to integrate firebase with facebook, google sdk for unity. You can try this asset Unity Asset Store - The Best Assets for Game Making