Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safari web view opening when logging to FB through iOS 9

I've followed this guide to update my application to use Facebook SDK 4.6 for iOS 9 SDK.

When I tap the login button now, a Safari view controller gets presented, whereas it should redirect to the Facebook app(App is installed on iPhone).

Is any additional handling required ? It was working fine on previous versions(v4.3.0).

like image 297
sudhanshu-shishodia Avatar asked Sep 03 '15 12:09

sudhanshu-shishodia


2 Answers

From a product manager at Facebook in the "Facebook Developer Community" group.

enter image description here

And my Reply, still waiting for a response:

enter image description here

So it sounds like with SDK 4.6 they are forcing every login to use the Safari View Controller.

EDIT ----

And their response: enter image description here

like image 191
Rodrigo Neri Avatar answered Nov 16 '22 03:11

Rodrigo Neri


From FacebookSDK version 4.6 and above, they are forcing every login to use the Safari View Controller on iOS 9.

There are 2 way to fix this:

  1. Use the lower version of SDK
  2. Enable native app login again by using this code https://github.com/tuantmdev/MTNativeFacebookLogin

Hope this help!

like image 33
tuantm Avatar answered Nov 16 '22 03:11

tuantm