Facebook.Schema.user u = Master.Api.Users.GetInfo(); 500 & Redirected

May 26, 2010 at 10:49 PM

Hi Guys,

 I'm new on this and have set things up (Canvas page app) with the MasterPage, so far the basics are working, I can get the userid, however, when I do the following..

Facebook.Schema.user u = Master.Api.Users.GetInfo();

I get a 500 message from Fb and when I "View in browser" I can see an

Thing is, I do have the <cc2:CanvasFBMLLoginControl ID="CanvasFBMLLoginControl1" runat="server" RequireLogin="true" /> on my MasterPage.
On my default.aspx.cs I do...
  public partial class _Default : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        Facebook.Schema.user u = Master.Api.Users.GetInfo();
and this causes the problem.
I have tried to do this on the MasterPage but could not get the right syntax.
Really appreciate the help.
May 27, 2010 at 1:23 PM


I've had the same problem - as I've understood it's because of the new API at facebook. Download the latest Source code, compile it and use it - works great! The nice guys who work on it - made it work already!


hope it helped ;)


May 27, 2010 at 1:59 PM

Thanks Roman,

Which source code do I download, the Developer Toolkit?



May 27, 2010 at 2:19 PM

Roman I downloaded the latest Developer Toolkit source, did a build.

Copied the Facebook.dll & Facebook.Web.dll into my sites bin folder, added the line Facebook.Schema.user u = Master.Api.Users.GetInfo();  and compiled.

Went to the app and I got the 500 error again. Took out the line Facebook.Schema.user u = Master.Api.Users.GetInfo();, went to the app and all worked fine.

Am I missing something?


May 27, 2010 at 3:24 PM

Got it, I downloaded the 3.1 Beta (anything I should be careful of?)

rebuilt and all is good.