I have been using the CanvasIFrameBasePage class and the IFrame option in my facebook application for my facebook app with the facebook developer toolkit. On Page_Load I was querying the SessionKey and Uid using the API like this:
long uid = API.uid;
string sessionKey = API.SessionKey;
When I run my application the uid and sessionKey variables are populated (I have tested with Response.Write()).
Now I want to start using CanvasFbmlBasePage but the exact same code does not work. When I run the code Response.Write() outputs 0 for the uid and "" for the sessionKey. Is there a reason this should be expected? What can I do to fix this?