iOS SDK Version

Protocols

The following protocols are available globally.
  • Extension protocol for NSCopying that adds the copy method, which is implemented on NSObject.
    NSObject
    implicitly conforms to this protocol.
    See more

    Declaration

    Objective-C
    @protocolFBSDKCopying<NSCopying,NSObject>
    Swift
    protocolCopying:NSCopying,NSObjectProtocol
  • Extension protocol for NSMutableCopying that adds the mutableCopy method, which is implemented on NSObject.
    NSObject
    implicitly conforms to this protocol.
    See more

    Declaration

    Objective-C
    @protocolFBSDKMutableCopying<FBSDKCopying,NSMutableCopying>
    Swift
    protocolMutableCopying:NSMutableCopying,Copying
  • A delegate for FBSDKGameRequestDialog.
    The delegate is notified with the results of the game request as long as the application has permissions to receive the information. For example, if the person is not signed into the containing app, the shower may not be able to distinguish between completion of a game request and cancellation.
    See more

    Declaration

    Objective-C
    @protocolFBSDKGameRequestDialogDelegate<NSObject>
    Swift
    protocolGameRequestDialogDelegate:NSObjectProtocol
  • The common interface for components that initiate liking.
    See
    FBSDKLikeButton
    See
    FBSDKLikeControl
    See more

    Declaration

    Objective-C
    @protocolFBSDKLiking<NSObject>
    Swift
    protocolLiking:NSObjectProtocol
  • A protocol for media content (photo or video) to be shared.

    Declaration

    Objective-C
    @protocolFBSDKShareMedia<NSObject>
    Swift
    protocolShareMedia:NSObjectProtocol
  • The common interface for components that initiate sharing.
    See
    FBSDKShareDialog
    See
    FBSDKMessageDialog
    See more

    Declaration

    Objective-C
    @protocolFBSDKSharing<NSObject>
    Swift
    protocolSharing:NSObjectProtocol
  • The common interface for dialogs that initiate sharing.
    See more

    Declaration

    Objective-C
    @protocolFBSDKSharingDialog<FBSDKSharing>
    Swift
    protocolSharingDialog:Sharing
  • A delegate for FBSDKSharing.
    The delegate is notified with the results of the sharer as long as the application has permissions to receive the information. For example, if the person is not signed into the containing app, the sharer may not be able to distinguish between completion of a share and cancellation.
    See more

    Declaration

    Objective-C
    @protocolFBSDKSharingDelegate<NSObject>
    Swift
    protocolSharingDelegate:NSObjectProtocol
  • The common interface for sharing buttons.
    See
    FBSDKSendButton
    See
    FBSDKShareButton
    See more

    Declaration

    Objective-C
    @protocolFBSDKSharingButton<NSObject>
    Swift
    protocolSharingButton:NSObjectProtocol
  • A base interface for content to be shared.
    See more

    Declaration

    Objective-C
    @protocolFBSDKSharingContent<FBSDKCopying,FBSDKSharingValidation,NSSecureCoding>
    Swift
    protocolSharingContent:NSSecureCoding,Copying,SharingValidation
  • A base interface for indicating a custom URL scheme
    See more

    Declaration

    Objective-C
    @protocolFBSDKSharingScheme
    Swift
    protocolSharingScheme
  • A base interface for validation of content and media.
    See more

    Declaration

    Objective-C
    @protocolFBSDKSharingValidation
    Swift
    protocolSharingValidation
  • Implement this protocol to provide an alternate strategy for resolving App Links that may include pre-fetching, caching, or querying for App Link data from an index provided by a service provider.
    See more

    Declaration

    Objective-C
    @protocolFBSDKAppLinkResolving<NSObject>
    Swift
    protocolAppLinkResolving:NSObjectProtocol
  • Protocol that a class can implement in order to be notified when the user has navigated back to the referer of an App Link.
    See more

    Declaration

    Objective-C
    @protocolFBSDKAppLinkReturnToRefererControllerDelegate<NSObject>
    Swift
    protocolAppLinkReturnToRefererControllerDelegate:NSObjectProtocol
  • Protocol that a class can implement in order to be notified when the user has navigated back to the referer of an App Link.
    See more

    Declaration

    Objective-C
    @protocolFBSDKAppLinkReturnToRefererViewDelegate<NSObject>
    Swift
    protocolAppLinkReturnToRefererViewDelegate:NSObjectProtocol
  • a formal protocol very similar to the informal protocol NSErrorRecoveryAttempting
    See more

    Declaration

    Objective-C
    @protocolFBSDKErrorRecoveryAttempting<NSObject>
  • Declaration

    Objective-C
    @protocolFBSDKGraphErrorRecoveryProcessorDelegate<NSObject>
    Swift
    protocolGraphErrorRecoveryProcessorDelegate:NSObjectProtocol
  • @protocol
    The FBSDKGraphRequestConnectionDelegate protocol defines the methods used to receive network activity progress information from a
    .
    See more

    Declaration

    Objective-C
    @protocolFBSDKGraphRequestConnectionDelegate<NSObject>
    Swift
    protocolGraphRequestConnectionDelegate:NSObjectProtocol