简体   繁体   English

Unity Facebook SDK IOS未返回应用

[英]Unity Facebook SDK IOS Not Returning to app

I'm trying to use Facebook login with an iOS app built in Unity. 我正在尝试将Facebook登录与Unity中内置的iOS应用结合使用。 I'm using the Facebook Unity SDK (7.9.0). 我正在使用Facebook Unity SDK(7.9.0)。 The login seems to work fine, but afterwards, instead of returning to the app, I stay in the safari window, with a blank white screen. 登录似乎可以正常工作,但是之后,我没有回到应用程序,而是停留在野生动物园窗口中,白屏空白。

enter image description here 在此处输入图片说明

I saw some similar questions on StackOverflow, but none were answered in enough detail for me to work out what to do to fix it, and I don't have enough reputation to ask clarifying questions :-( 我在StackOverflow上看到了一些类似的问题,但是没有得到足够详细的答复,我无法解决该问题,而且我没有足够的声誉来提出澄清的问题:-(

So I never found out what caused this problem, but I uninstalled the Facebook SDK and then reinstalled it and it works as expected now. 因此,我一直没有找到导致此问题的原因,但我卸载了Facebook SDK,然后重新安装它,现在它可以按预期运行。 I suspect that I didn't copy the code across from their examples exactly correct or something. 我怀疑我没有从他们的示例中完全正确地复制过代码。

In case anyone finds this question when searching on Google like I did. 如果有人像我一样在Google上搜索时发现此问题。 I was running iOS 10.3 with Unity 5.6 and had this happen. 我在Unity 5.6上运行iOS 10.3,并且发生了这种情况。 The specific reason I found was that Firebase Invites was not compatible with the Unity Facebook sdk. 我发现的具体原因是Firebase Invites与Unity Facebook sdk不兼容。 Once I removed it everything worked as expected so make sure to check your other third party libraries. 一旦删除它,一切都会按预期工作,因此请确保检查您的其他第三方库。

TLDR : Place these 2 files into Plugins/iOS folder and that fixes it. TLDR:将这两个文件放入Plugins / iOS文件夹中,然后对其进行修复。

What version of Unity are you using? 您正在使用哪个版本的Unity? This seems to be a Unity 5.5 bug, see this conversation on Facebook Developer forum 这似乎是Unity 5.5错误,请在Facebook开发者论坛上查看此对话

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM