I am trying to check if a user is logged in with my app, but I am getting a
FB.getLoginStatus() called before calling FB.init().
This error will also occur if you don't provide an appId to FB.init. Example:
FB.init({ appId: '' , channelUrl: '//domain/channel.html' , status: true , cookie: true });
Will result in: