Closed LabanauskasTomas closed 1 year ago
// Trigger the sign-in flow
final LoginResult loginResult = await FacebookAuth.instance.login();
// Create a credential from the access token
final OAuthCredential facebookAuthCredential =
FacebookAuthProvider.credential(loginResult.accessToken!.token);
// Once signed in, return the UserCredential
return FirebaseAuth.instance.signInWithCredential(facebookAuthCredential);
}
The code I'm using for sign in.
And this is what I get after enetering facebook credentials
@LabanauskasTomas sorry but I am not able to help you. Because this is not an issue of this plugin.
@LabanauskasTomas sorry but I am not able to help you. Because this is not an issue of this plugin.
Please go to the official Facebook documentation and check what are the requirements to use that permissions
Well I override permissions
Future<UserCredential> signInWithFacebook() async {
// Trigger the sign-in flow
final LoginResult loginResult = await FacebookAuth.instance.login(permissions: ['email']);
// Create a credential from the access token
final OAuthCredential facebookAuthCredential =
FacebookAuthProvider.credential(loginResult.accessToken!.token);
// Once signed in, return the UserCredential
return FirebaseAuth.instance.signInWithCredential(facebookAuthCredential);
}
but still this plugin adds OpenId to the request.
The problem is only with OpenId scope added by this plugin.
Well I override permissions
Future<UserCredential> signInWithFacebook() async { // Trigger the sign-in flow final LoginResult loginResult = await FacebookAuth.instance.login(permissions: ['email']); // Create a credential from the access token final OAuthCredential facebookAuthCredential = FacebookAuthProvider.credential(loginResult.accessToken!.token); // Once signed in, return the UserCredential return FirebaseAuth.instance.signInWithCredential(facebookAuthCredential); }
but still this plugin adds OpenId to the request.
The problem is only with OpenId scope added by this plugin.
In your info.plist I cannot see this tags
<key>FacebookDisplayName</key>
<string>{your-app-name}</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-share-api</string>
</array>
By default this plugin uses only the next scopes public_profile and email. If the problem persists Try using the version 4.x.x
Fixed issue?, I'm also facing this same issue.
I am facing Same issue.
Yes, I did eventually find what was causing the problem.
According to Facebook this message or error shows up when you're trying to use Facebook Application that doesn't have full information. Basically just as your own Privacy Policy, fill in the form about the application and you'll be good to go :) This change is from 2023-01-01 according to their new policy, so that's why in all of the tutorials there's no info about it.
Yes, I did eventually find what was causing the problem.
According to Facebook this message or error shows up when you're trying to use Facebook Application that doesn't have full information. Basically just as your own Privacy Policy, fill in the form about the application and you'll be good to go :) This change is from 2023-01-01 according to their new policy, so that's why in all of the tutorials there's no info about it.
But i added all basic information although it's showing same error. can you explain more. Which info is required.
Yes, I did eventually find what was causing the problem. According to Facebook this message or error shows up when you're trying to use Facebook Application that doesn't have full information. Basically just as your own Privacy Policy, fill in the form about the application and you'll be good to go :) This change is from 2023-01-01 according to their new policy, so that's why in all of the tutorials there's no info about it.
But i added all basic information although it's showing same error. can you explain more. Which info is required.
I can't. I ended up using other application on Facebook. If you're experiencing issues contact Facebook Developer support.
As far as this package goes, it works as it should.
I found out that you have to have verified business for facebook login to work :)
What version are you using?
5.0.7
What OS and version are you using to local deploy your application?
macOS 13.0.1
What platforms are you seeing the problem on?
iOS
pubspec.yaml
Describe the Bug
I get error from Facebook "Invalid scopes: OpenId, Email, Public_Profile..." Without changing the default permissions.
Expected Behavior
It should just work with login
To Reproduce
Installed it on a new project, added to firebase, did everything according to the tutorial
Relevant log output
No response
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