Well, here I am trying to integrate a website with facebook connect and I'm trapped in some strange ring of hell.
I have seen 2 ways of initializing the js on a fbc site, I've tried both repeatedly but they only do opposite halves of the whole job I need done.
<script src="http://connect.facebook.net/en_US/all.js"></script>
...
$(document).ready(function(){
FB.init({'appId':'000',
'cookie':true,
'status':true,
});
});
This is what the official documentation says to do, however this does not load all the features. FB.Connect is undefined, ensureInit does not do anything and I'm screwed. The other code I have seen is
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
...
$(document).ready(function(){
FB.init("000", "/xd_receiver.htm");
});
This at first seems to be great, because it loads the FB.Connect features... but it seems like this is the only set of features it loads as FB.ui is undefined, FB.getLoginStatus is undefined and all the other "core functions" are undefined...
Trying to include both the different js files leads to strange errors and half initialized sessions, I'm not sure what the difference between the 2 different types of FB.init calls are...
Thank you!