Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Cordova is not defined and Facebook login error

$
0
0

@Tribe wrote:

I've followed this to a tee - https://ionicthemes.com/tutorials/about/native-facebook-login-with-ionic-framework

When running ionic serve --lab (or on device via simulator or an actual device build) I'm getting the following errors.

On start:

Uncaught ReferenceError: cordova is not defined

That's coming from:
/*
* @author Ally Ogilvie
* @copyright Wizcorp Inc. [ Incorporated Wizards ] 2014
* @file - facebookConnectPlugin.js
* @about - JavaScript interface for PhoneGap bridge to Facebook Connect SDK
*
*
*/

if (cordova.platformId == "browser") {

When I click on the Facebook login button, nothing happens (both in browser and on device) and I'm getting the error:

TypeError: Cannot read property 'getLoginStatus' of undefined
at Scope.$scope.facebookSignIn (http://10.1.1.4:8100/js/controllers.js:63:28)

Which is: facebookConnectPlugin.getLoginStatus

I had it all working 2 days ago and now I'm unsure what's happened.
Any assistance or ideas would be very much appreciated.

Thank you!

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>