HEY developers
i integrated facebook sdk with unity4. In facebook setting package name and class name shown but Debug Android Key Hash is not showing and also a warning message appear that your Android Debug Keystore file is missing. i tried to create new key but the message still exist.
FACEBOOK SDK VERSION=4.3.6
UNITY4
please help me i am stuck
thanx in advance
UPDATE: I got it. If your %HOMEPATH% environment variable is, let’s say, on your C: drive but your Unity project is on another drive (in my case the S: drive, which is where all company projects get put), then when the Facebook SDK calls System.IO.File.Exists(DebugKeyStorePath), DebugKeyStorePath is wrong. That’s because DebugKeyStorePath is looking in
System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore"
but HOMEPATH only returns
\Users\MyUserName
and not
C:\Users\MyUserName
What I did to fix the problem, as a workaround, was to go to the FacebookAndroidUtil.cs file, and on line 62 change the code from
System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore" :
to
System.Environment.GetEnvironmentVariable("HOMEDRIVE") + System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore" :
which now works fine. Hopefully this works for you too.