facebook-ios-sdk icon indicating copy to clipboard operation
facebook-ios-sdk copied to clipboard

App is live but only approved testers can login (using limited login on 17.0.0)

Open rgg-egunnery opened this issue 4 months ago • 36 comments

Checklist before submitting a bug report

Xcode version

15.3

Facebook iOS SDK version

17.0.0

Dependency Manager

SPM

SDK Framework

Login

Goals

Login for all users

Expected results

I expect both test users and regular users to be handled correctly when the app is live.

Actual results

I keep getting a cancellation returned when trying to use the new login method for limited login, only for non test users.

Steps to reproduce

No response

Code samples & details

self?.loginManager.logIn(configuration: configuration) { result in
                switch result {
                case .cancelled:
                    continuation.resume(throwing: Cancelation()) <--- hits every time I try login from a non tester account
                }
            }

rgg-egunnery avatar Apr 17 '24 13:04 rgg-egunnery

Any news on this one?

fgeracitano avatar Apr 17 '24 14:04 fgeracitano

same

bluerainxty avatar Apr 18 '24 08:04 bluerainxty

same

alexwind-lin avatar Apr 23 '24 05:04 alexwind-lin

same

giorgia avatar Apr 23 '24 19:04 giorgia

same here

tommy6457 avatar Apr 24 '24 09:04 tommy6457

same here

any updates?

rgg-clineu avatar Apr 25 '24 15:04 rgg-clineu

same,and I had to drop the version to 16.3.1

hollyShine avatar Apr 26 '24 07:04 hollyShine

any updates?

bluerainxty avatar Apr 28 '24 03:04 bluerainxty

same,and I had to drop the version to 16.3.1

Don't we need version 17.0.0 to conform to Apple's Privacy Policy, since version 17.0.0 has the Policy Privacy File?

alexEulerity avatar Apr 30 '24 20:04 alexEulerity

+1

chorobochrontochor avatar May 01 '24 10:05 chorobochrontochor

Just confirming that this is also the case on 17.0.1

rgg-egunnery avatar May 02 '24 14:05 rgg-egunnery

same,and I had to drop the version to 16.3.1

Don't we need version 17.0.0 to conform to Apple's Privacy Policy, since version 17.0.0 has the Policy Privacy File?

+1

gupta515 avatar May 03 '24 14:05 gupta515

same,and I had to drop the version to 16.3.1

Did your build pass through Apple's Privacy Policy check?

gupta515 avatar May 03 '24 14:05 gupta515

same!, and

Just confirming that this is also the case on 17.0.1

yes, same on 17.0.1

SamuelZhaoY avatar May 04 '24 11:05 SamuelZhaoY

Our company have more than 10 FB Application, after migrating to iOS FBSDK 17.0.0. We found that when using one of the Facebook AppID and ClientToken, the following method always return result with isCancelled = true.

- (void)logInFromViewController:(UIViewController * _Nullable)viewController 
                                configuration:(FBSDKLoginConfiguration * _Nullable)configuration 
                                    completion:(FBSDKLoginManagerLoginResultBlock _Nonnull)completion;

What makes our team confused is that:

  • Previously when using the 16.2.1 version of the SDK, the FB App configuration is working fine. Now the issue happens for both 17.0.0 and 17.0.1
  • The rest of the FB App configurations (around 10) is working fine, yet the single FB App has such issue 🤔️
  • For the same xcode workspace, as soon as we change the FacebookClientToken/FacebookAppID and the URL in the app's info.plist , things can work as expected.

Not sure it is a bug in the Facebook Login SDK or any potential misconfiguration on the Facebook Developer console

FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
FBSDKLoginConfiguration *configuration = [[FBSDKLoginConfiguration alloc]
                                               initWithPermissions:@[@"public_profile", @"email"]
                                               tracking:FBSDKLoginTrackingLimited];
[login logInFromViewController:[UITool getCurrentVC]
                              configuration:configuration
                                  completion:^(FBSDKLoginManagerLoginResult * _Nullable result, NSError * _Nullable error) {
        if (error) {
            // error
        } else if (result.isCancelled) {
            //
            // this is the code always goes to under one
            // of the specific fb app configuration
            // 
        } else {
            // success, which should be expected
        }
        callback(responseDic);
    }];

Update:

  • Similarly, when using test account / developer account, the login flow can succeed

SamuelZhaoY avatar May 05 '24 01:05 SamuelZhaoY

same,and I had to drop the version to 16.3.1

Did your build pass through Apple's Privacy Policy check?

passed

hollyShine avatar May 06 '24 05:05 hollyShine

same,and I had to drop the version to 16.3.1

Don't we need version 17.0.0 to conform to Apple's Privacy Policy, since version 17.0.0 has the Policy Privacy File?

16.3.1 build passed through Apple's check for me

hollyShine avatar May 06 '24 05:05 hollyShine

We had a call with Facebook last Thursday to discuss this and I've sent them the logs I collected for success vs failure for test and public accounts. They had no solution to offer on the call for this, but I will update this thread if I hear anything further.

rgg-egunnery avatar May 07 '24 09:05 rgg-egunnery

their latest suggestion is: "you need to submit for review"

  • the app was working for 16.3.1 for public users
  • the app is in published state already
  • the is no submit for review button if you ask only basic email / public profile
  • they state "Most permissions must be approved"

if that is the real problem there must be a bug on their review app flow

fgeracitano avatar May 08 '24 08:05 fgeracitano

I tested with many fb app and i see: with fb app go live, if fb sdk ios version on "App Settings/Advanced/Check your SDK version":

  • fb sdk version 15.x or later => its worked
  • fb sdk version under 15.x => always return cancel

I hope it can help fb developer team detect this issue.

BunLV avatar May 13 '24 02:05 BunLV

I tested with many fb app and i see: with fb app go live, if fb sdk ios version on "App Settings/Advanced/Check your SDK version":

  • fb sdk version 15.x or later => its worked
  • fb sdk version under 15.x => always return cancel

I hope it can help fb developer team detect this issue.

Screenshot 2024-05-13 at 13 50 46

In my FB App Setting, it display like that. What's wrong?

mrhodangduy avatar May 13 '24 06:05 mrhodangduy

I tested with many fb app and i see: with fb app go live, if fb sdk ios version on "App Settings/Advanced/Check your SDK version":

  • fb sdk version 15.x or later => its worked
  • fb sdk version under 15.x => always return cancel

I hope it can help fb developer team detect this issue.

Screenshot 2024-05-13 at 13 50 46 In my FB App Setting, it display like that. What's wrong?

It's a know problem on their side, they don't keep track of the latest release, and that piece of UI tands to bring even more confusion 🤦

Screenshot 2024-05-13 at 12 35 27 PM

fgeracitano avatar May 13 '24 10:05 fgeracitano

We have iOS v15.0.0 and it's not working

marcin-piela-800 avatar May 13 '24 10:05 marcin-piela-800

same in V17.0.1

xsgoing avatar May 14 '24 10:05 xsgoing

same happens to us in unity sdk as well

kiyakkoray avatar May 14 '24 10:05 kiyakkoray

We have iOS v15.0.0 and it's not working

I tested and it's working on fb sdk v15.1.0 (>10 fb app id)

BunLV avatar May 15 '24 02:05 BunLV

I tested with many fb app and i see: with fb app go live, if fb sdk ios version on "App Settings/Advanced/Check your SDK version":

  • fb sdk version 15.x or later => its worked
  • fb sdk version under 15.x => always return cancel

I hope it can help fb developer team detect this issue.

Screenshot 2024-05-13 at 13 50 46 In my FB App Setting, it display like that. What's wrong?

It's a know problem on their side, they don't keep track of the latest release, and that piece of UI tands to bring even more confusion 🤦

Screenshot 2024-05-13 at 12 35 27 PM

I submited my app with a fb app id not worked, i'm waitting for fb console update SDK version to fb sdk v17.0.1. I hope it will work for this fb app id. Anybody try this case?

BunLV avatar May 15 '24 02:05 BunLV

I have two app,they have same sdk version image but only one worked ,one not。 @BunLV and my sdk version is V17.0.1

xsgoing avatar May 15 '24 03:05 xsgoing

Hi all. We received an email from Facebook a few minutes ago saying that this issue has been fixed. Without any changes on our end, it seems that we can now login with public accounts. You might want to give yours a try. I am curious if this needs to be fixed on an account basis or if this was a general bug fix in the backend.

rgg-egunnery avatar May 15 '24 15:05 rgg-egunnery