javascript - Parse.com Facebook API logIn() method. Callback never gets called -


When my click handler is called the login () function on the client, then I have a fairy popup and a record in the user's archive But callback methods are never known, but callback methods are never called. Instead, I look at the following in the JS console

  Uncort Type Type: Null Parse -1.2.18. Min.js can not read the 'getTime' property: 3  

Here is the code on my page

the establishment of the FB API

   

login method calling

  $ scope.signupFB = function () {Parse.FacebookUtils.logIn (empty, {success} (user) {/ / Can never get $ timeout (function () {$ rootScope.theUser = user; $ location.path ("/ properties");})}}, error: function (user, error) {$ scope.error = "User canceled Facebook login or not fully authorized.";}}); }  

A website "platform" is enabled in the FB app.

Next time I tried I saw

  Unwanted error: setting AuthResponse is not supported  

in JS console.

The problem comes from using the facebook api.

Switching to the old version with the fine work of Timothy.

  window.fbAsyncInit = function () {Parse.FacebookUtils.init ({AppId: '' // Facebook app ID}); }; (Function (D, S, ID) {var js, fjs = d.getElementsByTagName (s) [0]; if (DAJ ElementBiID (ID)) {return;} JS = D. Socket agreement (S ); J.D.:Id; js.src = "//connect.facebook.net/en_US/all.js"; fjs.parentNode.insertBefore (JS, FJS);} (document, 'script', 'facebook- Jssdk '));  

Notifications with all.js sdk.js


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -