Uid is null between pages?

Dec 3, 2008 at 8:52 AM

I recently just started looking in to the Facebook API. I tried the sample application and it seemed to work okay, but I am more interested in persisting the session variables over multiple pages.  Instead of having a friendlist, I have an image, two labels that pull variables from the API (Picture URL, Firstname, Lastname).  The labels seem to work when I log in to Facebook and calls back the first time but when I navigate to another page (keeping in mind the controls are on the masterpage), it throws a nullreference error. From what I can tell from the trace, the session_key is maintained in session, but the userid is not. I get that this is probably the source of the problem.

So why doesn't the userid stay in session? Does it not work like that?
Dec 3, 2008 at 1:18 PM
I fixed it. I just needed to convert uid to a string.