Skip to content

popoempire/facebook-android-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook SDK for Android

Build Status Maven Central

This open-source library allows you to integrate Facebook into your Android app.

Learn more about about the provided samples, documentation, integrating the SDK into your app, accessing source code, and more at https://developers.facebook.com/docs/android

TRY IT OUT

  1. Check-out the tutorials available online at https://developers.facebook.com/docs/android/getting-started
  2. Start coding! Visit https://developers.facebook.com/docs/android/ for tutorials and reference documentation.

FEATURES

STRUCTURE

The SDK is separated into modules with the following structure. Each box represents a module with an estimated size when included into an app (when included using proguard and supporting a single language).

+--------------------------------------------------------------+
|                                                              |
|  Facebook-android-sdk : 367.95 kb                            |
|                                                              |
+--------------------------------------------------------------+
+----------+ +----------+ +----------+ +----------+ +----------+
|          | |          | |          | |          | |          |
|          | |          | |          | |          | |          |
| Facebook | | Facebook | | Facebook | | Facebook | | Facebook |
| -Login : | | -Share : | | -Places :| |-Messenger: |-Applinks:|
|          | |          | |          | |          | |          |
| 276.94 kb| | 282.46 kb| | 53.76 kb | | 91.63 kb | | 65.96 kb |
+----------+ +----------+ |          | |          | |          |
+-----------------------+ |          | |          | |          |
|                       | |          | |          | |          |
| Facebook-Common : N/A | |          | |          | |          |
|                       | |          | |          | |          |
+-----------------------+ +----------+ +----------+ +----------+
+--------------------------------------------------------------+
|                                                              |
| Facebook-Core : 52.61 kb                                     |
|                                                              |
+--------------------------------------------------------------+

Example: Including the Facebook-Login module (which depends on Facebook-Common and Facebook-Core) would increase your app's size by an estimated 276.94 kb and including just Facebook-Core would only increase your size by 52.61 kb.

USAGE

Facebook SDKs are broken up into separate modules as shown above. To ensure the most optimized use of space only install the modules that you intend to use. To get started, see the Installation section below.

INSTALLATION

Facebook SDKs are published to Maven as independent modules. To utilize a feature listed above include the appropriate dependency (or dependencies) listed below in your app/build.gradle file.

dependencies {
    // Facebook Core only (Analytics)
    implementation 'com.facebook.android:facebook-core:4.31.0'
    
    // Facebook Login only
    implementation 'com.facebook.android:facebook-login:4.31.0'
    
    // Facebook Share only
    implementation 'com.facebook.android:facebook-share:4.31.0'
    
    // Facebook Places only
    implementation 'com.facebook.android:facebook-places:4.31.0'
    
    // Facbeook Messenger only
    implementation 'com.facebook.android:facebook-messenger:4.31.0'
    
    // Facebook App Links only
    implementation 'com.facebook.android:facebook-applinks:4.31.0'
    
    // Facebook Android SDK (everything)
    implementation 'com.facebook.android:facebook-android-sdk:4.31.0'
}

You may also need to add the following to your project/build.gradle file.

buildscript {
    repositories {
        mavenCentral() 
    }
}

GIVE FEEDBACK

Please report bugs or issues to https://developers.facebook.com/bugs/

You can also join the Facebook Developers Group on Facebook (https://www.facebook.com/groups/fbdevelopers/) or ask questions on Stack Overflow (http://facebook.stackoverflow.com)

CONTRIBUTING

We are able to accept contributions to the Facebook SDK for Android. To contribute please do the following.

  • Follow the instructions in the CONTRIBUTING.mdown.
  • Submit your pull request to the dev branch. This allows us to merge your change into our internal master and then push out the change in the next release.

LICENSE

Except as otherwise noted, the Facebook SDK for Android is licensed under the Facebook Platform License (https://github.com/facebook/facebook-android-sdk/blob/master/LICENSE.txt).

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

DEVELOPER TERMS

By using the Facebook SDK for Android you agree to these terms.

About

Used to integrate Android apps with Facebook Platform.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.7%
  • Other 0.3%