Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.Ein6tein:android-simple-facebook:'
}
dependencies {
implementation("com.github.Ein6tein:android-simple-facebook:")
}
<dependency>
<groupId>com.github.Ein6tein</groupId>
<artifactId>android-simple-facebook</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.Ein6tein" % "android-simple-facebook" % ""
:dependencies [[com.github.Ein6tein/android-simple-facebook ""]]
v2.3
and below. In the future, I will make the needed changes to support latest changes on FB side. Currently, I don't have much time to maintain. PRs are welcomed.Simple Facebook SDK for Android which wraps original Facebook SDK. <br>
This is a library project which makes the life much easier by coding less code for being able to login, publish feeds and open graph stories, invite friends and more.
Since my feeling was that the usage of Facebook SDK was too complicated for simple actions like login, I decided to create simpler API for the same actions. I use this library in my applications and maintain the code.
<img src="https://fbstatic-a.akamaihd.net/rsrc.php/yl/r/H3nktOa7ZMg.ico" height="16" width="16"/> Facebook page: Library: simple-fb
<br>
<img src="http://stackoverflow.com/content/stackoverflow/img/apple-touch-icon.png" height="16" width="16"/> Stack overflow: android-simple-facebook
<br>
<img src="https://assets-cdn.github.com/favicon.ico" height="16" width="16"/> Issues: here
dependencies {
compile 'com.sromku:simple-fb:4.1.1'
}
Library jar | Branch | Supported Facebook SDK ------------|--------|------------------------ simple-facebook-2.2.jar | v2.0 | 3.14 - 3.23 simple-facebook-1.2.jar | v1.0 | 3.0 - 3.8
The sample app includes examples for all actions. Check out this very short wiki page of how to run and setup the sample app.
<img src="https://github.com/sromku/android-simple-facebook/wiki/images/sample-app.png" width="600"/>Login/Logout
Publish
Requests/Invite
Get
Additional options
Samples
And,
LoginButton
view for being able to login/logout. You can use any View
.READ
and PUBLISH
permissions. Just mention the permissions you need and this library will care for the rest.Everything is explained in wiki
Copyright 2013-present Roman Kushnarenko
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
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.