Search code examples
iosunity-game-enginefacebook-unity-sdk

Facebook-unity-sdk not using iOS native SSO


I'm working with Unity 4.6 and Facebook Unity SDK 6.0.

On Android things appear swell, but on iOS I don't seem to be utilizing the native Facebook SSO. It constantly reverts to the browser-based login, which really gives off a unprofessional vibe.

I've tested this on ten different devices, all using both Developer certificates.

And I've gone through the following checklist:

  • XCode on running recieves no errors or logs that should indicate anything wrong, yet still uses the old "browserbased" login solution.
  • This also applies when i use the example scene contained in the SDK.
  • The app is enabled for SSO in Facebook Developer console, and the bundle IDs match.
  • The FBXXXXXXXXX URL sceme is in the info.plist and appears just fine in XCode.
  • The FacebookAppID key in the info.pList is also set, and uses the numerical facebook app id.
  • In facebook, the app is open to the general public, has the contact email required, and the iOS bundle is configured.

I've tried with both developer, admin and "stranger" accounts, and not a single one could get the native iOS facebook login.

Have anyone met this ? Most similar cases I could find are over a year old and does not really apply to this.


Solution

  • In Facebook SDK 7.2 change shareDialogMode in Unity itself in MobileFacebook.cs enter image description here