iOS SDK Version

Classes

The following classes are available globally.
  • A button that initiates a log in or log out flow upon tapping.
    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).
    Like 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.
    See more

    Declaration

    Objective-C
    @interfaceFBSDKLoginButton
    Swift
    classFBLoginButton
  • A configuration to use for modifying the behavior of a login attempt.
    See more

    Declaration

    Objective-C
    @interfaceFBSDKLoginConfiguration:NSObject
    Swift
    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.
    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.
    See more

    Declaration

    Objective-C
    @interfaceFBSDKLoginManager:NSObject
    Swift
    classLoginManager:NSObject
  • Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBSDKDeviceLoginCodeInfo:NSObject
    Swift
    classDeviceLoginCodeInfo:NSObject
  • Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBSDKDeviceLoginManager:NSObject<NSNetServiceDelegate>
    Swift
    classDeviceLoginManager:NSObject,NetServiceDelegate
  • Undocumented
    See more

    Declaration

    Objective-C
    @interfaceFBSDKDeviceLoginManagerResult:NSObject
    Swift
    classDeviceLoginManagerResult:NSObject
  • Describes the result of a login attempt.
    See more

    Declaration

    Objective-C
    @interfaceFBSDKLoginManagerLoginResult:NSObject
    Swift
    classLoginManagerLoginResult:NSObject
  • Represents a tooltip to be displayed next to a Facebook login button to highlight features for new users.
    The 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.
    By default, the 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.
    See more

    Declaration

    Objective-C
    @interfaceFBSDKLoginTooltipView:FBSDKTooltipView
    Swift
    classFBLoginTooltipView:FBTooltipView
  • Deprecated
    FBSDKReferralCode is deprecated and will be removed in the next major release
    Represent a referral code used in the referral process
    See more

    Declaration

    Objective-C
    @interfaceFBSDKReferralCode:NSObject
    Swift
    classReferralCode:NSObject
  • Deprecated
    FBSDKReferralManager is deprecated and will be removed in the next major release
    FBSDKReferralManager provides methods for starting the referral process.
    See more

    Declaration

    Objective-C
    @interfaceFBSDKReferralManager:NSObject
    Swift
    classReferralManager:NSObject
  • Deprecated
    FBSDKReferralCode is deprecated and will be removed in the next major release
    Describes the result of a referral request.
    See more

    Declaration

    Objective-C
    @interfaceFBSDKReferralManagerResult:NSObject
    Swift
    classReferralManagerResult:NSObject
  • Tooltip bubble with text in it used to display tips for UI elements, with a pointed arrow (to refer to the UI element).
    The tooltip fades in and will automatically fade out. See displayDuration.
    See more

    Declaration

    Objective-C
    @interfaceFBSDKTooltipView:UIView
    Swift
    classFBTooltipView:UIView