jeduan / cordova-plugin-facebook4

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

Got error on facebook/index.js file on login #888

Closed ahmedfarag2010 closed 3 years ago

ahmedfarag2010 commented 3 years ago

Just got this error after call the function Uncaught TypeError: Object(...) is not a function at index.js:465

noahcooper commented 3 years ago

I'm not sure this error is actually related to this plugin. It does not expose any file named index.js. I'm guessing this is an Ionic issue. Perhaps this is your issue:

https://stackoverflow.com/questions/56076245/object-is-not-a-function-ionic-3-facebook-login

Either way, this plugin is deprecated. Going forward, check out https://www.npmjs.com/package/cordova-plugin-facebook-connect. (The Ionic wrapper has just been updated in https://github.com/ionic-team/ionic-native/pull/3603.)