We have been using Facebook login in our app since forever and this has always worked well.
We have upgraded to the SDK v.17 and have changed the code to use limited login into our app. When we open the Facebook login screen, we are always getting this warning:
"If you are not using Limited Login, you will need to handle all Graph API calls using Graph API, iOS. The access token will not be valid. To learn more about changes to the Facebook SDK for iOS and how you can continue using the Facebook Login SDK, visit the blog."
This is strange, because as you can see in the screenshot it does go to limited.facebook.com...
We have implemented it as per the documentation, here is a code snippet with the relevant lines of code:
let facebookManager = LoginManager()
guard let configuration = LoginConfiguration(permissions: ["email", "public_profile"], tracking: .limited, nonce: UUID().uuidString)
else {
return
}
facebookManager.logIn(configuration: configuration) { [self] result in
switch result {
case .cancelled:
// throw cancelled
case .failed:
// throw failed
case .success:
if let token = AuthenticationToken.current?.tokenString {
// send token to server
} else {
// throw no token error
}
}
}
Why do we get the warning on the Facebook Login page? Other than the above, is there anything else weI need to change to use limited login? What are we missing here? Also the token we get back doesn't seem to be valid (yet to be confirmed).