I\'ve this message in my console
FB.getLoginStatus() called before calling FB.init().
My code
I got it working using this code: