I am using a firebaseUI multiple login all buttons are generating except Facebook Builder().build()
How to inflate that button
I am using a firebaseUI multiple login all buttons are generating except Facebook Builder().build()
How to inflate that button
add the list of supported providers as follows :
List<AuthUI.IdpConfig> providers = Arrays.asList(
new AuthUI.IdpConfig.GoogleBuilder().build(),
new AuthUI.IdpConfig.FacebookBuilder().build(),
new AuthUI.IdpConfig.TwitterBuilder().build(),
new AuthUI.IdpConfig.PhoneBuilder().build());
and then you create the sign in intent :
Intent intent = AuthUI.getInstance()
.createSignInIntentBuilder()
.setAvailableProviders(providers)
.build();
call startActivityForResult() with 'intent'
Edit :
You need to add the following dependencies to your app level gradle file :
implementation 'com.firebaseui:firebase-ui-auth:6.2.1'
implementation 'com.facebook.android:facebook-android-sdk:5.15.1'
Note that you don't need the firebase auth dependency because it's included in the firebase-ui dependency