Unity Facebook SDK v7.9.0 totally doesn't work on iOS (Unity version 5.3.2)
On Android everything is fine (no problems at all), but on iOS it doesn't work at all, no callbacks (so I can't even login)... Any advice?
Answer by stanleylkm · Feb 08, 2017 at 05:45 AM
Just found the solution and hidden cause of this problem. ( Read it up in this link : https://developers.facebook.com/bugs/900542723380664/) I have Google Play Games integrated in my game too, and it has a GPGSAppController.mm which also overrides AppController, and have a openURL function insides it, and somehow when the openURL error which was supposed to happen at UnityAppController.mm's openURL , didnt trigger inside GPGSAppController.mm's openURL, causing the Facebook Login to just hang at the white screen after user's permission interaction. Just put this 2 scripts (https://bitbucket.org/snippets/etliaojing/aanKj) in your build ( if you dont already have a script that overrides UnityAppController) and everything will be fine. In the case where you already have one , make sure to apply similar fix to the openURL function to your AppController script.
This works for me you have copy paste two files at your Plugins/iOS folder. But google login got fail turn.
pingwu, do you have a gpgscontroller.mm file? if you do, pleasappe look at the application openurl function, there should be a part where it is commented and says "uncomment this if you extend another appcontroller class that needs to handle being opened from a url". uncomment the following few lines of codes below it and google sign in should work
Your answer
Follow this Question
Related Questions
[HELP URGENT] Resolving dependencies. 0 Answers
Facebook + Unity iOS app crash on startup 0 Answers
Getting Player Picture with bad request in unity 5 1 Answer
FacebookSDK 7.10 - Unity 2017 1 Answer