12

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).

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
sudhanshu-shishodia
  • 1,100
  • 1
  • 11
  • 25

5 Answers5

16

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

Rodrigo Neri
  • 304
  • 3
  • 4
  • very very bad and boring ! – Can Aksoy Sep 15 '15 at 18:30
  • So..That's the new way to build an app with facebook login? The only way to get the previous behavior is to downgrade my FB SDK? – Lucas Brito Sep 17 '15 at 00:48
  • Yes Rodrigo, This seems to be default behaviour. However, I'm using system credentials as priority for login. – sudhanshu-shishodia Sep 23 '15 at 10:42
  • @CanAksoy - why? Our incentives are aligned here, and we are taking decisions based on data across our entire ecosystem to make the best possible experience for people and developers. Hundreds of millions of people are signed into Safari, so with Safari VC they have an awesome FB Login experience - its fast and easy. Just because you may not be signed into Safari, we suggest you don't build an app which purposefully prevents the hundreds of millions of people people who are signed into Safari from having the best possible experience. – Simon Cross Oct 01 '15 at 15:50
  • @cheeseRoot please don't use the system credentials. You'll find that significantly more people are signed into Safari than are signed into iOS at the system level, and thus you'll be degrading people's experiences - not great for you, Facebook, or most importantly, the people who use your app. Safari View Controller on iOS 9 offers the best user experience for the many people who are signed into Safari. – Simon Cross Oct 02 '15 at 06:37
  • Apart from the screenshots, is there a link you can provide to the discussion within the facebook developer community? – Jessedc Oct 16 '15 at 03:44
  • This would be ok if the modal forced it's way to the top but it doesn't. It can sit underneath existing modals with no way of selecting it. – Moss Palmer Oct 27 '15 at 17:58
  • Most of the users will choose to use facebook app instead of browse it on safari... really a big impact for app using facebook login. – Tony Fung Nov 04 '15 at 08:23
4

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!

tuantm
  • 81
  • 7
1

We’ve seen hard numbers about this exact issue. On October 8 we released the first version of the app with FBSDK 4.6 In the same update we made our login flow more prominent in the UI, so we saw a significant uptick on email signups. However, our Facebook logins went down at the same time. This effect did not occur for iOS 8 users (email and facebook logins went up together). Here is a graph. Red is email signups, blue is facebook for iOS 9 users only.

Facebook vs Email signups chart

tl;dr The latest update to the Facebook SDK killed our facebook conversion rates!

@ CanAksoy Is Facebook seeing the same effect internally? I agree that our interests are aligned here, what trend has moving everyone to Safari had on your conversion rates globally?

Tyler Sheaffer
  • 1,953
  • 1
  • 16
  • 16
0

for opening the Facebook app -

Open your plist as source code , And add the following code -

 <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>fbapi</string>
        <string>fb-messenger-api</string>
        <string>fbauth2</string>
        <string>fbshareextension</string>
    </array>

It is working for me in iOS 9

Abhishek Mishra
  • 1,625
  • 16
  • 32
-1

I also did recieve FB login with Safari. But after setting up all config-s for iOS 9 (https://developers.facebook.com/docs/ios/ios9), login worked with FB app again (I'm using 4.4. SDK). Anybody else with this experience?

Miha
  • 1
  • 2