Expectation failed when requesting information (api.users.GetInfo)

Feb 20, 2009 at 4:52 PM
Edited Feb 20, 2009 at 4:54 PM
I keep getting this error message , it says: "Remote server error: (417) Expectation failed.

I am trying to get the user's name when he activate a button (named button1)

I have already used api.Applicationkey and api.Secret to define my keys and created a new api instance (api = new facebook.API();)

This is the code I'm using to get this to work:


Protected void Button1_Click(object sender, EventArgs e)


api.SessionKey = GetFacebookCookie(






if (api.SessionKey != null)




api.uid =





Label1.Text = api.users.getInfo(api.uid).first_name;















 Label1.Text =


 "You need to be logged in before using this button.";





Can someone tell me what I'm doing wrong?