Invalid Scopes: email, openid, public_profile
Asked Answered
A

6

16

I am using flutter_facebook_auth: ^5.0.8 to login into the app using my Facebook account. But when I try to log in, I am getting this.

"Invalid Scopes: email, openid, public_profile. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions"

enter image description here

Allyce answered 30/3, 2023 at 15:54 Comment(1)
There is no openid permission with Facebook's OAuth implementation.Aluminous
O
41

2023/8/9 latest solution

You probably forgot to add the email permission for your app in the Meta developer console.

Navigate to your app, then go to 'Use Case' -> 'Authentication and Account Creation', and add the email permission

Oribella answered 9/8, 2023 at 4:4 Comment(3)
I added the email permission still getting the error 'Sorry, something went wrong'. will you help me in this.Bobbobb
@Bobbobb same for me. I can't add the email permission and got that errorCesium
Maybe you guys didn't fill data usage questions?Dilantin
B
9

After struggling I've finally found how to fix it. It's an issue related to the settings of Facebook login for Business.

Fix : Switch from "Facebook login for Business" to "Facebook Login" inside developer.facebook.com

It seems that Facebook login for Business is not supported yet for flutter_facebook_auth on Flutter.

Source : https://github.com/thebergamo/react-native-fbsdk-next/issues/388

Blanks answered 7/4, 2023 at 18:48 Comment(1)
flutter_facebook_auth: ^5.0.8Blanks
T
4

Example Usecase Image from Facebook Dashboard

enter image description here

Sometimes you have selected Facebook business as Login which we need to change into Facebook login by default and sometimes you havent providied the Valid Scope from Facebook that you want to use in the app. For example Email,ProfileURL you need to specify in the details of the scope in Facebook usecase by adding new scope

Traipse answered 29/5, 2023 at 5:0 Comment(1)
this should been an answer for those who still get this 'Invalid Scopes' issues even if they are using Facebook LoginAlfrediaalfredo
F
1

Here is a workaround I using for my flutter app incase you need to use the "Facebook login for Business":

  • Ensure your Business status is verified..
  • Making a landing page with one button using Javascript SDK for login and redirect to app using deep-link include the access token.
Fennessy answered 10/7, 2023 at 3:15 Comment(0)
A
1

I might be late to the party , but this is the same problem we faced in our unity app, first you need to make sure facebook business account is verified under Review --> Verification, next you want to fill out contact details and data deletion instructions url under App Settings --> Basic Settings, Also in use cases add the (gaming_profile, gaming_user_picture) and (user_friends) for your invalid scope error prompt screen , which only happens if you are the admin of the app you need to add those permission in the code

{ "gaming_profile", "user_friends" }

Hope that helps

Anagnos answered 15/12, 2023 at 23:58 Comment(0)
S
0

I solved my problem after installing cocoapod on my Apple silicon Xcode build folder by creating another fb account and logged in on that on my iPhone and all worked as expected after exporting the project.

This is Unity but maybe the solution is the same.

Shelia answered 26/2 at 9:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.