facebook javascript sdk login popup not opening up -
i trying implement facebook login on website. next code:
$('#facebook_login').live('click',function(){ fb.getloginstatus(function(response) { if (response.status === 'connected') { var info = {facebook: true, accesstoken: response.authresponse.accesstoken } $.ajax({ url: '/registerajax', type: 'post', datatype: 'json', data: data, success: function(data){ console.log(data); } }); }else if (response.status === 'not_authorized') { alert('the person logged facebook, not app.'); } else { alert('the person not logged facebook, we\'re not sure if logged app or not.'); } },{scope:'publish_actions'}); });
as per chrome console, getting 302 facebook. googled not find relevant post.
javascript facebook facebook-javascript-sdk facebook-login http-status-code-302
No comments:
Post a Comment