26 Jan 2014 I have use case that i need to get access token then request long lived access token. Below code achieve this use case but can't handle cached result. FB.login( function (response) { if (response.status == 'connected') //sends .