The Facebook SDK for Android consists of the following component SDKs:
If you don't need the functionality of the full Facebook SDK for Android, you can save space by using only the component SDKs that you need to support the Facebook products that you want to use in your app.
When you use the Facebook SDK, some events in your app are automatically logged and collected 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 implementation statements to your build script:
implementation 'com.facebook.android:facebook-applinks:latest.release'
implementation 'com.facebook.android:facebook-common:latest.release'
implementation 'com.facebook.android:facebook-core:latest.release'
implementation 'com.facebook.android:facebook-gamingservices:latest.release'
implementation 'com.facebook.android:facebook-login:latest.release'
implementation 'com.facebook.android:facebook-messenger:latest.release'
implementation 'com.facebook.android:facebook-share:latest.release'
To add an implementation statement:
buildscript { repositories {}}
section to download the SDK from the Maven Central Repository:
mavenCentral()
dependencies{}
section.
You can also download the entire Facebook SDK for Android.
See facebook/facebook-android-sdk on GitHub.