Unity Facebook SDK IOS Not Returning to app

680 views Asked by At

I'm trying to use Facebook login with an iOS app built in Unity. I'm using the 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 :-(

3

There are 3 answers

0
Ed Biden On BEST ANSWER

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. I suspect that I didn't copy the code across from their examples exactly correct or something.

0
Namit Nangia On

TLDR : Place these 2 files into Plugins/iOS folder and that fixes it.

What version of Unity are you using? This seems to be a Unity 5.5 bug, see this conversation on Facebook Developer forum

0
Nathan Romriell On

In case anyone finds this question when searching on Google like I did. I was running iOS 10.3 with Unity 5.6 and had this happen. The specific reason I found was that Firebase Invites was not compatible with the Unity Facebook sdk. Once I removed it everything worked as expected so make sure to check your other third party libraries.