javascript - Parse.FacebookUtils.logIn returns password error but doesn't show Facebook login -


i trying use parse.facebookutils.login() authenticate user facebook login. code seems run returns error "missing user password". facbook sign in page isn't shown user enter details. goes straight error message.

my ionic project app.js has following relevant code in $ionicplatform.ready() function (ids fake purposes of posting):

parse.initialize("aat7gx1dhzrigeutpaqnwvzmoh9dbsebyv5auo2q", "aaj7pus7ozwodd61itsupfg04druv0npfmxrpcc8");      if(!(ionic.platform.isios() || ionic.platform.isandroid())){        window.fbasyncinit = function() {          parse.facebookutils.init({            appid      : '991974558512540',            version    : 'v2.3',            xfbml      : true          });        };        (function(d, s, id){          var js, fjs = d.getelementsbytagname(s)[0];          if (d.getelementbyid(id)) {return;}          js = d.createelement(s); js.id = id;          js.src = "//connect.facebook.net/en_us/sdk.js";          fjs.parentnode.insertbefore(js, fjs);        }(document, 'script', 'facebook-jssdk'));      }

this code pretty cut , pasted facebook site. when code run ionic.platform.isios() true running on iphone.

my code using parse facebook authentication is:

   parse.facebookutils.login(['publish_stream', 'email'], {        success: function(user) {          console.log(user);          if (!user.existed()) {            alert("you have signed , logged in through facebook! : "+json.stringify(user));          } else {            alert("you logged in through facebook! : "+json.stringify(user));          }        },        error: function(user, error) {          alert(error.message);        }      });


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -