- Home /
Facebook login crash on Android. FB.Login
In the editor, this code with other functions added run perfectly and I can set scores and other useful things. But even running this barebones login crashes on android.
Facebook will initialize, but instantly crash when loginFunction is called.
Unity 5.6.x, Facebook SDK 7.9.4, Android build facebook setting match in the editor and in dev/facebook.
keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%.android\debug.keystore | openssl sha1 -binary | openssl base64
^^^ gives me a matching key to what I have in editor and on dev/fb
What am I missing?
Answer by Olamire · Aug 02, 2017 at 07:55 AM
Did u ever solve your problem?
@noorkaximi yes, it was Gradle , Facebook no longer works ADT or Default. I used Gradle and it solved my issues. Try it
Answer by NoDumbQuestion · Jan 10, 2018 at 07:28 AM
I got this problem today. This is how i fix this:
Ctrl + Shift + B. Then switch build system from Gradle -> Internal -> Gradle.
I think it trigger Facebook background resolver or reimport something.
This work for me. Hope it work for someone too.