Are there any cons of build the facebook SDK library project into a JAR file(as ADT 16 does with library projects) and adding it to your project? I am not changing anything in the facebook SDK so don't need to have it added as a library project. So far it has been working fine for me and I am wondering whether this is a common practice used by developers using the facebook SDK? It speeds up the build process quite a bit because Eclipse doesn't have to resolve all of the resources in the library projects.
5 Answers
Yes! I just figured it out myself.
You need two jar files:
- facebooksdk.jar
- android-support-v4.jar
Option 1
The first can be found in the bin folder, the latter in the Android Dependencies folder. (Of the FacebookSDK project)
After adding them both as libraries to my project (Project --> properties --> Java Build Path --> Libraries) it actually worked.
Option 2
Another way is to copy paste the facebooksdk.jar and get the android-support-v4.jar via Right-click on project --> Android Tools --> Add Support Library.
Good luck =)

- 551
- 8
- 19
Kasgoku,
The code is provided as a project for easy viewing of the classes. Adding it as an included jar or just moving the source into your project also works. When I created an FB connected android app, I moved the files I needed into a package in my app.

- 318
- 1
- 9
It looks like maven has them cached.

- 1,610
- 1
- 15
- 19
-
This is the *sources* jar – Michel Jung Oct 19 '16 at 10:16
You can create a jar file :
- Download Facebook Android SDK from github.
- Extract it. (at any location).
- In Eclipse create new project using create project from existing source option
- Enter the project name as "com_facebook_android".
- Set Location to "facebook" folder in extracted location.
- Click Finish.
- Select the "com_facebook_android" project in project explorer and right click select export option.
- In the export wizard select JAR file in Java folder.
- Click next then browse the location for jar file and give the name as yor wish like "facebook-android.jar"
- Click finish........ JAR file will be created in that location

- 7,479
- 3
- 37
- 69
Well guys you dont need to manually make a .jar file out of facebook-android-sdk. You can use easyfacebook.jar. It currently supports:
- Oauth 2.0 authentication support
- Use the access token
- Pictures upload support
- Supports all the features of Graph API
- It can run any query FQL
- Contains BEAN of all facebook objects
- It's free. LGPL GNU license
- Progress dialog
- Logout function
- Server/Request Error Management
- Key hash/Geo Tagging
- Login without facebook app

- 10,090
- 2
- 44
- 61