Blank page when running in Facebook

Nov 12, 2009 at 9:06 PM

When I deploy my application, I just see a blank frame.  If I view the source, I see this:

<fb:redirect url=""/>

But nothing happens.  I have the following code specified:

        protected void Page_PreInit(object sender, EventArgs e)
            base.RequireLogin = true;

        protected void Page_Load(object sender, EventArgs e)
            Response.Write("Hello, " + Api.Users.GetInfo().name);

Only if I cut out the url and paste it into the browser will it actually allow me to add the application.

Any tips?  Thanks!

Nov 12, 2009 at 9:16 PM
Edited Nov 12, 2009 at 9:18 PM


I have the same problem with my ASP.NET MVC Application, when IsFbml is true. And if I don't write any properties in FacebookAuthorization, exception happens (Invalid parameters) (I have the keys in my web.config).

Any suggestion?


Nov 12, 2009 at 9:26 PM

Alright, you made me review my code, and I figured out where I went wrong.  I had the following in my page:

public partial class _Default : Facebook.Web.CanvasFBMLBasePage

When I should have had:

public partial class _Default : Facebook.Web.CanvasIFrameBasePage

All working now.

Thanks, Wade

Nov 12, 2009 at 9:46 PM

You're welcome, I think so  :)