Git Product home page Git Product logo

Comments (14)

jeduan avatar jeduan commented on August 25, 2024

Facebook just changed that in their SDK.

As mentioned in #18 iOS 9 changed the way external apps are opened, so opening the Facebook App needs to accept a dialog twice (once to go app -> Facebook and then to go back Facebook -> app) so that's the likely reason they decided to use what looks like SFSafariView.

There's a bit more info at their FAQ in https://developers.facebook.com/docs/ios/ios9

from cordova-plugin-facebook4.

uofmmike avatar uofmmike commented on August 25, 2024

I'm struggling on this one, Is there a way to get this to open in the native app?

from cordova-plugin-facebook4.

sean-hill avatar sean-hill commented on August 25, 2024

Hey @uofmmike,

The new Facebook SDK is stupid and opens the auth in SFSafariView instead of the native app. There has been a conversation here. The solution was to use the older v3 version of the Facebook SDK and add in the relevant code in your .plist file. Take a look at that thread.

from cordova-plugin-facebook4.

daniel-gato avatar daniel-gato commented on August 25, 2024

Using Parse to register my device, I can't downgrade to a lower SDK. Otherwise, it will simply not compile my Xcode project (conflict between frameworks in the Facebook SDK and Parse SDK).

Am I missing something here?

from cordova-plugin-facebook4.

Savankumar-vaishnav avatar Savankumar-vaishnav commented on August 25, 2024

Hey This is very bad. I have find out so many solution. Nothing work proper.

from cordova-plugin-facebook4.

jeduan avatar jeduan commented on August 25, 2024

As you already know this is the way the Facebook SDK works now.

from cordova-plugin-facebook4.

kaansoral avatar kaansoral commented on August 25, 2024

I experience this too, with both the telerik version and this plugin

I have an old wizcorp version in production, luckily that one functions as expected (haven't tried the wizcorp version again yet)
(so it's not an iOS 9 issue, the production one just asks whether the "Facebook" app should be opened, then opens it, and succeeds with the auth)

For me it's not just a browser, but it falls back to web auth, so the user has to manually re-enter their fb password, which beats the purpose

Any ideas?

from cordova-plugin-facebook4.

jeduan avatar jeduan commented on August 25, 2024

@kaansoral This has been talked so many times in the issues of this repo. Here's one experiment: Download the Facebook SDK and run the examples to see if they have the bug too.

from cordova-plugin-facebook4.

kaansoral avatar kaansoral commented on August 25, 2024

@jeduan yes I see the reports, yet I don't see anything definitive

  • Are you saying that this is not a bug and this is how things work now? (high friction)
  • Are you saying that this is a bug that will be solved when Facebook updates the SDK?
  • Are you saying that there is something wrong with the way I'm doing things and ideally the auth should be native?

I just see closed issues and no information, it would be great if this issue was mentioned in the Readme so others would know what to expect

from cordova-plugin-facebook4.

jeduan avatar jeduan commented on August 25, 2024

Again, did you download the SDK and run the examples?

This is the way the SDK works on Version >= 4.5 and it's the solution Facebook's engineers chose because Safari can now share cookies between the FB App and Safari (or SFSafariView in this case).

The reason you're getting the old method with Wizcorp's is because phonegap-facebook-plugin is still on a very old version of the SDK, which, as you noted depends on the user tapping twice on a dialog asking to open an external app. If the user doesn't tap "Open" on that dialog, then they're stranded and need to go to Settings before they can do anything. Guessing that's friction on FB's engineer's book.

Anyways, using the latest SDK from Facebook ensures that your app always uses the best method for the phone's OS version.

from cordova-plugin-facebook4.

kaansoral avatar kaansoral commented on August 25, 2024

img_1308

This is how it appears for me by the way, tested the "Share It!" example app, like you suggested, it seems that one experiences the same issue too, a better auth UI shows up (with the app logo), but again a web one, that doesn't utilise the auth that exists on the facebook app (same situation on an iPad too)

At this point I will probably dig up an earlier version of one of the plugins that will let me publish an app update, I will check this plugin and try using earlier version of the SDK as the app invites feature is pretty useful

from cordova-plugin-facebook4.

kaansoral avatar kaansoral commented on August 25, 2024

As an update, this is the solution: Wizcorp#1206

from cordova-plugin-facebook4.

hirbod avatar hirbod commented on August 25, 2024

Even when there is an option to force the fast app switching flow, once the user decide to click no (in Facebook or inside your app), the dialog won't appear anymore and they will stuck inside the app until they go inside of the settings and toggle the switch. You guys need to accept the new flow. Once this has been normalized, it will be the new standard. Facebook login token will stay there forever as long as they don't remove cookies and local data. You can read the Facebook blog post about this. The data is promising. Users already accept the new flow - and once used, it's incredibly fast - more then switching around

from cordova-plugin-facebook4.

adyz avatar adyz commented on August 25, 2024

@hirbod -- Where can we "toggle the switch"?

from cordova-plugin-facebook4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.