Search Unity

Facebook sdk Keytool not found (again >_<)

Discussion in 'Editor & General Support' started by AnonDreamer, Oct 29, 2015.

  1. AnonDreamer

    AnonDreamer

    Joined:
    Oct 28, 2014
    Posts:
    30
    Hi there, so here's my problem, i'm trying to add facebook support for an android game, but the keytool doesn't seem to be found, i looked on the net and did the following things:

    - install open ssl, then pul the following path in the environment variable "path":
    ;D:\INSTALLS\OpenSSL\bin

    Then i downloaded the java sdk (jdk1.8.0_65) and did the same thing:
    ;D:\INSTALLS\Java\jdk1.8.0_65\bin

    Then i created an environment variable "JAVA_HOME" with the following value:
    D:\INSTALLS\Java\jdk1.8.0_65

    I restarted unity and still have the same message being prompted:
    https://gyazo.com/91e93267979876671e810827580b083d

    I'm a bit lost, i managed to create the key hash using directly the keytool command but i've got an error saying that facebook settings aren't correct. (because it doesn't find the keytool)

    Anybody has an idea how i could fix this ? i'm using unity 5.1.2f1 and the facebook sdk 7.2.1

    Thanks for reading :)
     
  2. AnonDreamer

    AnonDreamer

    Joined:
    Oct 28, 2014
    Posts:
    30
    EDIT: ok so i managed to get it working, since i knew that the command was working, because i just used it in windows cmd prompt, i just commented the following lines in the "FacebookAndroidUtil.cs" file:

    Code (CSharp):
    1. if (!DoesCommandExist("keytool"))
    2. {
    3.        setupError = ErrorNoKeytool;
    4.        return null;
    5. }
    It seems to work just fine now :)
     
    Last edited: Oct 30, 2015