Profile Tab: Incorrect Signature

Nov 9, 2009 at 11:27 PM

I have to following code on a Facebook profile tab and it's giving me the "Incorrect Signature" error. That values passed in (session_key + sig_user) are correct and work at a later point when Facebook also passes me a secret_key. I'm unfamiliaire with the non-secret based functioning of this toolkit so I thought maybe yall would spot something.

 

                    API _api = new API();
                    _api.IsDesktopApplication = false;
                    _api.ApplicationKey = Loyal.Utility.ConfigurationManager.AppSettings("_facebook_app_key");
                    _api.Secret = Loyal.Utility.ConfigurationManager.AppSettings("_facebook_app_secret");
                    _api.SessionKey = Request.Params["fb_sig_session_key"];
                    _api.uid = long.Parse(Request.Params["fb_sig_user"]);
                    IList<user> friends = _api.friends.getUserObjects();

 

                    API _api = new API();

                    _api.IsDesktopApplication = false;

                    _api.ApplicationKey = Loyal.Utility.ConfigurationManager.AppSettings("_facebook_app_key");

                    _api.Secret = Loyal.Utility.ConfigurationManager.AppSettings("_facebook_app_secret");

                    _api.SessionKey = Request.Params["fb_sig_session_key"];

                    _api.uid = long.Parse(Request.Params["fb_sig_user"]);

 

                    IList<user> friends = _api.friends.getUserObjects(); <====== Incorrect Signature exception

 

Thanks in advance,

 

David Neubauer