iOS SDK Version

Type Definitions

The following type definitions are available globally.
  • Internal Type exposed to facilitate transition to Swift. API Subject to change or removal without warning. Do not use.
    Warning
    UNSAFE - DO NOT USE

    Declaration

    Objective-C
    typedefvoid(^FBSDKBridgeAPIResponseBlock)(FBSDKBridgeAPIResponse*_Nonnull)
    Swift
    typealiasBridgeAPIResponseBlock=(BridgeAPIResponse)->Void
  • Internal Type exposed to facilitate transition to Swift. API Subject to change or removal without warning. Do not use.
    Warning
    UNSAFE - DO NOT USE

    Declaration

    Objective-C
    typedefvoid(^FBSDKAuthenticationCompletionHandler)(NSURL*_Nullable,NSError*_Nullable)
    Swift
    typealiasFBSDKAuthenticationCompletionHandler=(URL?,Error?)->Void
  • Undocumented

    Declaration

    Objective-C
    typedefNSString*FBSDKLoggingBehavior
    Swift
    structLoggingBehavior:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • Describes the callback for loadCurrentProfileWithCompletion.

    Declaration

    Objective-C
    typedefvoid(^FBSDKProfileBlock)(FBSDKProfile*_Nullable,NSError*_Nullable)
    Swift
    typealiasProfileBlock=(Profile?,Error?)->Void

    Parameters

    profile
    the FBSDKProfile
    error
    the error during the request, if any
  • Represents the unique identifier for an end user

    Declaration

    Objective-C
    typedefNSStringFBSDKUserIdentifier
  • typedef for FBSDKAppEventName

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventName
  • typedef for FBSDKAppEventParameterName

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventParameterName
  • typedef for FBSDKAppEventUserDataType

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventUserDataType
    Swift
    structFBSDKAppEventUserDataType:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • typedef for FBSDKAppEventParameterProduct

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventParameterProduct
    Swift
    structParameterProduct:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • typedef for FBSDKAppEventParameterValue

    Declaration

    Objective-C
    typedefNSString*constFBSDKAppEventParameterValue
    Swift
    structParameterValue:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable
  • Describes the callback for appLinkFromURLInBackground.

    Declaration

    Objective-C
    typedefvoid(^FBSDKAppLinkNavigationBlock)(FBSDKAppLinkNavigationType,NSError*_Nullable)
    Swift
    typealiasAppLinkNavigationBlock=(AppLinkNavigation.`Type`,Error?)->Void

    Parameters

    navType
    the FBSDKAppLink representing the deferred App Link
    error
    the error during the request, if any
  • Describes the callback for appLinkFromURLInBackground.

    Declaration

    Objective-C
    typedefvoid(^FBSDKAppLinksBlock)(NSDictionary<NSURL*,FBSDKAppLink*>*_Nonnull,NSError*_Nullable)
    Swift
    typealiasAppLinksBlock=([URL:FBSDKAppLink],Error?)->Void

    Parameters

    appLinks
    the FBSDKAppLinks representing the deferred App Links
    error
    the error during the request, if any
  • Describes the callback for appLinkFromURLInBackground.

    Declaration

    Objective-C
    typedefvoid(^FBSDKAppLinkBlock)(FBSDKAppLink*_Nullable,NSError*_Nullable)
    Swift
    typealiasAppLinkBlock=(FBSDKAppLink?,Error?)->Void

    Parameters

    appLink
    the FBSDKAppLink representing the deferred App Link
    error
    the error during the request, if any
  • Describes the callback for fetchDeferredAppLink.
    The url may also have a fb_click_time_utc query parameter that represents when the click occurred that caused the deferred App Link to be created.

    Declaration

    Objective-C
    typedefvoid(^FBSDKURLBlock)(NSURL*_Nullable,NSError*_Nullable)
    Swift
    typealiasURLBlock=(URL?,Error?)->Void

    Parameters

    url
    the url representing the deferred App Link
    error
    the error during the request, if any
  • Success Block

    Declaration

    Objective-C
    typedefvoid(^FBSDKCodeBlock)(void)
    Swift
    typealiasCodeBlock=()->Void
  • Error Block

    Declaration

    Objective-C
    typedefvoid(^FBSDKErrorBlock)(NSError*_Nullable)
    Swift
    typealiasErrorBlock=(Error?)->Void
  • Success Block

    Declaration

    Objective-C
    typedefvoid(^FBSDKSuccessBlock)(BOOL,NSError*_Nullable)
    Swift
    typealiasSuccessBlock=(Bool,Error?)->Void
  • FBSDKGraphRequestCompletion
    A block that is passed to addRequest to register for a callback with the results of that request once the connection completes.
    Pass a block of this type when calling addRequest. This will be called once the request completes. The call occurs on the UI thread.

    Declaration

    Objective-C
    typedefvoid(^FBSDKGraphRequestCompletion)(id<FBSDKGraphRequestConnecting>_Nullable,id_Nullable,NSError*_Nullable)

    Parameters

    connection
    The connection that sent the request.
    result
    The result of the request. This is a translation of JSON data to NSDictionary and NSArray objects. This is nil if there was an error.
    error
    The NSError representing any error that occurred.
  • Deprecated
    Please use the methods that use the GraphRequestConnecting protocol instead.
    FBSDKGraphRequestBlock
    A block that is passed to addRequest to register for a callback with the results of that request once the connection completes.
    Pass a block of this type when calling addRequest. This will be called once the request completes. The call occurs on the UI thread.

    Declaration

    Objective-C
    typedefvoid(^FBSDKGraphRequestBlock)(FBSDKGraphRequestConnection*_Nullable,id_Nullable,NSError*_Nullable)
    Swift
    typealiasGraphRequestBlock=(GraphRequestConnection?,Any?,Error?)->Void

    Parameters

    connection
    The connection that sent the request.
    result
    The result of the request. This is a translation of JSON data to NSDictionary and NSArray objects. This is nil if there was an error.
    error
    The NSError representing any error that occurred.
  • typedef for FBSDKHTTPMethod

    Declaration

    Objective-C
    typedefNSString*constFBSDKHTTPMethod
    Swift
    structHTTPMethod:_ObjectiveCBridgeable,Hashable,Equatable,_SwiftNewtypeWrapper,RawRepresentable