You can''t. Facebook will always send that request as a POST. I asked for the option to make it a GET and was told they wouldn''t make that change. Mike On Jul 25, 2009, at 3:17 PM, Nasir Khan wrote:> Using RESTful Rails with Facebooker I am running into this issue. > > I have some data about the users in my application - books that > people like and a form for the user to add their favourite book. I > also need a way to display to the user what her particular friend > likes. > > So ideally I should be using a GET request with the user_id as > parameter. > > GET /favourite_books/12345 i.e. call show() method on > favourite_book_url(:fbid=>12345). (here 12345 is teh FB uid) > > In short I am looking for a way to send a GET request with facebook > user_id parameter from FB after selecting a single friend. > > All the FB selectors seems to be sending a POST request. Any > guidance will be greatly appreciated. > > regards > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
GET requests from Facebook would also be unreliable, the minute you get more than a few hundred friends (and some people are far too popular) the GET request becomes completely unmanagable because the amount of data in the query string is too large and fails since they pass an array of friend ids with every request. RobL Mike Mangino wrote:> You can''t. Facebook will always send that request as a POST. I asked > for the option to make it a GET and was told they wouldn''t make that > change. > > Mike > > On Jul 25, 2009, at 3:17 PM, Nasir Khan wrote: > >> Using RESTful Rails with Facebooker I am running into this issue. >> >> I have some data about the users in my application - books that >> people like and a form for the user to add their favourite book. I >> also need a way to display to the user what her particular friend likes. >> >> So ideally I should be using a GET request with the user_id as >> parameter. >> >> GET /favourite_books/12345 i.e. call show() method on >> favourite_book_url(:fbid=>12345). (here 12345 is teh FB uid) >> >> In short I am looking for a way to send a GET request with facebook >> user_id parameter from FB after selecting a single friend. >> >> All the FB selectors seems to be sending a POST request. Any guidance >> will be greatly appreciated. >> >> regards >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
On Jul 27, 2009, at 8:43 AM, Rob Lacey wrote:> > > GET requests from Facebook would also be unreliable, the minute you > get more than a few hundred friends (and some people are far too > popular) the GET request becomes completely unmanagable because the > amount of data in the query string is too large and fails since they > pass an array of friend ids with every request. >Just to clarify, it doesn''t have to be a real get request. All requests come as POSTS, you just can''t get a different fb_sig_request_method Also, the URL length restrictions are an IE problem. Since Facebook would make the request directly, there is no reason they couldn''t use very long request strings. Mike> RobL > > Mike Mangino wrote: >> You can''t. Facebook will always send that request as a POST. I >> asked for the option to make it a GET and was told they wouldn''t >> make that change. >> >> Mike >> >> On Jul 25, 2009, at 3:17 PM, Nasir Khan wrote: >> >>> Using RESTful Rails with Facebooker I am running into this issue. >>> >>> I have some data about the users in my application - books that >>> people like and a form for the user to add their favourite book. I >>> also need a way to display to the user what her particular friend >>> likes. >>> >>> So ideally I should be using a GET request with the user_id as >>> parameter. >>> >>> GET /favourite_books/12345 i.e. call show() method on >>> favourite_book_url(:fbid=>12345). (here 12345 is teh FB uid) >>> >>> In short I am looking for a way to send a GET request with >>> facebook user_id parameter from FB after selecting a single friend. >>> >>> All the FB selectors seems to be sending a POST request. Any >>> guidance will be greatly appreciated. >>> >>> regards >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >-- Mike Mangino http://www.elevatedrails.com