login - Facebook javascript/ fbconnect ifuserconnected causing problems -
well i'm reading fb connect tutorial here
http://wiki.developers.facebook.com/index.php/facebook_connect_tutorial1
the problem i'm having near end of tutorial, it's saying do
<script type="text/javascript"> fb.init("apikey","xd_receiver.htm", {"ifuserconnected" : update_fbuser}); </script>
as oppose
<script type="text/javascript"> fb.init("apikey","xd_receiver.htm"); </script>
now problem is, when use first one, login facebook button have stops showing, notice wrong first one, second 1 works fine (just doesnt use ifuserconnected)
thanks :)
first of looking @ old api deprecated. if starting better start current one. can read here.
as code. need declare callback function update_fbuser()
called when user login status changes. don't have breaks. can find more examples here (but again old api, things different).
Comments
Post a Comment