Facebook SDK for iOS Reference  (v4.0)
This is an old version of the SDK. Check out the latest version.
Newer Versions4.174.164.15.14.154.144.134.124.114.94.84.74.64.54.44.34.24.14.0.1
Previous Versions3.243.233.223.213.203.193.183.173.163.153.143.133.123.113.103.93.83.73.63.53.2.13.0Legacy
Core Kit Classes
NameDescription
FBSDKAccessTokenRepresents an immutable access token for using Facebook services
FBSDKAppEventsClient-side event logging for specialized application analytics available through Facebook App Insights and for use with Facebook Ads conversion tracking and optimization
FBSDKApplicationDelegateThe FBSDKApplicationDelegate is designed to post process the results from Facebook Login or Facebook Dialogs (or any action that requires switching over to the native Facebook app or Safari)
FBSDKAppLinkResolverProvides an implementation of the BFAppLinkResolving protocol that uses the Facebook App Link Index API to resolve App Links given a URL
FBSDKAppLinkUtilityClass containing App Links related utility methods
FBSDKButtonA base class for common SDK buttons
FBSDKGraphErrorRecoveryProcessorDefines a type that can process Facebook NSErrors with best practices
FBSDKGraphRequestRepresents a request to the Facebook Graph API
FBSDKGraphRequestConnectionThe FBSDKGraphRequestConnection represents a single connection to Facebook to service a request
FBSDKGraphRequestDataAttachmentA container class for data attachments so that additional metadata can be provided about the attachment
FBSDKProfileRepresents an immutable Facebook profile
FBSDKProfilePictureViewA view to display a profile picture
FBSDKUtilityClass to contain common utility methods
Core Kit Protocols
NameDescription
FBSDKCopyingExtension protocol for NSCopying that adds the copy method, which is implemented on NSObject
FBSDKErrorRecoveryAttemptinga formal protocol very similar to the informal protocol NSErrorRecoveryAttempting
FBSDKGraphErrorRecoveryProcessorDelegateDefines a delegate for FBSDKGraphErrorRecoveryProcessor
FBSDKGraphRequestConnectionDelegateThe FBSDKGraphRequestConnectionDelegate protocol defines the methods used to receive network activity progress information from a FBSDKGraphRequestConnection
FBSDKMutableCopyingExtension protocol for NSMutableCopying that adds the mutableCopy method, which is implemented on NSObject
Core Kit Other
NameDescription
FBSDKSettings
Login Kit Classes
NameDescription
FBSDKLoginButtonA button to simplify login
FBSDKLoginManagerFBSDKLoginManager provides methods for logging the user in and out
FBSDKLoginManagerLoginResultDescribes the result of a login attempt
FBSDKLoginTooltipViewRepresents a tooltip to be displayed next to a Facebook login button to highlight features for new users
FBSDKTooltipViewTooltip bubble with text in it used to display tips for UI elements, with a pointed arrow (to refer to the UI element)
Login Kit Protocols
NameDescription
FBSDKLoginButtonDelegateA delegate for FBSDKLoginButton
FBSDKLoginTooltipViewDelegateThe FBSDKLoginTooltipViewDelegate protocol defines the methods used to receive event notifications from FBSDKLoginTooltipView objects
Login Kit Other
NameDescription
FBSDKLoginConstants
Share Kit Classes
NameDescription
FBSDKAppGroupAddDialogA dialog for creating app groups
FBSDKAppGroupContentA model for creating an app group
FBSDKAppGroupJoinDialogA dialog for joining app groups
FBSDKAppInviteContentA model for app invite
FBSDKAppInviteDialogA dialog for sending App Invites
FBSDKGameRequestContentA model for a game request
FBSDKGameRequestDialogA dialog for sending game requests
FBSDKLikeButtonA button to like an object
FBSDKLikeControlUI control to like an object in the Facebook graph
FBSDKMessageDialogA dialog for sharing content through Messenger
FBSDKSendButtonA button to send content through Messenger
FBSDKShareAPIA utility class for sharing through the graph API
FBSDKShareButtonA button to share content
FBSDKShareDialogA dialog for sharing content on Facebook
FBSDKShareLinkContentA model for status and link content to be shared
FBSDKShareOpenGraphActionAn Open Graph Action for sharing
FBSDKShareOpenGraphContentA model for Open Graph content to be shared
FBSDKShareOpenGraphObjectAn Open Graph Object for sharing
FBSDKShareOpenGraphValueContainerA base class to container Open Graph values
FBSDKSharePhotoA photo for sharing
FBSDKSharePhotoContentA model for photo content to be shared
FBSDKShareVideoA video for sharing
FBSDKShareVideoContentA model for video content to be shared
Share Kit Protocols
NameDescription
FBSDKAppGroupAddDialogDelegateA delegate for FBSDKAppGroupAddDialog
FBSDKAppGroupJoinDialogDelegateA delegate for FBSDKAppGroupJoinDialog
FBSDKAppInviteDialogDelegateA delegate for FBSDKAppInviteDialog
FBSDKGameRequestDialogDelegateA delegate for FBSDKGameRequestDialog
FBSDKLikingThe common interface for components that initiate liking
FBSDKShareOpenGraphValueContainingProtocol defining operations on open graph actions and objects
FBSDKSharingThe common interface for components that initiate sharing
FBSDKSharingButtonThe common interface for sharing buttons
FBSDKSharingContentA base interface for content to be shared
FBSDKSharingDelegateA delegate for FBSDKSharing
FBSDKSharingDialogThe common interface for dialogs that initiate sharing
Audience Network Classes
NameDescription
FBAdImageRepresents an image creative
FBAdSettingsAdSettings contains global settings for all ad controls
FBAdViewA customized UIView to represent a Facebook ad (a
FBInterstitialAdA modal view controller to represent a Facebook interstitial ad
FBNativeAdThe FBNativeAd represents ad metadata to allow you to construct custom ad views
Audience Network Protocols
NameDescription
FBAdViewDelegateThe methods declared by the FBAdViewDelegate protocol allow the adopting delegate to respond to messages from the FBAdView class and thus respond to operations such as whether the ad has been loaded, the person has clicked the ad
FBInterstitialAdDelegateThe methods declared by the FBInterstitialAdDelegate protocol allow the adopting delegate to respond to messages from the FBInterstitialAd class and thus respond to operations such as whether the interstitial ad has been loaded, user has clicked or closed the interstitial
FBNativeAdDelegateThe methods declared by the FBNativeAdDelegate protocol allow the adopting delegate to respond to messages from the FBNativeAd class and thus respond to operations such as whether the native ad has been loaded
Messenger Share Kit Classes
NameDescription
FBSDKMessengerBroadcastContextThis object is used as an override in FBSDKMessengerShareOptions to ensure the broadcast flow in Messenger is triggered, even if your app was entered from a flow that normally triggers the Messenger reply flow
FBSDKMessengerContextThis represents the way that content is shared between Messenger and partner apps
FBSDKMessengerShareButtonProvides a helper method to return a UIButton intended for sharing to Messenger
FBSDKMessengerShareOptionsOptional parameters that change the way content is shared into Messenger
FBSDKMessengerSharerThe FBSDKMessengerSharer is used to share media from apps into Messenger
FBSDKMessengerURLHandlerFBSDKMessengerURLHandler is used to handle incoming URLs from Messenger
FBSDKMessengerURLHandlerCancelContextThis object represents a user canceling out of a share flow in Messenger
FBSDKMessengerURLHandlerCancelShareContextThis object represents a user tapping cancel from within a share flow in Messenger
FBSDKMessengerURLHandlerOpenFromComposerContextThis object represents a user selecting this app from the composer in Messenger Passing this context into a share method will trigger a the reply flow
FBSDKMessengerURLHandlerReplyContextThis object represents a user tapping reply from a message in Messenger