Comments (3)
The success/error callbacks are not great but it's the standard Cordova interface for plugins.
That being said, as much as I love Bluebird for getting me into promises, it's a massive dependency, so I wouldn't be in favor of adding it to this project. A promisifying solution based on native promises such as this would be preferred
from cordova-plugin-facebook4.
That requires a Promise polyfill to work multiplatform, and there's a few lengthy discussions at the cordova mailing list over whether that's an interesting thing and how far deep should the polyfill go.
As far as I remember, they decided to let it be a shallow plugin that other plugins could depend on, instead of having plugins with huge and significant dependencies like Bluebird (awesome project btw). However, I'm still to see said plugin alive.
Possible workaround
That said, you might wanna look at the ng-cordova project, if you're working with angular.
from cordova-plugin-facebook4.
Yeah, what @fredgalvao just said. Just a quick note that Promises are now native to iOS >= 8.0 and Android if targeting >= KitKat either natively or using crosswalk (which you should honestly), so no need to polyfill IMHO.
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.