This project is read-only.

Postback resets session?

Sep 23, 2011 at 11:41 AM


I'm creating a tabpage application. The problem I have is that when I generate a postback, I lose all of my facebook data.
I tried to put the data in a session, but after postback my session also seems te be reset.

I also can't redirect to other pages from my application. Then I get the following error :
Cannot find Facebook POST data as expected. Make sure you're viewing this page in an Iframe Application Tab of a Facebook Page.

Is this a facebook bug, or am I doing something wrong?


Sep 23, 2011 at 3:25 PM

This is not a bug, it's due to the strange way iframe works. Refer to here to see how to redirect users: .

If you wish to pass data to another page, you must pass it via querystring. Session variables won't work in this environment.

Sep 23, 2011 at 4:58 PM

Ok, that should work. Thx for your reply.

But I still don't see what I am doing wrong when navigating through my app.

I have a page called 'default.aspx', and if you click through the page 'home.aspx' should open. But then I get the 'Cannot find Facebook POST data as expected' error.

I tried a html link, response.redirect and the script from the link you mentioned.
I tried," and relative linking.

None of it seems to work.