What's new in the latest Facebook SDK?

How to upgrade?

Android

  • If your app integrates with the Facebook SDK using dynamic versioning in Maven, then you only need to rebuild your project. Upgrading the SDK requires a clean rebuild of your app. Gradle will resolve any dependencies and download the latest SDK for your app.

  • If your app integrates with the Facebook SDK in Maven but does not use dynamic versioning, upgrade now by modifying your build.gradle file with the following code and rebuild your project.
    implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
  • If your app integrates with the SDK manually, please switch to Maven and dynamic verioning by following our Getting Started Guide.

iOS

  • If your app integrates with the Facebook SDK using CocoaPods, add the following code to your Podfile.
    pod 'FacebookSDK'
    pod 'FacebookSDK/LoginKit'
    pod 'FacebookSDK/ShareKit'
    pod 'FacebookSDK/PlacesKit'
    
    pod 'FBSDKMessengerShareKit'

    Then run pod update.

  • If your app integrates with the Facebook SDK manually, please switch to CocoaPods by following our Getting Started Guide