This is what I see while testing my app:
I got this message recently but I have to say that my code was working fine and I didn't update anything. Facebook support doesn't give any clue and they keep saying that login is not working when they review the app (without any other help).
I use Flutter and this package: https://pub.dev/packages/flutter_facebook_auth But I don't think code/framework/package is related at all to this issue. Probably more related to the key hash but this is also updated by this command:
keytool -exportcert -alias key -keystore assets/.keystore | openssl sha1 -binary | openssl base64
My key hash starts like this:
But Facebook's "support" shows me this snapshot from its test:
Why is it different? Is it because I cannot move my app to Live mode?:
That's because of this:
We've disabled this app for violating the Facebook Platform Policies. You can continue to use it in development mode.
Then, looking into that the problem is this:
Ok, so the problem is During Login, your app is crashing. Fine, but how should I fix it?
Despite I don't think this is related this is my login function:
Future facebookSignIn(BuildContext context) async {
final LoginResult result = await FacebookAuth.instance.login();
if (result.status == LoginStatus.success) {
final AccessToken accessToken = result.accessToken!;
AuthCredential credential =
FacebookAuthProvider.credential(accessToken.token);
// at this point the user is already logged in but I save history in db await _firebaseCredential(context, credential); } }
put the part of your code here, where you using facebook login, and what is your app state management ?