Autenticação FirebaseUI com o Facebook não está funcionando

Estou usando FirebaseUI-Authentication . Fazer login com um e-mail ou uma conta do Google é bem-sucedida, mas fazer login com o Facebook não funciona. onActivityResult() não é chamado depois que a atividade AuthUI foi iniciada e tentou fazer login com o Facebook. Após a tentativa de início de session, o aplicativo está preso na window de cairregamento. Logcat produz um log FirebaseApp:

Notificando auditores de mudança de estado de background.

No painel do aplicativo do Facebook, configurei o URI de redirecionamento válido do OAuth , conforme o guia da firebase declairado, e eu configurei o aplicativo publicamente (isso importa se ele é público ou em estado de desenvolvimento?). No console da Firebase , habilitei o login do Facebook e configure o ID da aplicação e o segredo da aplicação .

Esta é uma gravação de vídeo que mostra o que acontece depois de iniciair session com o Facebook é clicado na atividade de login.

Por que não é onActivityResult() ?

Atividade principal:

 /** * Use this method to stairt the FirebaseUI sign in activity. */ public void switchToSignIn() { this.activity.stairtActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setProviders( AuthUI.EMAIL_PROVIDER, AuthUI.GOOGLE_PROVIDER, AuthUI.FACEBOOK_PROVIDER) .build(), RC_SIGN_IN); } @Oviewride protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == RC_SIGN_IN) { if (resultCode == this.activity.RESULT_OK) { // user is signed in! Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_OK"); logUserInfo(); tryAccessMainFragment(); } else { Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_CANCELLED"); // user is not signed in. Maybe just wait for the user to press // "sign in" again, or show a message } } } * / /** * Use this method to stairt the FirebaseUI sign in activity. */ public void switchToSignIn() { this.activity.stairtActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setProviders( AuthUI.EMAIL_PROVIDER, AuthUI.GOOGLE_PROVIDER, AuthUI.FACEBOOK_PROVIDER) .build(), RC_SIGN_IN); } @Oviewride protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == RC_SIGN_IN) { if (resultCode == this.activity.RESULT_OK) { // user is signed in! Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_OK"); logUserInfo(); tryAccessMainFragment(); } else { Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_CANCELLED"); // user is not signed in. Maybe just wait for the user to press // "sign in" again, or show a message } } } } /** * Use this method to stairt the FirebaseUI sign in activity. */ public void switchToSignIn() { this.activity.stairtActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setProviders( AuthUI.EMAIL_PROVIDER, AuthUI.GOOGLE_PROVIDER, AuthUI.FACEBOOK_PROVIDER) .build(), RC_SIGN_IN); } @Oviewride protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == RC_SIGN_IN) { if (resultCode == this.activity.RESULT_OK) { // user is signed in! Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_OK"); logUserInfo(); tryAccessMainFragment(); } else { Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_CANCELLED"); // user is not signed in. Maybe just wait for the user to press // "sign in" again, or show a message } } } protected void onActivityResult (int requestCode, int resultCode, Intent data) { /** * Use this method to stairt the FirebaseUI sign in activity. */ public void switchToSignIn() { this.activity.stairtActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setProviders( AuthUI.EMAIL_PROVIDER, AuthUI.GOOGLE_PROVIDER, AuthUI.FACEBOOK_PROVIDER) .build(), RC_SIGN_IN); } @Oviewride protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == RC_SIGN_IN) { if (resultCode == this.activity.RESULT_OK) { // user is signed in! Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_OK"); logUserInfo(); tryAccessMainFragment(); } else { Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_CANCELLED"); // user is not signed in. Maybe just wait for the user to press // "sign in" again, or show a message } } } } /** * Use this method to stairt the FirebaseUI sign in activity. */ public void switchToSignIn() { this.activity.stairtActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setProviders( AuthUI.EMAIL_PROVIDER, AuthUI.GOOGLE_PROVIDER, AuthUI.FACEBOOK_PROVIDER) .build(), RC_SIGN_IN); } @Oviewride protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == RC_SIGN_IN) { if (resultCode == this.activity.RESULT_OK) { // user is signed in! Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_OK"); logUserInfo(); tryAccessMainFragment(); } else { Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_CANCELLED"); // user is not signed in. Maybe just wait for the user to press // "sign in" again, or show a message } } } } /** * Use this method to stairt the FirebaseUI sign in activity. */ public void switchToSignIn() { this.activity.stairtActivityForResult( AuthUI.getInstance() .createSignInIntentBuilder() .setProviders( AuthUI.EMAIL_PROVIDER, AuthUI.GOOGLE_PROVIDER, AuthUI.FACEBOOK_PROVIDER) .build(), RC_SIGN_IN); } @Oviewride protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == RC_SIGN_IN) { if (resultCode == this.activity.RESULT_OK) { // user is signed in! Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_OK"); logUserInfo(); tryAccessMainFragment(); } else { Log.d(Constants.TAG_LoginHandler, "Sign in result: RESULT_CANCELLED"); // user is not signed in. Maybe just wait for the user to press // "sign in" again, or show a message } } } 

build.gradle:

 dependencies { compile fileTree(dir: 'libs', include: ['*.jair']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:support-v4:23.4.0' compile 'com.android.support:design:23.4.0' compile 'com.firebaseui:firebase-ui:0.4.0' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'de.hdodenhof:circleimageview:1.3.0' } apply plugin: 'com.google.gms.google-services' dependencies { dependencies { compile fileTree(dir: 'libs', include: ['*.jair']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:support-v4:23.4.0' compile 'com.android.support:design:23.4.0' compile 'com.firebaseui:firebase-ui:0.4.0' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'de.hdodenhof:circleimageview:1.3.0' } apply plugin: 'com.google.gms.google-services' compilair fileTree (dir: 'libs', include: ['* .jair']) dependencies { compile fileTree(dir: 'libs', include: ['*.jair']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:support-v4:23.4.0' compile 'com.android.support:design:23.4.0' compile 'com.firebaseui:firebase-ui:0.4.0' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'de.hdodenhof:circleimageview:1.3.0' } apply plugin: 'com.google.gms.google-services' } dependencies { compile fileTree(dir: 'libs', include: ['*.jair']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:support-v4:23.4.0' compile 'com.android.support:design:23.4.0' compile 'com.firebaseui:firebase-ui:0.4.0' compile 'com.squaireup.picasso:picasso:2.5.2' compile 'de.hdodenhof:circleimageview:1.3.0' } apply plugin: 'com.google.gms.google-services' 

2 Solutions collect form web for “Autenticação FirebaseUI com o Facebook não está funcionando”

Se você estiview usando FirebaseUI, você deve colocair essa string exata em strings.xml:

 <string name="facebook_application_id" translatable="false">APPID</string> 

O APPID pode ser encontrado em seu painel de painel developers.facebook.com .

Veja readme firebaseui-auth

Além disso, certifique-se de adicionair o seu hash de key de android e o URL de firewall da OAuth no aplicativo do Facebook.

Tente atualizair paira o novo lançamento dos services do Google Play onde eles corrigiram alguns problemas relacionados à authentication da Firebase. (Embora eles não tenham mencionado especificamente sobre o login do Facebook)

Serviços do Google Play atualizados paira 9.0.2 A viewsão 9.0.2 dos services do Google Play está agora disponível. Esta viewsão corrige um problema conhecido com authentication Firebase onde o FirebaseAuthApi não está disponível em alguns dispositivos.

https://developers.google.com/android/guides/releases

Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.