Registering android App with facebook

Leave a Comment
Hello Friends,
First of all you might be thinking that what is the need of registering your android application with facebook? Then I want to clarify that If you want to integrate Android application with facebook then  you need to register your android app with the facebook.
Today I am going to explain you how to register your android application with facebook.
Following are two  easy steps to do this.

Step: 1   Generating App Signature for Facebook Settings

You can generate your application signature (keyhash) using keytool that comes with java. But to generate signature you need openssl installed on your pc. If you don’t have one download openssl from here and set it in your system environment path.
Open your command prompt (CMD) and run the following command to generate your keyhash. While generating hashkey it should ask you password. Give password as android. If it don’t ask for password and don’t give you app signature then your keystore path is incorrect.
keytool -exportcert -alias androiddebugkey -keystore "C:\Users\Indies\.android\debug.keystore" | openssl sha1 -binary | openssl base64


Step: 2    Registering your Facebook Application

After generating your app signature successfully, register your facebook application by going to create new facebook  application and fill out all the information needed. And select Native Android App and give your hashkey there which you generated previously using keytool.

 See the following image which shows application Id which you have to use in your application for accessing facebook:

Hope it helps..If You have any doubts then You can ask.Your comments are always welcome. :)
Thanks

0 comments:

Post a Comment