I am a ASP.NET developer using Facebook Developer Toolkit to develop a facebook flash application with flash developer.
When the user plays the game for a certain period of time, there are chances that the facebook session expires and I can’t call any Facebook API for processing as a result.
What should I do for this problem?
AFAIK, Facebook uses sliding expiration for the session ticket. As such, you could ensure that the FB session does not expire, by making regular requests to FB. For example, you could ask FB for the latest user status message every five minutes.
Update: Link to the Facebook dev docs on the session keys.