fb:iframe - page rendering problem

Mar 18, 2008 at 4:19 AM
Hey Friends,

I have very strange problem in my Facebook Application. I am describing below that problem.

I have selected FBML and canvas page URL is
http://myserver/FacebookAppDir/Default.aspx

I have a page default.aspx and it contains

<%@ Page Language="C#" %>
<fb:iframe src="http://myserver/FacebookAppDir/MainPage.aspx" width="100%" height="750" frameborder="0" smartsize ="false" ></fb:iframe>

In each and every page there is a top bar that is user control. I have written code in that for Facebook Authentication.
e.g.
fbService.ApplicationKey = FACEBOOKAPPKEY;
fbService.Secret = FACEBOOKSECRET;
_fbService.IsDesktopApplication = false;

string sessionKey = Session"facebook_session_key" as String;
userId = Session"facebook_userId" as String;
.....................................................
...................More code...................
...................................................


When I call my application in Facebook, blank page renders with no output, no error, just a white page.
If I remove Facebook authentication code then it works perfectly.

I don't know why this happens. I have gone through most of the facebook related helps but found nothing helpful.
Please help me out.

Thanks.