FB Init - reloadIfSessionStateChanged is not working
Posted
by Naresh
on Stack Overflow
See other posts from Stack Overflow
or by Naresh
Published on 2010-04-16T20:48:34Z
Indexed on
2010/04/16
20:53 UTC
Read the original article
Hit count: 704
Can some one plz tell me whats wrong with below code. After i login it doesnt do anything ... neither reloading the page nor setting the login FB cookies.
Its a simple code but i'm not sure what i'm doing wrong.
<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script>
<script type="text/javascript">
FB.init(FB_API_KEY, "xd_receiver.htm",{"reloadIfSessionStateChanged":true});
</script>
<a href='#' onclick='FB.Connect.requireSession(); return false;'> <img id='fb_login_image' src='fblogin.jpg' alt='Connect' /> </a>
© Stack Overflow or respective owner