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.
}
你应该导入FacebookCore:
import FacebookCore
import FBSDKCoreKit
import FBSDKLoginKit
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.