Using Facebook SDK in Android development, Part 1.
Connecting to Facebook from an Android application is not as easy, as it looks. This guide will help you through some problems that you will propably encounter, with a clear and simple solution.
1. Step
First of all, download the official Facebook SDK from this site: https://github.com/facebook/fa
After that, create an application in this http://www.facebook.com/develo
2. Step
You need to create the key hash value of your signature and your android debugkeystore (for the develop stage), and than add them to your Facebook Application, in the application site. (Edit Settings -> Mobile and Devices section)
To do this, we need Openssl, download from: http://code.google.com/p/opens
To create this hash values, you need to navigate to your JAVA jdk folder, where the keytool.exe is. (In my case, in windows is: c:\Program Files(x86)\Java\jdk 1.6.0_24\bin)
Copy your debug.keystore to there from the (in my case) c:\Users\MyUserName\.android folder. In the jdk/bin folder, open a command prompt, and execute the following:
keytool -exportcert
(Use your openssl folder, and hit enter when asking password)
Navigate to the openssl/bin folder, and we have a debug.txt here, which contains the keystore values, but not in the expected format! Open a command promt from there, and execute the following commands:
- openssl sha1 -binary debug.txt > debug_sha.txt
- openssl base64 -in debug_sha.txt > debug_base64.txt
And now we are DONE! The debug_base64.txt contains the hash value, we need to copy it to the application site, in the Mobile and Devices section.
You need to do the this hash creating flow with your signature too, to make working apk-s!
3. Step
Finally we can start coding... In the next part!
New tutorials from Helloandroid
Recent Apps
Android on Twitter
-
@StephanieNich10 (Stephanie Nichols)#android I laughed so hard at ochocinco 's avi. Hahahaha http://t.co/MPuhhi3m
25 weeks 4 days ago -
@CarlaAtkins8 (Carla Atkins)#android Omg! This is actually f'n interesting http://t.co/JodMOehr
25 weeks 4 days ago -
@MarianMcleod12 (Marian Mcleod)#android Precisely what song is? http://t.co/YmJXU0rB
25 weeks 4 days ago -
@JoBeach15 (Jo Beach)#android haha this made me laugh, i love ted:-) http://t.co/gtcWQ79C
25 weeks 4 days ago -
@aochart3 (青ちゃ)Start playing Paradise Island on Android http://t.co/DEID0Ao5 #Android #Androidgames #Gameinsight http://t.co/e1bifSeL
25 weeks 4 days ago
Poll
Useful resources
Android Development Projects
- Apple & Android app - Connecting our CRM and an external GPS device by kshyamnatraj
- Flash&Actionscript app for android by mobistar2013
- Mobile application by hscottda
- Whatsapp Bulk Messaging Software by michaeljauw
- Android Simple Punchclock App - repost by luidiva
- Private Project For Globas by shargeltariq
- create and publish an app on Google Play by duberpain
- Skout similar for experts IOS and Android Developers only please let your bid be final, social app - repost 5 by expemployer
- News Android APP by orionpr
- Web & Mobile app (offline functionality, cross platform, data synchronization) by MonKayDE



