Classes
The following classes are available globally.
FBSDKLoginButton
works with FBSDKProfile.currentProfile
to determine what to display, and automatically starts authentication when tapped (i.e., you do not need to manually subscribe action targets).FBSDKLoginManager
, you should make sure your app delegate is connected to FBSDKApplicationDelegate
in order for the button’s delegate to receive messages.FBSDKLoginButton
has a fixed height of 30
pixels, but you may change the width. initWithFrame:CGRectZero
will size the button to its minimum frame.@interfaceFBSDKLoginButton
classFBLoginButton
@interfaceFBSDKLoginConfiguration:NSObject
classLoginConfiguration: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
.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
.AccessToken.current
, you will need to set AccessToken.current
before calling any of the login methods to authorize further permissions on your tokens. @interfaceFBSDKLoginManager:NSObject
classLoginManager:NSObject
@interfaceFBSDKDeviceLoginCodeInfo:NSObject
classDeviceLoginCodeInfo:NSObject
@interfaceFBSDKDeviceLoginManager:NSObject<NSNetServiceDelegate>
classDeviceLoginManager:NSObject,NetServiceDelegate
@interfaceFBSDKDeviceLoginManagerResult:NSObject
classDeviceLoginManagerResult:NSObject
@interfaceFBSDKLoginManagerLoginResult:NSObject
classLoginManagerLoginResult:NSObject
FBSDKLoginButton
may display this view automatically. If you do not use the FBSDKLoginButton
, you can manually call one of the present*
methods as appropriate and customize behavior via FBSDKLoginTooltipViewDelegate
delegate.FBSDKLoginTooltipView
is not added to the superview until it is determined the app has migrated to the new login experience. You can override this (e.g., to test the UI layout) by implementing the delegate or setting forceDisplay
to YES.@interfaceFBSDKLoginTooltipView:FBSDKTooltipView
classFBLoginTooltipView:FBTooltipView
FBSDKReferralCode
is deprecated and will be removed in the next major release@interfaceFBSDKReferralCode:NSObject
classReferralCode:NSObject
FBSDKReferralManager
is deprecated and will be removed in the next major releaseFBSDKReferralManager
provides methods for starting the referral process.@interfaceFBSDKReferralManager:NSObject
classReferralManager:NSObject
FBSDKReferralCode
is deprecated and will be removed in the next major release@interfaceFBSDKReferralManagerResult:NSObject
classReferralManagerResult:NSObject
displayDuration
.@interfaceFBSDKTooltipView:UIView
classFBTooltipView:UIView