Help to get current session

Jun 9, 2010 at 8:51 PM
Hi there, I have made an small app in FB, but sometimes It seems like if my app doesn't get the active session, then to check I added a fb.login-button, and when I click it, everything goes fine, I am not sure If I am missing a command or if I need to set a procedure or function to read that, I have been reading a lot of examples and I did not see something like that, any sugestions??? It is a canvas app. c# and if anyone wants to check this is the url: http://apps.facebook.com/qdigitales/ Any help is welcome. Nelson
Jun 11, 2010 at 6:49 PM
Edited Jun 11, 2010 at 6:50 PM
Nelson14 wrote:
Hi there, I have made an small app in FB, but sometimes It seems like if my app doesn't get the active session, then to check I added a fb.login-button, and when I click it, everything goes fine, I am not sure If I am missing a command or if I need to set a procedure or function to read that, I have been reading a lot of examples and I did not see something like that, any sugestions??? It is a canvas app. c# and if anyone wants to check this is the url: http://apps.facebook.com/qdigitales/ Any help is welcome. Nelson

Are you using a master page? You need to make sure that the master page has a call to the Canvas FBML login control.
<cc2:CanvasFBMLLoginControl ID="CanvasFBMLLoginControl1" runat="server" RequireLogin="true"  />


Edit: Obviously if you are using a master page, make sure all your pages are linked up with the master.