Blank page when running in Facebook

Nov 12, 2009 at 10:06 PM

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

<fb:redirect url="http://www.facebook.com/login.php?api_key=a7aa4beea7e571d80da7e8c5a108c05d&v=1.0&canvas"/>

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 10:16 PM
Edited Nov 12, 2009 at 10:18 PM

Hi,

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?

Thanks!

Nov 12, 2009 at 10: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 10:46 PM

You're welcome, I think so  :)

Return(GiS);