-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidScopeRequested error when login facebook #416
Comments
I'm getting the same issue on ios, when on the webview it fails, but when using android and going to the native fb app for login, it works. |
The solution? |
@Azhun20 @Tameflame @tronghau2110 go to the permissions list page and check that you are not passing invalid or obsolete permissions |
If it was permission issue then I think it should also give error on android but its not the case, my android app is working fine, I am able to login but on iOS it is giving this error |
Any update on this? Thanks |
The same error occurred while check on iOS with facebook graph APIs for Instagram and facebook content publish and manage pages |
You need to use First, ask for the user's tracking permission. If the user grants access, send the login request as shown below:
|
What version are you using?
flutter_facebook_auth: ^7.0.1
What OS and version are you using to local deploy your application?
MacOS 14.1.1
What platforms are you seeing the problem on?
iOS
pubspec.yaml
Describe the Bug
When I login facebook with permissions, it created bug as image. How do fix it? lib: facebook_auth_flutter 7.0.1
loginPermission=[
"email",
,"user_videos"
, "manage_pages"
,"user_posts"
,"public_profile"
,"pages_manage_engagement"
, "pages_read_engagement"
, "pages_manage_metadata"
,"pages_show_list"
,"pages_manage_posts"
, "manage_pages"
,"pages_messaging"
, "publish_pages"
, "pages_messaging"
final loginPermission =
permission ?? _remoteConfigService.facebookOption.permissions;
final LoginResult loginResult = await _auth.login(
loginBehavior: isWebBehavior
? LoginBehavior.webOnly
: LoginBehavior.nativeWithFallback,
permissions: loginPermission
..removeWhere(
(f) => f == 'manage_pages' || f == 'publish_pages',
),
);
Expected Behavior
I can login facebook
To Reproduce
When I login facebook with permissions, it created bug as image. How do fix it? lib: facebook_auth_flutter 7.0.1
loginPermission=[
"email",
,"user_videos"
, "manage_pages"
,"user_posts"
,"public_profile"
,"pages_manage_engagement"
, "pages_read_engagement"
, "pages_manage_metadata"
,"pages_show_list"
,"pages_manage_posts"
, "manage_pages"
,"pages_messaging"
, "publish_pages"
, "pages_messaging"
final loginPermission =
permission ?? _remoteConfigService.facebookOption.permissions;
final LoginResult loginResult = await _auth.login(
loginBehavior: isWebBehavior
? LoginBehavior.webOnly
: LoginBehavior.nativeWithFallback,
permissions: loginPermission
..removeWhere(
(f) => f == 'manage_pages' || f == 'publish_pages',
),
);
Relevant log output
No response
flutter doctor -v
Info.plist (iOS)
No response
Podfile (iOS)
No response
AndroidManifest.xml
No response
MainActivity.java
No response
MainActivity.kt
No response
index.html
No response
Info.plist (macOS)
No response
The text was updated successfully, but these errors were encountered: