Safari Web View Opening When Logging to Fb Through iOS 9

Safari web view opening when logging to FB through iOS 9

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

Sample Image

And my Reply, still waiting for a response:

Sample Image

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

EDIT ----

And their response:
Sample Image

Facebook Login - iOS 9 - Without Safari

Using 20150708 solved it for me in iOS 9.

Link to SDK: https://developers.facebook.com/resources/FacebookSDKs-iOS-20150708.pkg

IOS, Facebook keeps opening in webview instead of Safari

Turns out my Application was being built on 6.0. It got fixed once I started running it on 4.3.

iOS 9 - Facebook fails to open installed iOS app

Just got a reply from Facebook.. So my assumption was correct, Facebook needs to update their own info.plist in order to open other iOS apps with short urls..

UPDATE: However, I've been digging a lot and found out that you can open your app from a Facebook post with AppLinks, which works perfect. Full documentation on applinks.org.

What Facebook doesn't mention is that you need scrape the website you modify, in order for changes to take effect. One way to do it is to copy paste the website address in https://developers.facebook.com/tools/debug/og/object/ and apply "Fetch new scrape information", otherwise it won't work.

Codename one. Log in with Facebook using Webview component

Currently the Codename One build server uses Facebook IOS SDK 4.4, which uses the default behaviour of opening the Facebook app to authenticate - if installed - and the Safari app if it is not installed.

If you switch to the "iphone_new" build target (which will soon be standard) it uses the newer Facebook IOS SDK 4.12, which will (by default) handle the authentication inside a web view in your app.

Running some tests on this approach, I found that, on iOS 9, you need to add the following to your ios.plistInject build hint:

<key>LSApplicationQueriesSchemes</key><array><string>fbauth2</string></array>

I have just committed a change that will include this automatically so after the next server update (probably on Friday), it will just work without this build hint.

UPDATE June 14, 2016

I have just updated this in SVN so that it will use IOS SDK 4.12 by default with will resolve this issue without having to make any changes. The server will be updated Friday - after which you should be able to just send your build (with no special build hints) and it will work.

Can't open my app from facebook in-app browser iOS 9

Edit

There is an active bug report open for this https://developers.facebook.com/bugs/802238099898150/


As far as I understand, iOS 9 changed the way apps can interact with other Apps using custom URL schemes (Read more here). The basic idea is that Facebook can no longer intelligently open other apps using a custom scheme as they have to register all the schemes they support inside the App plist.

I have tested AppLinks with YouTube, 9GAG, Flipboard and IMdB and none of them work as they used to. The advertised behaviour (found here) is that your App will be opened if your link contains the relevant html app links tags.

Now the only way to open your app is to tap "Share" in the Facebook browser of the page you want to open, and you should see a "Open in 9GAG" line item that will open your app.

Facebook App Invites opens SafariViewController instead of Native app

It seems like this was designed by Facebook, apparently Facebook choses to use SafariViewController to avoid asking for permission to switch app several times. You can check the FAQ here

FAQ

Why do I see a ' wants to open Facebook' alert dialog when invoking a
dialog?

In iOS 9, the app switches can prompt the user with a confirmation
dialog. The SDK will try to minimize the frequency of this by choosing
the best dialog available (such as SafariViewController), but this is
by design in iOS 9.



Related Topics



Leave a reply



Submit