DarkSprite, thanks for pointing out the solution. Just to elaborate a little bit.
Line 61 of Facebook/Editor/android/FacebookAndroidUtil.cs (Facebook SDK 4.3.6) returns the following path to debug keystore:
return (Application.platform == RuntimePlatform.WindowsEditor) ?
System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore" :
System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + @"/.android/debug.keystore";
The first option will be returned:
System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore"
HOMEPATH environment variable returns the following:
\Users\MrFoo
Therefore, the following will be returned:
\Users\MrFoo.android\debug.keystore
This will be perfectly fine if your project/Unity installation (don’t know which one) is located on the same drive as your system, but if it’s anything else, this will fail. For example, my system (together with Users folder) is located on C:, Unity is installed on V:, and project located on W:.
Now, HOMEDRIVE environment variable contains the letter of your OS drive, so if you edit the code above and do the following, just as DarkSprite suggested, you’ll get a proper path to your debug keystore:
return (Application.platform == RuntimePlatform.WindowsEditor) ?
System.Environment.GetEnvironmentVariable("HOMEDRIVE") +
System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore" :
System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + @"/.android/debug.keystore";
This will return just what you need:
C:\Users\MrFoo.android\debug.keystore