Facebook-sdk-for-unity: Login dont work on Unity2017.1.1

Created on 14 Sep 2017  ·  3Comments  ·  Source: facebook/facebook-sdk-for-unity

I rotate Unity screen with "Screen.orientation = ScreenOrientation.LandscapeLeft;" and after that FB login stop working. Without this rotation everything works fine. I had same issue with other plugins. I fixed them with this fix: replace "[UIApplication sharedApplication].keyWindow" to "[UIApplication sharedApplication].delegate.window".

Most helpful comment

+1 I also have that issue

All 3 comments

I have the same issue. And it resolves when not using Screen.orientation. Would be great if someone could fix it.

+1 I also have that issue

Sorry this was an issue in Unity itself
It seems to be fixed in 2017.1.2

Release notes Unity 2017.1.2

"iOS: Fixed the underlying behaviour of the iOS player in order to make the Unity window to be the key window after an orientation change. This was causing problems when, for example, an attempt was made to open an URL when launching FBlogin through the Unity Facebook SDK when in portrait only autorotate state. (936504, 933588)"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

naklow12 picture naklow12  ·  6Comments

pvalium picture pvalium  ·  6Comments

michelleran picture michelleran  ·  4Comments

SeriouslySam picture SeriouslySam  ·  6Comments

michelleran picture michelleran  ·  6Comments