I include the code above in every page, because I want to read user data. With previous version of toolkit it works fine. Also if someone try to open some page outside the facebook, cs.Login() automaticly redirect to Facebook.
Now, the command cs.Login() produce this error:
System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at Facebook.Session.IFrameCanvasSession.RedirectTopFrame(String
redirect) at Facebook.Session.IFrameCanvasSession.RedirectToLogin() at Facebook.Session.CanvasSession.Login() at ____ in ____:line ____
and the application refresh continously without stop.
Without cs.Login(), the application works fine (instead of Api.Users.GetInfo() now I use cs.UserId), but when user is inactive (for example 10 minutes), and then click on some link in application, the facebook refresh and open the first page of application