Unity Android using Facebook SDK, missing Debug Android KeyHash

Thanks to everyone in advance

I followed this documentation:

and this particular video for integrating facebook into Android:

But Unity does not fill out (like in the video) the “Debug Android Key Hash” field that I have to paste into my facebook application.

Problem screenshot

I have installed:

  • Unity 4.2
  • jdk1.7.0_25 (with Path environment variable)
  • all versions of android sdk
  • openssl (in C: \ openssl)

I tried to manually create the "debug.keystore" file using cmd.exe ( Facebook Android Generate Key Hash ) with keytool and moved it to "C:\Users\(My UserName)\.android", but Unity did not find the key hash.

- ? ...

-------------- SOLVED ------------------------

Facebook Android Generate Key Hash, debug.keystore, "C:\Users\(My UserName)\.android" facebook

+4
3

script Unity :

keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl base64

( mac, Mac)

. https://developers.facebook.com/docs/android/getting-started/facebook-sdk-for-android/

, , :

"C:\Users\(My UserName)\.android"

"C:\Users(My UserName).android"

( )

, debug.android , .

- , keytool, openssl . . , PATH.

, .

+1

like this

, eventappkey.keystore debug.keystore SHA1 - , facebook, ,

0

You can try to create an empty project in Android Studio (you can delete it later). Doing this creates the required debug.keystore file in the directory "C: \ Users \ {username} \. Android".

0
source

All Articles