AuthenticationToken.current == nil
chengssir opened this issue · comments
Checklist before submitting a bug report
- I've updated to the latest released version of the SDK
- I've searched for existing GitHub issues
- I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- I've read the Code of Conduct
- This issue is not security related and can safely be disclosed publicly on GitHub
Xcode version
15.1
Facebook iOS SDK version
17.0.0
Dependency Manager
CocoaPods
SDK Framework
Core
Goals
get token
Expected results
token
Actual results
AuthenticationToken.current == nil
Steps to reproduce
let faceBook = LoginManager()
faceBook.logOut()
guard let configuration = LoginConfiguration(
permissions:["public_profile"],
tracking: .enabled
)
else {
return
}
faceBook.logIn(configuration: configuration) { result in
switch result {
case .cancelled, .failed:
break
case .success(_, _, let token):
print("######################## \(AuthenticationToken.current)")
}
}
Code samples & details
// INSERT YOUR CODE HERE
var example = "Example code" 111
Hello,
In response to the upcoming changes to ATT enforcement, we made changes to the iOS SDK and the SDK no longer provides valid user access tokens in scenarios where the user opts out of ATT. The access token validation or Graph API requests may throw errors like OAuthException - “Invalid OAuth access token - Cannot parse access token”. Our recommendation is that users integrate Limited Login following the official documentation:
https://developers.facebook.com/docs/facebook-login/limited-login/ios
https://developers.facebook.com/docs/facebook-login/limited-login/unity/
See more details here.