Users.GetInfo throws Session key invalid or no longer valid

Jun 22, 2010 at 7:40 AM
Edited Jun 22, 2010 at 7:41 AM

What is recommended way to handle this exception - how to force login again or what to do ?


I am using  this code:   // Authenticated, created session and API object 

_connectSession = new ConnectSession(APPLICATION_KEY, SECRET_KEY);<font size="2">

if (!_connectSession.IsConnected()) // Not authenticated, proceed as usual.


 lblStatus.Text =   "Login!}



// Authenticated, create API instance

_facebookAPI = new Api(_connectSession);

  // Load user

user user = _facebookAPI.Users.GetInfo();   <-- crash here