问题
Related post #1
Related post #2
So my problem is the same as the one in these posts, but I have no idea how to implement any of the solutions found in the threads. I'm running FB SDK 4.3.6 with Unity 4.2.0. I'm basically just trying to run the InteractiveConsole Scene with an android phone that has the FB app installed. When trying to login it just throws me back to the console. Without the FB app the login works perfectly.
Now I do know that those solutions work somehow, but where or how in the world should I use them? None of the answers really tell that in a way that an idiot like me could understand. I don't have any experience on Java or Android in itself, so all I can do is Unity and C#. So how would I modify the InteractiveConsole script to make this work?
回答1:
Ok I got this fixed by printing the keyHash from AndroidFacebook.OnLoginComplete() to a GUIText and the copying it from there to the facebook dev site. All other means gave me an invalid hash. I have no idea why this is the case, but I'm just glad it works.
来源:https://stackoverflow.com/questions/22066822/facebook-sdk-for-unity-android-does-not-log-in-if-facebook-app-is-installed