Repeatedly check the login status of the user? <p>I would like to regularly check the status of the logged in user. My method is as follows but I am unsure as to whether this is the best way to go about it.</p> <pre><code>window.fbAsyncInit=function(){ FB.init({ appId:'123', status:true, cookie:true, xfbml:true, channelUrl:'file', oauth:true }); setInterval(function(){ FB.getLoginStatus(function(a){ // do something },300000); }); } </code></pre> <p><strong>I am aware of the 'subscribe' functions but I am not really sure what they are for. If these are suitable then I will consider using them but I need to have a clearer picture of what they do and how often. I have read the documentation and they simply say that it attaches a handler. This is not very detailed!! What does it attach a handler to!!??</strong></p> <p>Additionally, if I want to call FB.getLoginStatus outside of the 'fbAsyncInit' function, is this possible?</p> <p>Any help much appreciated.</p>