Dec 22, 2007 at 9:48 AM
I use masterpage with CanvasIFrameMasterPage as ;

public partial class FacebookMaster : CanvasIFrameMasterPage
private const string FACEBOOKAPIKEY = "xxxxxxxx";
private const string FACEBOOK_SECRET = "xxxxxxxx";

new protected void Page_Init(object sender, EventArgs e)
base.Secret = FACEBOOK_SECRET;
base.Page_Init(sender, e);

it causes invalid parameter error;

FacebookException: Invalid parameter
Facebook.API.FacebookAPI.ErrorCheck(XmlDocument doc) +958
Facebook.API.FacebookAPI.LoadXMLDocument(String rawXML) +158
Facebook.API.FacebookAPI.ExecuteApiCall(IDictionary`2 parameterDictionary, Boolean useSession) +57
Facebook.API.FacebookAPI.CreateSession() +156
Facebook.API.FacebookAPI.CreateSession(String authToken) +38
Facebook.Components.FacebookService.CreateSession(String authToken) +47
Facebook.WebControls.BasePageHelper.EstablishSession(String sessionKey, String userId, String authToken, Boolean retry) +459
Facebook.WebControls.BasePageHelper.LoadIFramePage() +253
Facebook.WebControls.BasePageHelper.LoadIFramePage(FacebookService fbService, Boolean useSession, Boolean autoAdd, HttpRequest request, HttpResponse response, HttpSessionState session) +78
Facebook.WebControls.CanvasIFrameMasterPage.Page_Init(Object sender, EventArgs e) +124

is there any api changes?
Jan 6, 2008 at 4:58 PM
I have the same issue, did you resolve this?

I have the same master type code as you, I have Default.aspx configured to use the .master file and then in the Default.aspx code behind I have:

public partial class _Default : CanvasIFrameBasePage
new protected void Page_Load(object sender, EventArgs e)
if (!IsPostBack)
Collection<User> userinfo = this.FBService.GetUserInfo(this.FBService.UserId);
Label1.Text = "Welcome, " + userinfo0.FirstName;
Image1.ImageUrl = userinfo0.PictureUrl.ToString();

I get the authentication error still.
Feb 16, 2008 at 9:32 AM
Was this ever answered or figured out? I'm getting the exact same thing.

Does anyone have any hints or clues maybe?
Feb 16, 2008 at 3:32 PM
I figured out what was causing this, in my particular case. I was using the wrong api key and secret. I had more than one app configured @ fb and I was using the wrong set of values. Once I changed them, it worked (although I ran into other problems, but that's another story for another thread) :)
Feb 4, 2010 at 3:58 PM

I am getting this same error, using sample code. I managed to get an iframe app working ok, but as soon as I try to do xfbml, it all goes to pot!