Open ttb-inc opened 5 months ago
same
same issue facing
@ZhiyongPan @ttb-inc @danbil24 if you are upgrading from a previous version of 7.x.x try running
cd ios && pod update flutter_facebook_auth
@ttb-inc please follow the issue template and add your code or some repo to reproduce the issue
@ttb-inc please follow the issue template and add your code or some repo to reproduce the issue
Thank you for your response. Is there any more information you need?
@ZhiyongPan @danbil24 Please share any information you have to resolve this issue.
@ttb-inc facing same issue with the latest ios versions .
Facing same issue, works on Android but not on IOS
Same here, Android works fine, iOS has the same issue
Same iOS always cancelled login
@darwin-morocho do you have any suggestions? As I see this is affecting a lot of people on iOS (Android works fine). On iOS loginResult.status == LoginStatus.success
is never true, I'm talking about a published live Facebook app.
try {
final rawNonce = generateNonce();
final nonce = sha256ofString(rawNonce);
final loginResult = await FacebookAuth.instance.login(loginTracking: LoginTracking.limited, nonce: nonce);
if (loginResult.status == LoginStatus.success) {
final token = loginResult.accessToken?.tokenString;
if (token == null) return Error(FacebookSignInFailure());
late OAuthCredential facebookAuthCredential;
if (loginResult.accessToken is LimitedToken) {
facebookAuthCredential = OAuthProvider('facebook.com').credential(idToken: token, rawNonce: rawNonce);
} else {
facebookAuthCredential = FacebookAuthProvider.credential(token);
}
await firebaseAuth.signInWithCredential(facebookAuthCredential);
return currentUser(reload: true);
}
debugPrint(loginResult.message);
return Error(FacebookSignInFailure());
} on FirebaseAuthException catch (e) {
debugPrintStack(stackTrace: e.stackTrace, label: e.toString());
return Error(FacebookSignInFailure());
} catch (e) {
debugPrint(e.toString());
return Error(FacebookSignInFailure());
}
@ttb-inc did you find a solution?
@ttb-inc did you find a solution?
Not found. We are discussing removing facebook from the app.
We've decided to integrate iOS' facebook sdk ourselves because of this issue as well. Unluckily simply removing the facebook sign in for our users isn't option for us.
We've decided to integrate iOS' facebook sdk ourselves because of this issue as well. Unluckily simply removing the facebook sign in for our users isn't option for us.
You think the problem lies within the flutter_facebook_auth package? The reason could be with the facebook SDK itself actually...
It looks like so, but also the SDK recently updated, so I thought they've fixed it.
The latest flutter_facebook_auth: ^7.0.1
fixed this issue by updating the native Facebook iOS SDK to 17.0.2
but break android maybe
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':flutter_facebook_auth:compileReleaseKotlin'.
Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlin' (17).
Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org.
but break android maybe
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':flutter_facebook_auth:compileReleaseKotlin'.
Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlin' (17).
Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
try using gradle 7 instead of 8
What version are you using?
flutter_facebook_auth: 7.0.0
What OS and version are you using to local deploy your application?
macOS Somoma 14.4.1
What platforms are you seeing the problem on?
iOS
pubspec.yaml
Describe the Bug
Hi,
The screenshot below is a test with two different accounts.
‘1st_img’ returns ‘LoginStatus.success’ as normal, although there is a warning. ‘2nd_img’ has no warning text, but always returns ‘LoginStatus.cancelled’.
What is the difference between the two accounts?
It may be unrelated to the contents of the package. What is the difference between warnings and no warnings?
Thank you.
1st_img
2nd_img
Expected Behavior
I want all accounts to receive 'LoginStatus.success' as normal.
To Reproduce
The app is the same, the results are just different for different accounts.
Relevant log output
None.
flutter doctor -v
Info.plist (iOS)
Podfile (iOS)
AndroidManifest.xml
No response
MainActivity.java
No response
MainActivity.kt
No response
index.html
No response
Info.plist (macOS)
No response