Showing posts with label facebook login. Show all posts
Showing posts with label facebook login. Show all posts

April 3, 2015

Integrating Facebook SDK 4.0.0 into Android Application

I have seen so many queries about this in stack overflow and other forums where so many people giving so many answers but, none of them really helped me my problem. I have searched and finally found a tutorial in YouTube which really solved my purpose. So, I decided to write this tutorial in my blog also so that people will reach to it. So here is the video I am embedding.
  So, in this tutorial he will explain clearly about the integration of SDK and will take you up to the successful login using Facebook.

If you have any doubts comment below of mail me at ething4pc@gmail.com 

April 1, 2015

Create Facebook Development Hash key for your Android application

Facebook Hash key generation

When you want to integrate Facebook login to your android application it will ask you to enter Development Hash key and Release Hash key. In this tutorial I will show you how to create development hash key through the command prompt Step by step.

I am writing this tutorial because I myself has struggled a lot for getting this hash key procedure. So, I am writing here my procedure of getting hash code.

Step 1 : Download OpenSSL for windows if yours is 32 Bit you have to download 32 bit version here I have provided the link for 64 Bit version. Download as a zip file or rar file.
Step 2 : Extract the files into the folder named OpenSSL and put that folder into your C:\ Drive.
Step 3 : Copy this path C:\Program Files\java\jdk1.8.0_31\bin\
Step 4 : Open command prompt in windows and paste this cd C:\Program Files\java\jdk1.8.0_31\bin\
Step 5 : Now copy and paste the following code

keytool -exportcert -alias androiddebugkey -keystore "C:\\Users\\YourName\\.android\\debug.keystore" | "C:\\OpenSSL\\bin\\openssl" sha1 -binary |"C:\\OpenSSL\bin\\openssl" base64

That's it now you will be prompted to enter the text to change it into hash code you can enter anything either your name or your app name etc.

You will get the code now copy that and past it in your facebook developer hash key text box.

This is it guys, I hope you pretty much understood. If you face any problem comment below or mail me at ething4pc@gmail.com I will definitely answer your queries.