I use firebaseAuth to log in a user through FB. Here is the code
private FirebaseAuth mAuth; private FirebaseAuth.AuthStateListener mAuthListener; private CallbackManager mCallbackManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FacebookSdk.sdkInitialize(getApplicationContext()); // Initialize Firebase Auth mAuth = FirebaseAuth.getInstance(); mAuthListener = firebaseAuth -> { FirebaseUser user = firebaseAuth.getCurrentUser(); if (user != null) { // User is signed in Log.d(TAG, "onAuthStateChanged:signed_in:" + user.getUid()); } else { // User is signed out Log.d(TAG, "onAuthStateChanged:signed_out"); } if (user != null) { Log.d(TAG, "User details : " + user.getDisplayName() + user.getEmail() + "\n" + user.getPhotoUrl() + "\n" + user.getUid() + "\n" + user.getToken(true) + "\n" + user.getProviderId()); } }; }
The problem is that the photo I get from using user.getPhotoUrl () is very small. I need a larger image and cannot find a way to do this. Any help would be greatly appreciated. I already tried this. Get a larger facebook image through the firebase login but it doesnโt work, although they are for quick, I donโt think the api should be different.
android firebase firebase-authentication facebook-authentication
Gaurav sarma
source share