Simple call throws [FacebookException: Incorrect signature]

Apr 4, 2010 at 10:36 PM
Edited Apr 4, 2010 at 10:47 PM

I use version 3.0.2 of the facebook API, but I get the same error when using version 3.0.1.
I have setup an IFrameApplication on facebook, but I get the following error when trying to pull som data:


IFrameCanvasSession session = new IFrameCanvasSession(apiKey, secret);
Api api = new Api(session);

long userId = session.UserId;
api.Session.UserId = userId;

var result = api.Users.GetStandardInfo(userId.ToString(), new List<string>(){"first_name"});


[FacebookException: Incorrect signature]
   Facebook.Utility.Utilities.ParseException(String response, Boolean JSONFormat) +423
   Facebook.Rest.RestBase.processResponse(WebResponse webResponse) +142
   Facebook.Rest.RestBase.SendRequestSynchronous(IDictionary`2 parameterDictionary, Boolean useSession) +291
   Facebook.Rest.RestBase.SendRequest(IDictionary`2 parameterDictionary, Boolean useSession) +24
   Facebook.Rest.Users.GetStandardInfo(String uids, IList`1 fields, Boolean isAsync, GetStandardInfoCallback callback, Object state) +396
   Facebook.Rest.Users.GetStandardInfo(String uids, IList`1 fields) +30
   FacebookDating._Default.Page_Load(Object sender, EventArgs e) in E:\projects\Visual Studio 2008\Projects\FacebookDating\FacebookDating\Default.aspx.cs:36
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

Can anyone point out what I do wrong?

Thankyou in advance :)

Apr 5, 2010 at 9:13 AM

I found out I was for some reason using a wrong secret key. :)