jeduan / cordova-plugin-facebook4

Use the latest Facebook SDK in your Cordova and Ionic projects
Other
765 stars 510 forks source link

activateApp never calls any of the callbacks (Success & Error) #836

Closed omardoma closed 3 years ago

omardoma commented 4 years ago

Bug or feature request

[X] I'm reporting a reproducible issue with the code [ ] I'm reporting a feature request

Describe the Bug of feature request

I have two environments for my Ionic 4 app, staging and production, so I need a way to programmatically enable facebook events only on production, so I disabled auto events collection like so in Cordova's Config.xml

Android: `

`

iOS: `

FacebookAutoLogAppEventsEnabled

`

And I relied on this part of the docs to activate the app only on production, but the problem is that I call it and none of the callbacks are getting invoked, so I can't even get an error.

Expected Behavior

activateApp should work correctly.

Plugin version, OS, devices, etc

Plugin Version: 6.2.0

Ionic:

Ionic CLI : 5.4.6 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.11.4 @angular-devkit/build-angular : 0.803.18 @angular-devkit/schematics : 8.3.18 @angular/cli : 8.3.18 @ionic/angular-toolkit : 2.1.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android 8.1.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 19 other plugins)

Utility:

cordova-res : 0.8.0 (update available: 0.8.1) native-run : 0.2.8 (update available: 0.2.9)

System:

Android SDK Tools : 26.1.1 (/Users/omardoma/Library/Android/sdk) ios-deploy : 1.9.4 ios-sim : 8.0.2 NodeJS : v10.16.3 (/usr/local/Cellar/node@10/10.16.3/bin/node) npm : 6.12.0 OS : macOS Mojave Xcode : Xcode 11.1 Build version 11A1027

omardoma commented 4 years ago

Any updates on this please ? @peterpeterparker

peterpeterparker commented 4 years ago

Not that I know. Could you provide a PR?

omardoma commented 4 years ago

I am afraid I don't really have experience in developing Cordova plugins, is the plugin no longer maintained?

noahcooper commented 3 years ago

This plugin is deprecated. Check out cordova-plugin-facebook-connect at https://www.npmjs.com/package/cordova-plugin-facebook-connect. That plugin now properly calls the callbacks passed to it.