Facebook API in Javascript - FB.getLogInStatus is not a function -


i've searched on site answer, none of other suggestions fix problem.

i'm trying implement facebook's api , check see if there's connection. should 'no_authentication', haven't set way of submitting credentials yet. however, keep getting 'fb.getloginstatus not function' , cannot figure out i'm doing differently else.

<body> <script type="text/javascript" src="http://connect.facebook.net/en_us/all.js"></script> <script type=text/javascript> fb.init({   appid      : '-----',   xfbml      : true,   version    : 'v2.8' });  fb.getloginstatus(function(response) {   if (response.status === 'connected') {     document.getelementbyid('status').innerhtml = 'it connected';   } else if (response.status === 'not_authorized') {     document.getelementbyid('status').innerhtml = 'not logged in';   } }); </script> <div id="status"></div> </body> 

originally using code facebook's quick start guide, getting same error: https://developers.facebook.com/docs/javascript/quickstart i've tried turning off 'sandbox mode' in developer account, didn't have on in first place.

any appreciated, can't make heads or tails of this.

did try getloginstatus instead of getloginstatus?


Comments