Comments (14)
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.
I'm struggling on this one, Is there a way to get this to open in the native app?
from cordova-plugin-facebook4.
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.
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.
Hey This is very bad. I have find out so many solution. Nothing work proper.
from cordova-plugin-facebook4.
As you already know this is the way the Facebook SDK works now.
from cordova-plugin-facebook4.
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.
@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.
@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.
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.
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.
As an update, this is the solution: Wizcorp#1206
from cordova-plugin-facebook4.
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.
@hirbod -- Where can we "toggle the switch"?
from cordova-plugin-facebook4.
Related Issues (20)
- Plugin does not work on browser platform with Cordova 9 HOT 1
- get acces_token for send in my personnal login HOT 1
- cordova-plugin-facebook4 issue with UIWebView HOT 29
- Unable to start the app and initializing the SDK. HOT 2
- IOS ITMS-90683: Missing Purpose String in Info.plist - NSLocationWhenInUseUsageDescription HOT 1
- Compatibility Facebook SDK v7 HOT 10
- Cordova app closes after displaying Facebook login screen HOT 1
- App/Plugins/cordova-plugin-facebook4/FacebookConnectPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler HOT 1
- On FB Dialog Login Screen HOT 2
- How i can get deep link?
- Error: Unable to merge dex HOT 1
- While using latest version of google plugin with cordova-plugin-facebook4 app is crashing HOT 1
- IONIC 5 - delay transition pages after login HOT 1
- Got error on facebook/index.js file on login HOT 1
- Facebook Login Suddenly Fails on Oct 1st - Permission Error HOT 4
- Facebook login is not redirecting back to app when you facebook app installed HOT 5
- Facebook api calling a users picture (no redirect) HOT 1
- unable to upgrade to FB SDK (iOS) 8.1.0 HOT 21
- IOS facebook sdk 5.15.0 is deprecated HOT 2
- Failed to install 'cordova-plugin-facebook4': Error: pod: Command failed with exit code 1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-facebook4.