Safari web view opening when logging to FB through

2019-01-18 11:36发布

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

5条回答
够拽才男人
2楼-- · 2019-01-18 12:21

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

查看更多
放荡不羁爱自由
3楼-- · 2019-01-18 12:26

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?

查看更多
贪生不怕死
4楼-- · 2019-01-18 12:33

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楼-- · 2019-01-18 12:35

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?

查看更多
Root(大扎)
6楼-- · 2019-01-18 12:40

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!

查看更多
登录 后发表回答