Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avianey/facebook-api-android-maven
The mavenized Facebook Android SDK on Maven Central Repository
https://github.com/avianey/facebook-api-android-maven
Last synced: 2 months ago
JSON representation
The mavenized Facebook Android SDK on Maven Central Repository
- Host: GitHub
- URL: https://github.com/avianey/facebook-api-android-maven
- Owner: avianey
- License: apache-2.0
- Created: 2013-02-05T11:34:03.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T03:52:40.000Z (over 7 years ago)
- Last Synced: 2023-12-17T20:30:12.376Z (about 1 year ago)
- Language: Java
- Homepage: https://developers.facebook.com/docs/android/
- Size: 1.24 MB
- Stars: 84
- Watchers: 8
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome - facebook-api-android-maven - The mavenized Facebook Android SDK on Maven Central Repository (etc)
- awesome - facebook-api-android-maven - The mavenized Facebook Android SDK on Maven Central Repository (etc)
README
## Facebook Android SDK for Maven & Gradle
Current port is based on the v3.18.0 available at https://developers.facebook.com/android/
The API is packaged as an **aar** and available from Maven Central Repository for use with **Maven** or **Gradle**.[![](https://coinbase.com/assets/buttons/donation_large-6ec72b1a9eec516944e50a22aca7db35.png)](https://coinbase.com/checkouts/0c34d3ca1be50e54a20bc83446b4db00)
###How to use
####Maven
The **aar** dependency requires the use of the maven-android-plugin 3.8.1+ with maven 3.1.1+ :
```xml
fr.avianey
facebook-android-api
3.18.0
aar```
If you want to use a newer version of the android-support-v4 dependency, exclude the old one with this line :
```xml
fr.avianey
facebook-android-api
...
support-v4
com.google.android
```
You might want to add the **jar** dependency as well to support code completion in Eclipse ADT. Adding the **jar** will result in **DEX** errors at build time as the Facebook API classes will be added twice to the generated **apk**. To solve the problem, build your project from command line and reference the **jar** dependency in the **m2e** (Eclipse only) Maven profile :
```xml
m2e
m2e.version
fr.avianey
facebook-android-api
3.18.0
jar
support-v4
com.google.android
```
####Gradle
Add the following dependency to your build.gradle
```javascript
dependencies {
compile 'fr.avianey:facebook-android-api:+@aar'
// other dependencies
}
```If you want to use a newer version of the android-support-v4 dependency, exclude the old one with this line :
```javascript
configurations.all {
exclude group: 'com.google.android', module: 'support-v4', version: 'r7'
// other configurations
}
```