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).
views:
884answers:
1
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
2009-04-09 20:34:25
I am using the .Net API, and needs to do the check on the business layer.
Dofs
2009-04-15 10:17:56
Then Auth.getSession via the .NET api wrapper should work fine.
Darryl E. Clarke
2009-04-15 23:16:05