How to handle the session lost in embedded iframe in a Canvas IFrame

Feb 26, 2010 at 6:29 AM

Hello.  I have a facebook Canvas application.  I also have an iframe embedded within the canvas app.  so my setup looks like this

facebook canvas

-  Default.aspx

---- MasterPage embedded in an iframe.

Basically, most of my app is within an embedded iframe contained within the facebook canvas page.

 

I've noticed that I cannot put RequireLogin = true on my embedded master page because I get an infinate loop.  There are security issues with window.top.location = apps.facebook.com since I cannot edit a page outside of my domain (facebook).  I'm wondering how I can check and restore the session (my session and facebook's session)from within the embedded iframe.  Restoring facebook's session properly would fix all my problems.  I have tried multiple ways, but every way i've tried has failed.  

 

Feb 26, 2010 at 6:52 AM
Edited Feb 26, 2010 at 6:53 AM

I wasn't passing the ClientQueryString to my iframe.  I'm assuming this was the origin of my problem.  I'm guessing that I'm gonna have to pass them on every postback too...