I work with Facebook Swift SDK and I'm trying to check if the user is logged in. I get error message Use of unresolved identifier 'AccessToken'
My code is:
if let accessToken = AccessToken.current {
// User is logged in, use 'accessToken' here.
}
You should import FacebookCore:
import FacebookCore
import FBSDKCoreKit
import FBSDKLoginKit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With