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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -