From matteo.gavagnin at gmail.com Tue Sep 29 17:34:00 2009 From: matteo.gavagnin at gmail.com (Matteo Gavagnin) Date: Tue, 29 Sep 2009 23:34:00 +0200 Subject: [Facebooker-talk] Connect to a Facebooker app from iPhone Message-ID: <682247CA-EA58-4FDE-B693-215532F84868@gmail.com> I'm trying to connect my iPhone application to a Facebooker application i developed. The problem is that trought facebook connect for iPhone i can connect to Facebook with correct signature, but it fails with facebooker. I want to know if there is a list of compulsory parameters to pass to facebooker to get the session autenthicated. I think that i have to create a fb_sig hash with the parameters ordered by name and without the fb_sig_ prefix, so it's different from connecting to facebook (the params don't have the fb_sig). But actually i cannot get it working. I get - InvalidAuthenticityToken Parameters: {"v"=>"1.0", "ss"=>"1", "session_key"=>"SESSION_KEY- USER_ID", "method"=>"facebook.fql.query", "api_key"=>"API_KEY", "fb_sig"=>"f64155fcd1927710bc788120638e7265", "call_id"=>"1254257953", "query"=>"select name from user where uid == USER_ID"} - Redirected to http://www.facebook.com/login.php?api_key=API_KEY&v=1.0&next=%2Fdevices%2Fuser With Parameters: {"v"=>"1.0", "ss"=>"1", "session_key"=>"SESSION_KEY- USER_ID", "method"=>"facebook.fql.query", "api_key"=>"API_KEY", "fb_sig"=>"33bce9f3e5dd47d877dae7f31d556bec", "call_id"=>"1254258185", "query"=>"select name from user where uid == USER_ID"} - Swapping facebooker config: 'API_KEY' - Swapping facebooker config: '' Do you have any idea? Should i try another method of authentication? Thanks, Matteo