FBSDKLoginManager
@interfaceFBSDKLoginManager:NSObject
FBSDKLoginManager
provides methods for logging the user in and out.FBSDKLoginManager
serves to help manage sessions represented by tokens for authentication, AuthenticationToken
, and data access, AccessToken
.You should check if the type of token you expect is present as a singleton instance, either
AccessToken.current
or AuthenticationToken.current
before calling any of the login methods to see if there is a cached token available. A standard place to do this is in viewDidLoad
.Warning
If you are managing your own token instances outside of AccessToken.current
, you will need to set AccessToken.current
before calling any of the login methods to authorize further permissions on your tokens.