Your Android setup is not correct. See settings in Facebook menu.

Your Android setup is not correct. See Settings in Facebook menu.
UnityEngine.Debug:LogError(Object)
Facebook.Unity.Editor.XCodePostProcess:OnPostProcessBuild(BuildTarget, String)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I am getting that error but I don’t know how to fix it. I’ve searched everywhere but their problems does not relate to this error.

Did you resolve this problem? I’ve tried downgrading the Android tools folder, but that didn’t work. I have the latest Unity version and the latest Facebook Unity SDK.

Same problem, using Unity 2018.1.5.f1 on windows 10 pc. Error message is completely useless, if you’re going to thow an error that prevents building then at least show the cause of the problem.

How does your Facebook settings look like?

Do you find how to resolve this problem? I have got this issue :frowning:

Do anyone got the solution?? Same problem here

Hey from the distant 2026! I had to solve this as well with the 18.0.0 SDK from Facebook as the newest right now. The solution was that OpenSSL and Java Token generation are mandatory, not optional, in the Facebook Edit Settings inspector you should see a warning telling you OpenSSL is missing, go to OpenSSL’s official website and download the “light” version of the newest EXE and install it, then you need to set path Environment Variables in your Windows for the OpenSSL installation path + for Java (you will get another yellow warning after reseting unity in the Facebook Editor Settings if the Java action is needed, it will tell you). If everything is correct you should see a “Debug Android Key Hash” value appear in that field in the Facebook Editor Settings (its empty while the configuration isnt correct). From there as a last action, the current Facebook SDK due to its old age is made to work with “Activity” Application Entry Point, while Unity now defaults to “GameActivity”. To change this go to Build Profiles → Android → Player Settings → “Other Settings” tab → “Application Entry Point” → there are two fields under it “Activity” and “GameActivity”, by default GameActivity is the one that is checked, uncheck it and check “Activity” → Now try to Build & Run with a connected Android device, for me this got me to the finnish line. Hope it helps!