[desktop App] Losing session...

Nov 7, 2008 at 2:41 PM
Hi!

First of all, I want to thank you for the work on Facebook Developer Toolkit, it helps me a lot ;-).

Every 2-3 days, I'm losing my facebook session on my desktop application! I don't understand why!!! When it happens, your LIB returns me "Invalid session key or no longer valid session"....

First, do you have a method to check if the session is valid or not?

I'm storing the following informations:
- userId
- sessionKey
- secret

When the app starts, I check these values! If they're OK, then I don't call the FacebookService.ConnectToFacebook()! I just give these values to the FacebookService and then try to get my friends (--> and when the session is no longer valid (after 2-3 days), I can't get my friends and have to prompt the user with ConnectToFacebook() window....)

Do you have an idea why this happens??

Thx for help!

PS: - sessionExpires is on FALSE
      - isDesktopApplication is on TRUE
Nov 10, 2008 at 7:21 AM
no idea??
Nov 10, 2008 at 2:34 PM
You need your users to grant the 'offline access' extended permission to avoid session details expiring.  Last time I checked it wasn't possible to do this in the v2 release candidates of the FDT, but this may have been fixed in the final release.