I have been trying to integrate the Facebook Login Button into my website by using this code:
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId : 'myActualId',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
<fb:login-button show-faces="false" width="200" max-rows="1"></fb:login-button>
However, when I try to test it, the debug console keeps showing me an error message that says "FB.login() called before calling FB.init()."
To demonstrate the issue, I created a test page which can be viewed here:
I am quite puzzled as to what I might be doing wrong in my implementation. Any guidance or assistance on this matter would be greatly appreciated!
Thank you, Alex