diff --git a/app/scripts/controllers/facebook-example.js b/app/scripts/controllers/facebook-example.js index bdaa806..d21261f 100644 --- a/app/scripts/controllers/facebook-example.js +++ b/app/scripts/controllers/facebook-example.js @@ -5,10 +5,12 @@ angular.module('facebook') $scope.facebookCtrl = { - fbAuthData : Parse.User.current().get('authData'), response : {} }; + if(Parse.User.current()) { + $scope.facebookCtrl.fbAuthData = Parse.User.current().get('authData'); + } $scope.fbConnect = function() {