views:

884

answers:

1

Is there a way in the Facebook Connect API for .Net to check if a session is expired or if it is still valid? Some times I can receive the userId but if I try to get any other info, it tells me that the session is expired, which is why I would like to check if the session is expired before trying to receive the uid (since I won't be able to use it if the session is expired).

A: 

Checking Auth.getSession should return whether or not the users session is still valid.

If you're using the JS API, FB.ApiClient.sessionIsExpired will be true.

Darryl E. Clarke
I am using the .Net API, and needs to do the check on the business layer.
Dofs
Then Auth.getSession via the .NET api wrapper should work fine.
Darryl E. Clarke