Facebook SDK for Unity Android does not log in if Facebook App is installed

匆匆过客 提交于 2020-01-16 23:53:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!