From brian.takita at gmail.com Sun Jul 5 15:44:36 2009 From: brian.takita at gmail.com (Brian Takita) Date: Sun, 5 Jul 2009 12:44:36 -0700 Subject: [Facebooker-talk] Facebooker Batch API In-Reply-To: <1d7ddd110907041815x19754f45h3eb28ff231678c03@mail.gmail.com> References: <1d7ddd110907041815x19754f45h3eb28ff231678c03@mail.gmail.com> Message-ID: <1d7ddd110907051244w7f226b8fod8a6030a68f1e3dc@mail.gmail.com> On Sat, Jul 4, 2009 at 6:15 PM, Brian Takita wrote: > Hello, is anybody using Facebook's batch api with Facebooker? > I see there is a Facebooker::BatchRequest class, but I'm not sure how > this would be used. nm, I discovered the Session#batch method. > > Thanks, > Brian > From mmangino at elevatedrails.com Mon Jul 27 08:37:29 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 27 Jul 2009 08:37:29 -0400 Subject: [Facebooker-talk] Facebooker with RESTful Rails' GET In-Reply-To: References: Message-ID: <5768A1A5-80D4-417F-8070-853F5808018F@elevatedrails.com> 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 From contact at robl.me Mon Jul 27 08:43:36 2009 From: contact at robl.me (Rob Lacey) Date: Mon, 27 Jul 2009 13:43:36 +0100 Subject: [Facebooker-talk] Facebooker with RESTful Rails' GET In-Reply-To: <5768A1A5-80D4-417F-8070-853F5808018F@elevatedrails.com> References: <5768A1A5-80D4-417F-8070-853F5808018F@elevatedrails.com> Message-ID: <4A6DA0F8.1050400@robl.me> 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 From mmangino at elevatedrails.com Mon Jul 27 09:33:22 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 27 Jul 2009 09:33:22 -0400 Subject: [Facebooker-talk] Facebooker with RESTful Rails' GET In-Reply-To: <4A6DA0F8.1050400@robl.me> References: <5768A1A5-80D4-417F-8070-853F5808018F@elevatedrails.com> <4A6DA0F8.1050400@robl.me> Message-ID: <67D5EA45-25BD-4B58-8002-56DB9AD9F8BE@elevatedrails.com> 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 From ckhobbs at gmail.com Tue Jul 28 03:02:04 2009 From: ckhobbs at gmail.com (Chris Hobbs) Date: Tue, 28 Jul 2009 00:02:04 -0700 Subject: [Facebooker-talk] uid 2147483647 Message-ID: I currently have this problem because the mysql column I'm using is an int. http://forum.developers.facebook.com/viewtopic.php?id=36268 I'm hoping the facebooker plugin can handle long uids ok. -chris ckhobbs at gmail.com From mmangino at elevatedrails.com Tue Jul 28 08:21:52 2009 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 28 Jul 2009 08:21:52 -0400 Subject: [Facebooker-talk] uid 2147483647 In-Reply-To: References: Message-ID: <3BDEE97D-70EE-47A9-A5ED-EB2DA1996237@elevatedrails.com> On Jul 28, 2009, at 3:02 AM, Chris Hobbs wrote: > I currently have this problem because the mysql column I'm using is > an int. > http://forum.developers.facebook.com/viewtopic.php?id=36268 > Facebooker handles 64 bit facebook ids okay. Make sure you specify :limit=>8 on your migration to create a 64 bit integer column. Mike > I'm hoping the facebooker plugin can handle long uids ok. > -chris > ckhobbs at gmail.com > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From mixonic at synitech.com Fri Jul 31 19:06:31 2009 From: mixonic at synitech.com (Matthew Beale) Date: Fri, 31 Jul 2009 19:06:31 -0400 Subject: [Facebooker-talk] flash and session resets sometimes In-Reply-To: References: Message-ID: <1249081591.7762.8.camel@localhost> Hi Nasir, The "Swapping facebooker" output is something in my court, but shouldn't be responsible for blowing away your sessions. Facebooker can handle multiple facebook apps, and depending on which app is making the request it will change configuration (hence the output). It should be doing that on every request. Flash and sessions dropping within facebook is very common. I've pretty much stopped relying on it for essential things, but I think Mike Mangino has had success when using a backend like memcached for sessions. The Rails default is to use the cookie content itself as the cookie store, maybe they're too big? No idea. Using memcached or a database store would mean a leaner cookie, simpler for facebook to manage. And alternative would be to write a session store that always uses the facebook_id+app_id as the key. It would still be secure (as long as you trust facebook's app sigs), and would remove facebook's buggy cookie handling from the equation. This is what I'd really recommend for a reliable facebook session. -- Matthew Beale :: 607 227 0871 Resume & Portfolio @ http://madhatted.com On Fri, 2009-07-31 at 18:45 -0400, Nasir Khan wrote: > The flash and also session hash resets (sometimes) between redirects, > not showing the facebook_messages (or any session data that I put). > When that happens I get the log message "Swapping facebooker > config....." > > Any help in getting around this will be greatly appreciated. > > Thanks > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk