Skip to content
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

App switches to limited login. #2375

Open
5 tasks done
rebindev opened this issue Apr 5, 2024 · 19 comments
Open
5 tasks done

App switches to limited login. #2375

rebindev opened this issue Apr 5, 2024 · 19 comments

Comments

@rebindev
Copy link

rebindev commented Apr 5, 2024

Checklist before submitting a bug report

Xcode version

Version 15.2 (15C500b)

Facebook iOS SDK version

17.0.0

Dependency Manager

CocoaPods

SDK Framework

Login

Goals

My app uses facebook login for business, but when a user disables tracking then it switches to limited login and unable to use my app or login. I'm aware the i have to enable tracking in the code to be able to use classic login. But when users disable tracking in settings-privacy & security we have no way to ask to track the user and login switches to limited.

Expected results

I want to be able to still login with classic mode when the users disable tracking, Switching to either limited or classic mode better to be in the developers hand not user's. I want to have the option to login in classic mode even when users disable tracking as i have no other option.

Actual results

My app uses facebook login for business, but it switches to limited even i have enabled tracking in the code but users disables tracking

Steps to reproduce

just login with facebook and disable tracking in settings-privacy & security then whatever i do it switches to limited login

Code samples & details

// INSERT YOUR CODE HERE
et viewController: UIViewController = (mainWindow?.rootViewController)!
        
        let config = LoginConfiguration(
            
            
            permissions: permissions, tracking: .enabled, nonce: UUID().uuidString
            

        )
        
        
        
       
        loginManager.logIn(viewController: viewController, configuration: config!) { loginResult in
            // Do something with loginResult
            switch loginResult {
               case .failed(let error):
                self.finishWithError(errorCode: "FAILED", message: error.localizedDescription)     
            case .cancelled:
                self.finishWithError(errorCode: "CANCELLED", message: "User has cancelled login with facebook")
            case .success(_, _, let accessToken):
                self.finishWithResult(data:self.getAccessToken(accessToken:  accessToken! ))
               }
            
        }
@al3x88
Copy link

al3x88 commented Apr 6, 2024

I have a similar issue! I have Facebook for Business Login ed many users cannot login.
Let login page switch to limited.facebook and ends up with "Looks like app is not available"

For now the only workaround is to roll back to Facebook sdk 16.2, but then u also need to roll back to Xcode 15.1 because of another bug !!!!

Anyone can help?

@al3x88
Copy link

al3x88 commented Apr 6, 2024

After a deep investigation sounds like Facebook Login works only with ATTrackingManager enable.
How to login with a user decides not to enable this permission?
Apple doesn't allow to block a functionality due to the lack of this permission....

@rebindev
Copy link
Author

rebindev commented Apr 6, 2024

@al3x88 your %100 right, They use ATTrackingManager to check if tracking enabled, if not it always returns limited login

@al3x88
Copy link

al3x88 commented Apr 6, 2024

@rebindev do you know how to make my app available also for limited login?
At the moment if I use the limited login I received a message: "Looks like your app is not available".

Is there any specific setting on developers.facebook?

thanks so much

@rebindev
Copy link
Author

rebindev commented Apr 6, 2024

@al3x88 Unfortunately there is no way except downgrading your sdk to previous working versions. It says in their documentation that by enabling tracking in your code it switches back to classic login but it seems not to be true in this version (17.0.0). You can check their documentation here

@OskCha
Copy link

OskCha commented Apr 8, 2024

According to this blog post there not that much we can do about it.

Today (2024/03/28), we have made changes to our Facebook Login SDK for iOS. These changes are part of the larger changes we are making to Facebook SDK for iOS and will affect all iOS developers who utilize Facebook Login SDK for iOS.

Those changes are motivated by Apple's Upcoming third-party SDK requirements

@OS-ricardomoreirasilva
Copy link

According to this blog post there not that much we can do about it.

Today (2024/03/28), we have made changes to our Facebook Login SDK for iOS. These changes are part of the larger changes we are making to Facebook SDK for iOS and will affect all iOS developers who utilize Facebook Login SDK for iOS.

Those changes are motivated by Apple's Upcoming third-party SDK requirements

Not sure why the changes are related to Apple's Privacy Manifest requirements. I believe that it's two different things that Facebook decided to include in 17.0.0, but that they're not providing enough information for us to implement it properly.

@greymag
Copy link

greymag commented Apr 12, 2024

It looks like this is not a bug, but a new behavior. Which is very disappointing.

case .enabled:
if _DomainHandler.sharedInstance().isDomainHandlingEnabled(), !Settings.shared.isAdvertiserTrackingEnabled {
hostPrefix = "limited."
}

@mjlmton
Copy link

mjlmton commented Apr 17, 2024

There is a question about user friends under limited login. When using limited login, the app only get the user friends's app scoped IDs (ASIDs). Can we get brief details about these user friends, such like name, avatar, etc. It seems like we can't use graph API under limited login any more.

@rgg-egunnery
Copy link

Has anyone gotten limited login to work with non tester accounts? Works fine for our test accounts but when trying to use it with public accounts, the new loginManager.logIn(configuration: configuration) just returns a cancellation. Not using anything that needs the app to be approved

@artur-marchetto
Copy link

yeah same issue here

@dovantien2911
Copy link

How to get token_for_business or ids_for_business with limited logins?

@felipecastrosales
Copy link

same issue here!

@kjgetcarnera
Copy link

kjgetcarnera commented Aug 30, 2024

Screenshot 2024-08-30 at 12 04 41 PM I am facing same issue, please let me know if anyone know solution ?

@pw-repo
Copy link

pw-repo commented Sep 3, 2024

Has anyone gotten limited login to work with non tester accounts? Works fine for our test accounts but when trying to use it with public accounts, the new loginManager.logIn(configuration: configuration) just returns a cancellation. Not using anything that needs the app to be approved

Have you find the solution for this issue? Seems it is similar to this #2387

@alflix
Copy link

alflix commented Sep 9, 2024

How to get token_for_business or ids_for_business with limited logins?

same question,any help?

@noforeignland
Copy link

Did anyone find a fix for this? I'm seeing the same screen as @kjgetcarnera reported.

@alexandranb
Copy link

Did anyone find a solution for this? Thank you

@angelolloqui
Copy link

I have added a workaround in here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests