Integrate Facebook Login into the application. Error in keytool

Asked

Viewed 84 times

1

Hello,

I’m trying to integrate Facebook login in my application, so when the user registers he can do this with Facebook. I’ve seen several tutorials here - on the site- and on the internet how it is done. But to get the hash key I have a problem.

What am I doing:

  • I enter the CMD
  • I make the command to go to the directory cd C:/user/Artur/. android
  • Then inside I put the commands that the facebook site itself teaches and other tutorials also:
  • keytool -exportcert -alias androiddebugkey -Keystore %HOMEPATH%. android debug.Keystore | openssl sha1 -Binary | openssl Base64

But the message appears showing that windows does not recognize the command keytool

In other tutorials I saw, instead of pointing the way to user/Artur/. android it was to aim at the cmd to c:/Programs/java/java7

I tried to do this and in here you recognize the command keytool, but does not recognize the command openssl.

Seriously, I must have seen at least 10 different tutorials, from when the main IDE was Eclipse to more recent tutorials with android 2.3 Has anyone ever been through it ? If someone can give me a light, because I don’t know what I’m doing or what I’m doing wrong anymore

  • You may need to install Openssl and configure it as an environment variable in Windows. You can find some tutorials on this in Google. Also take the opportunity to configure the keytool in the environment variable Path so that you can access it without having to go in the directory c:/programs/java/java7

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.