How can I retrieve a photo of the user with decent resolution that can be used from a mobile app? I looked at the guides and the api docs and the recommended way seemed to b
Inside onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth)
Try If you login with Facebook:
if (!user.getProviderData().isEmpty() && user.getProviderData().size() > 1) String URL = "https://graph.facebook.com/" + user.getProviderData().get(1).getUid() + "/picture?type=large";