Component SDKs of the Facebook SDK for Android

The Facebook SDK for Android consists of six component SDKs:

If you don't need the functionality of the full Android SDK, you can save space by using only the SDK(s) you need to support the Facebook products you want to use in your app.

Note that when you use one of the Facebook SDKs, events in your app are automatically logged and collected for Facebook Analytics unless you disable automatic event logging. For details about what information is collected and how to disable automatic event logging, see Automatic App Event Logging.

To link with Maven to one of the component SDKs in your project, add one of the following compile statements to your build script:

  • compile 'com.facebook.android:facebook-core:[4,5)'
  • compile 'com.facebook.android:facebook-login:[4,5)'
  • compile 'com.facebook.android:facebook-share:[4,5)'
  • compile 'com.facebook.android:facebook-places:[4,5)'
  • compile 'com.facebook.android:facebook-messenger:[4,5)'
  • compile 'com.facebook.android:facebook-applinks:[4,5)'

To add a compile statement:

  1. In your project, open your_app | Gradle Scripts | build.gradle (Project) and add the following repository to the buildscript { repositories {}} section to download the SDK from the Maven Central Repository:
    mavenCentral() 
  2. In your project, open your_app | Gradle Scripts | build.gradle (Module: app) and add one or more of the compile statements to the dependencies{} section.
  3. Build your project.