unity-game-enginefacebook-unity-sdk

Unity Facebook integration. Keystore file missing


I am using the latest version of Unity. I am trying to integrate the latest version of Facebook SDK into my app. In the Unity editor where facebook settings are displayed, I get an error saying that my keystore file is missing.

Screenshot

I have Openssl installed and added to environment variables. I have JDK 1.8 installed and added to environment variables. I have JRE 1.8 installed and added to environment variables.

Obviously, I have a keyfile that I have generated using Unity. Please help me in what I am doing wrong. There was one similar discussion, but the original question was different. That's why I posted this here. Also the answers there are outdated as it was 4 years old.


Solution

  • The facebookSDK is looking for your debug.keystore which should be present in your user folder like so:

    C:\Users\userName\.android\debug.keystore

    To create a new debug.keystore use the following command

    keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
    

    more explainations about debug.keystore here: What is the use of debug.keystore in android? and How can I create a keystore?