Changelog and release notes for the Facebook SDK for iOS.
FBSDKCoreKit_Basics dependency version: >= 5.6.0. We advise you adopt the latest release for best performance and stability. Download FBSDKCoreKit_Basics from GitHub.
Removed deprecated media rendering method from public API. Remove usage of
mediaViewRenderingMethod to ensure that your Audience Network integration continues to work.
Our SDK will no longer successfully link with projects which have bitcode enabled, that are built with Xcode10.
Rewarded video design improvements.
Interstitial design improvements.
We have removed all references to
UIWebView which has been deprecated by Apple.
Updated designs for image interstitials.
Updated designs for link-click interstitial end cards.
Changes to networking and caching logic to improve their performance.
We have changed the flag for the label for Mixed Audiences, from
MixedAudience. More information on Mixed Audiences and COPPA can be found here:
FBSDKCoreKit_Basicsdependency bumped to version 5.6.0 or greater.
ld: warning: instance method 'adnw_URLEncodedString' in category from ... conflicts with same method from another category
There is a conflicting instance method 'adnw_URLEncodedString' that is present in two different categories. There will not be any side effects as the implementation of this method is identical in both places. There is a warning indicating this issue when building in Xcode, it is safe to ignore it.
Size classes are now supported by AN iOS SDK.
Interstitial and Rewarded Video formats now require Apple's
setIdleTimerDisabledflag setting respected after video playback.
FBSDKCoreKit_Basicsdependency bumped to version 5.2.1 or greater.
UIImageViewnow interchangeable with
Native Banner Ads can now be created with
UIImageView. New methods (see below) have been added to allow this. Note that using
FBMediaView is still supported.
@interface FBNativeBannerAd /** This is a method to associate a FBNativeBannerAd with the UIView you will use to display the native ads. @param view The UIView you created to render all the native ads data elements. @param iconImageView The UIImageView you created to render the icon @param viewController The UIViewController that will be used to present SKStoreProductViewController (iTunes Store product information) or the in-app browser. If nil is passed, the top view controller currently shown will be used. The whole area of the UIView will be clickable. */ - (void)registerViewForInteraction:(UIView *)view iconImageView:(UIImageView *)iconImageView viewController:(nullable UIViewController *)viewController; /** This is a method to associate FBNativeBannerAd with the UIView you will use to display the native ads and set clickable areas. @param view The UIView you created to render all the native ads data elements. @param iconImageView The UIImageView you created to render the icon @param viewController The UIViewController that will be used to present SKStoreProductViewController (iTunes Store product information). If nil is passed, the top view controller currently shown will be used. @param clickableViews An array of UIView you created to render the native ads data element, e.g. CallToAction button, Icon image, which you want to specify as clickable. */ - (void)registerViewForInteraction:(UIView *)view iconImageView:(UIImageView *)iconImageView viewController:(nullable UIViewController *)viewController clickableViews:(nullable NSArray<UIView *> *)clickableViews;
Our iOS SDK now uses a new cache for storing downloaded ads. This new cache is more reliable and should reduce the number of caching errors.
As we're adding
FBSDKCoreKit/FBSDKCoreKit_Basics as a dependency of the iOS SDK, changes will be needed in project dependencies.
For developers using CocoaPods, no code change will be required. Simply run pod repo update and pod install and the project will be automatically updated to the latest version.
For developers integrating manually, a manual dependency to
FBSDKCoreKit.framework has to be added to the project. It can be done by following these steps:
FBSDKCoreKit.frameworkand its stripped down version (
FBSDKCoreKit_Basics.framework) from our GitHub release page.
If your application is already using
FBSDKCoreKit it needs to be upgraded to FB SDK version 5.0.
This version is identical to 5.3.0 but built with XCode 10.1. Please use this if you are not using XCode 10.2 or later to build your application.
This version will work with XCode 10.2 or later. In case XCode 10.1 is used to build the application, please use Audience Network SDK 5.3.1
FBAdOptionsViewfor Native ads which provides greater flexibility