Facebook v11.0.0 Release Notes

  • ๐Ÿš€ ATTENTION: The Platform SDK v11.0 release introduces a few key changes to how dependencies will be managed moving forward. These changes are being implemented to drive more efficiency in our development process and reduce an over-reliance on singletons and tight coupling.. As part of these changes, we are currently in the process of converting existing types to use injected dependencies. As a result, many types will no longer be usable until the SDK is initialized. In order to ensure that types are configured correctly before being used, you will need to call FBSDKApplicationDelegate.application:didFinishLaunchingWithOptions: first before attempting to (i) get or set any properties, or (ii) invoke any methods on the SDK.

    โšก๏ธ The source code has been updated to include reminders in the form of exceptions in DEBUG builds across several locations. These reminders will serve as pointers for Developers to call FBSDKApplicationDelegate.application:didFinishLaunchingWithOptions: before using the SDK. For more information see: https://github.com/facebook/facebook-ios-sdk/issues/1763.

    โž• Added

    • Login with Facebook iOS app now populates a shared AuthenticationToken instance.
    • Added Limited Login support for user_hometown, user_location, user_gender and user_link permissions under public beta.
    • โšก๏ธ Updated Profile on Limited Login to include first, middle and last name as separate fields.
    • Released user_messenger_contact permission to enable Login Connect with Messenger. This new feature allows people to opt in to being contacted by a business on Messenger following the FB Login flow.
    • Added ability to add messenger_page_id param to FBSDKLoginButton and FBSDKLoginConfiguration
    • โž• Added FBSDKApplicationObserving - a protocol for describing types that can optional respond to lifecycle events propagated by ApplicationDelegate
    • โž• Added addObserver: and removeObserver: to FBSDKApplicationDelegate
    • โž• Added startWithCompletion: to FBSDKGraphRequest. Replaces startWithCompletionHandler:
    • โž• Added addRequest:completion to FBSDKGraphRequestConnection. Replaces addRequest:completionHandler:.
    • โž• Added addRequest:name:completion: to FBSDKGraphRequestConnection. Replaces addRequest:batchEntryName:completionHandler:.
    • โž• Added addRequest:parameters:completion: to FBSDKGraphRequestConnection. Replaces addRequest:batchParameters:completionHandler:.
    • โž• Added instance method activateApp to AppEvents.

    ๐Ÿ—„ Deprecated

    • FBSDKGraphRequestBlock. Replaced by FBSDKGraphRequestCompletion which returns an abstract FBSDKGraphRequestConnection in the form id<FBSDKGraphRequestConnecting> (ObjC) or GraphRequestConnecting (Swift)
    • FBSDKGraphRequest's startWithCompletionHandler: replaced by startWithCompletion:
    • FBSDKGraphRequestConnection's addRequest:completionHandler: replaced by addRequest:completion:
    • FBSDKGraphRequestConnection's addRequest:batchEntryName:completionHandler: replaced by addRequest:name:completion:
    • FBSDKGraphRequestConnection's addRequest:batchParameters:completionHandler: replaced by addRequest:parameters:completion:
    • FBSDKGraphRequestBlock
    • Class method AppEvents.activateApp. It is replaced by an instance method of the same name.

    โœ‚ Removed

    • FBSDKApplicationDelegate.initializeSDK:launchOptions:. The replacement method is FBSDKApplicationDelegate.application:didFinishLaunchingWithOptions:
    • โšก๏ธ FBSDKAppEvents' updateUserProperties:handler: method.
    • โšก๏ธ FBSDKAppEvents's updateUserProperties:handler: method.
    • FBSDKAppLinkReturnToRefererControllerDelegate
    • FBSDKAppLinkReturnToRefererController
    • FBSDKIncludeStatusBarInSize
    • FBSDKAppLinkReturnToRefererViewDelegate
    • FBAppLinkReturnToRefererView
    • FBSDKErrorRecoveryAttempting's attemptRecoveryFromError:optionIndex:delegate:didRecoverSelector:contextInfo:
    • FBSDKProfile's initWithUserID:firstName:middleName:lastName:name:linkURL:refreshDate:imageURL:email:
    • FBSDKProfile's initWithUserID:firstName:middleName:lastName:name:linkURL:refreshDate:imageURL:email:friendIDs:birthday:ageRange:isLimited:
    • FBSDKProfile's initWithUserID:firstName:middleName:lastName:name:linkURL:refreshDate:imageURL:email:friendIDs:
    • FBSDKProfile's initWithUserID:firstName:middleName:lastName:name:linkURL:refreshDate:imageURL:email:friendIDs:birthday:ageRange:
    • FBSDKAccessTokensBlock
    • โœ… FBSDKTestUsersManager
    • FBSDKGraphErrorRecoveryProcessor's delegate property
    • FBSDKGraphErrorRecoveryProcessor's didPresentErrorWithRecovery:contextInfo:
    • FBSDKGamingVideoUploader's uploadVideoWithConfiguration:andCompletionHandler:
    • FBSDKGamingImageUploader's uploadImageWithConfiguration:andCompletionHandler:

    ๐Ÿš€ 2021-06-01 | Full Changelog