facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.78k stars 3.54k forks source link

Facebook Login: Invalid Scopes: openid #2330

Open al3x88 opened 8 months ago

al3x88 commented 8 months ago

Checklist before submitting a bug report

Xcode version

15.2

Facebook iOS SDK version

11.2.0

Dependency Manager

SPM

SDK Framework

Login

Goals

Before I was using Facebook Login 5.0.0 with Pod and was working fine. After I decided to upgrade to 11.2.0 with SPM I am unable.

Goal: Facebook Login with my permissions: "public_profile","pages_show_list","pages_read_engagement","pages_manage_posts"

Expected results

Succeed with the login and obtain the requested permission

Actual results

Once the button redirect me on Facebook app, I get the error:

Invalid Scopes: openid IMG_3170

Steps to reproduce

Just simply login with Facebook button

Code samples & details

loginButton = FBLoginButton()
        if let loginButton = loginButton {
            loginButton.permissions = ["public_profile","pages_show_list","pages_read_engagement","pages_manage_posts"]
            loginButton.delegate = self
            loginButton.center = CGPoint(x: self.view.frame.width/2, y: 160)
            view.addSubview(loginButton)
        }
zip99 commented 7 months ago

I have the same problem exporting to IOS from Unity with Facebook SDK 16

zhigang1992 commented 7 months ago

For us we had to create a tester user that is not a developer role in the facebook developer portal to get around this.