Safari web view opening when logging to FB through

2019-01-18 11:41发布

问题:

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

回答1:

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

And my Reply, still waiting for a response:

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

EDIT ----

And their response:



回答2:

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!



回答3:

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?



回答4:

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



回答5:

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?