如果安装了Facebook应用的Facebook SDK的统一A​​ndroid不登录 [英] Facebook SDK for Unity Android does not log in if Facebook App is installed

查看:233
本文介绍了如果安装了Facebook应用的Facebook SDK的统一A​​ndroid不登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<一个href=\"http://stackoverflow.com/questions/19051361/facebook-unity-sdk-on-android-login-fails-when-fb-app-installed\">Related后#1

<一个href=\"http://stackoverflow.com/questions/13894006/android-facebook-sdk-3-0-gives-remote-app-id-does-not-match-stored-id-while-lo\">Related后#2

所以我的问题是一样的一个在这些职位,但我不知道如何实现在任何线程中发现的解决方案。我跑FB SDK 4.3.6与4.2.0统一。我基本上只是想用安装了FB的应用程序的Andr​​oid手机运行InteractiveConsole场景。当试图登录它只是抛出我回控制台。如果没有FB应用的登录完美的作品。

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.

现在我知道,这些解决方案以某种方式工作,但在这里还是在世界上应该怎么使用?答案没有真正告诉的方式,像我这样的白痴能理解。我没有关于Java或Android的经验本身,因此,所有我能做的就是团结和C#。所以,我怎么会修改InteractiveConsole脚本,使这项工作?

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?

推荐答案

好吧,我得到这个由打印从AndroidFacebook.OnLoginComplete的keyHash(固定)到GUIText并复制它从有到Facebook的开发站点。所有其他手段给了我一个无效的哈希值。我不知道为什么是这样的话,但我很高兴它的工作原理。

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.

这篇关于如果安装了Facebook应用的Facebook SDK的统一A​​ndroid不登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆