From waratuman86 at gmail.com Tue Jul 1 06:20:26 2008 From: waratuman86 at gmail.com (James Bracy) Date: Tue, 1 Jul 2008 05:20:26 -0500 Subject: [Facebooker-talk] gem / plugin install In-Reply-To: References: Message-ID: <79488bcf0807010320g7d9c2464j630e7ec606972e1b@mail.gmail.com> I'm assuming it is the official one now. It does have the missing end fixed and I believe that Mangino is moving it to being compatible with 2.1. As far as either script/plugin or gem, I don't think it matters. James On Mon, Jun 30, 2008 at 7:56 PM, Richard Jordan wrote: > Check out the Facebooker from gitHub by doing, > git clone git://github.com/mmangino/facebooker.git > It's now the official one, right? > > I don't know about preferences. > Richard > > On Sun, 29 Jun 2008, Ram Ravichandran wrote: > >> Hey, >> >> I am using Rails 2.1. I was wondering if there is a preference between >> using >> gem or script/plugin to install facebooker. Latest revision on svn (225) >> seems to be missing an "end" in lib/facebooker/models/user.rb (line 218). >> >> Thanks, >> Ram >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From mmangino at elevatedrails.com Tue Jul 1 07:44:20 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 1 Jul 2008 07:44:20 -0400 Subject: [Facebooker-talk] gem / plugin install In-Reply-To: References: Message-ID: <2391CACB-3592-439F-AC2D-B9AB9BBC784B@elevatedrails.com> I would use the plugin for now. I haven't tested this as a gem plugin. Has anyone else tried it? I would guess that the manifest is missing some files. Mike On Jun 30, 2008, at 8:56 PM, Richard Jordan wrote: > Check out the Facebooker from gitHub by doing, > git clone git://github.com/mmangino/facebooker.git > It's now the official one, right? > > I don't know about preferences. > Richard > > On Sun, 29 Jun 2008, Ram Ravichandran wrote: > >> Hey, >> >> I am using Rails 2.1. I was wondering if there is a preference >> between using >> gem or script/plugin to install facebooker. Latest revision on svn >> (225) >> seems to be missing an "end" in lib/facebooker/models/user.rb (line >> 218). >> >> Thanks, >> Ram >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Wed Jul 2 14:13:25 2008 From: digidigo at gmail.com (David Clements) Date: Wed, 2 Jul 2008 12:13:25 -0600 Subject: [Facebooker-talk] gem / plugin install In-Reply-To: <2391CACB-3592-439F-AC2D-B9AB9BBC784B@elevatedrails.com> References: <2391CACB-3592-439F-AC2D-B9AB9BBC784B@elevatedrails.com> Message-ID: Are we officially on git now? I have a couple of comments on the facebooker tutorial indicating that the latest in svn has some syntax errors. Dave On Tue, Jul 1, 2008 at 5:44 AM, Mike Mangino wrote: > I would use the plugin for now. I haven't tested this as a gem plugin. Has > anyone else tried it? I would guess that the manifest is missing some files. > > Mike > > > On Jun 30, 2008, at 8:56 PM, Richard Jordan wrote: > > Check out the Facebooker from gitHub by doing, >> git clone git://github.com/mmangino/facebooker.git >> It's now the official one, right? >> >> I don't know about preferences. >> Richard >> >> On Sun, 29 Jun 2008, Ram Ravichandran wrote: >> >> Hey, >>> >>> I am using Rails 2.1. I was wondering if there is a preference between >>> using >>> gem or script/plugin to install facebooker. Latest revision on svn (225) >>> seems to be missing an "end" in lib/facebooker/models/user.rb (line 218). >>> >>> Thanks, >>> Ram >>> >>> _______________________________________________ >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Wed Jul 2 14:38:33 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 2 Jul 2008 14:38:33 -0400 Subject: [Facebooker-talk] gem / plugin install In-Reply-To: References: <2391CACB-3592-439F-AC2D-B9AB9BBC784B@elevatedrails.com> Message-ID: Unless anyone strongly objects, I vote yes. Mike On Jul 2, 2008, at 2:13 PM, David Clements wrote: > Are we officially on git now? I have a couple of comments on the > facebooker tutorial indicating that the latest in svn has some > syntax errors. > Dave > > On Tue, Jul 1, 2008 at 5:44 AM, Mike Mangino > wrote: > I would use the plugin for now. I haven't tested this as a gem > plugin. Has anyone else tried it? I would guess that the manifest is > missing some files. > > Mike > > > On Jun 30, 2008, at 8:56 PM, Richard Jordan wrote: > > Check out the Facebooker from gitHub by doing, > git clone git://github.com/mmangino/facebooker.git > It's now the official one, right? > > I don't know about preferences. > Richard > > On Sun, 29 Jun 2008, Ram Ravichandran wrote: > > Hey, > > I am using Rails 2.1. I was wondering if there is a preference > between using > gem or script/plugin to install facebooker. Latest revision on svn > (225) > seems to be missing an "end" in lib/facebooker/models/user.rb (line > 218). > > Thanks, > Ram > > _______________________________________________ > 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 > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From waratuman86 at gmail.com Wed Jul 2 16:12:46 2008 From: waratuman86 at gmail.com (James Bracy) Date: Wed, 2 Jul 2008 15:12:46 -0500 Subject: [Facebooker-talk] gem / plugin install In-Reply-To: <79488bcf0807021311t35ffb964s3cd0a614e6c7daf2@mail.gmail.com> References: <2391CACB-3592-439F-AC2D-B9AB9BBC784B@elevatedrails.com> <79488bcf0807021311t35ffb964s3cd0a614e6c7daf2@mail.gmail.com> Message-ID: <79488bcf0807021312g7053bc62p5955605ea337a1c@mail.gmail.com> I vote yes, the official repo is at git clone git://github.com/mmangino/facebooker.git There was an svn mirror on git, but I don't know what is going on with it anymore. Ever since Mike offered to have his repo be the official I've been using it as such. James - Hide quoted text - On Wed, Jul 2, 2008 at 1:38 PM, Mike Mangino wrote: > Unless anyone strongly objects, I vote yes. > > Mike > > On Jul 2, 2008, at 2:13 PM, David Clements wrote: > >> Are we officially on git now? I have a couple of comments on the >> facebooker tutorial indicating that the latest in svn has some syntax >> errors. >> Dave >> >> On Tue, Jul 1, 2008 at 5:44 AM, Mike Mangino >> wrote: >> I would use the plugin for now. I haven't tested this as a gem plugin. Has >> anyone else tried it? I would guess that the manifest is missing some files. >> >> Mike >> >> >> On Jun 30, 2008, at 8:56 PM, Richard Jordan wrote: >> >> Check out the Facebooker from gitHub by doing, >> git clone git://github.com/mmangino/facebooker.git >> It's now the official one, right? >> >> I don't know about preferences. >> Richard >> >> On Sun, 29 Jun 2008, Ram Ravichandran wrote: >> >> Hey, >> >> I am using Rails 2.1. I was wondering if there is a preference between >> using >> gem or script/plugin to install facebooker. Latest revision on svn (225) >> seems to be missing an "end" in lib/facebooker/models/user.rb (line 218). >> >> Thanks, >> Ram >> >> _______________________________________________ >> 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 >> >> _______________________________________________ >> 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 ramkaka at gmail.com Thu Jul 3 01:42:53 2008 From: ramkaka at gmail.com (Ram Ravichandran) Date: Thu, 3 Jul 2008 01:42:53 -0400 Subject: [Facebooker-talk] HTTP alive Message-ID: Hey, I was wondering what do people set their HTTP Alive to for Facebook apps? Do you recommend turning them on or off? If it is on, what is a good time to keep the connection open? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From xiuxiu.luo.xiao at gmail.com Thu Jul 3 02:09:15 2008 From: xiuxiu.luo.xiao at gmail.com (=?GB2312?B?wt7P9g==?=) Date: Thu, 3 Jul 2008 14:09:15 +0800 Subject: [Facebooker-talk] user.rb has syntax error in facebooker plugin 0.9.5 Message-ID: Hi All, I am the new one for facebooker and I am trying my first RoR facebook application with the help of "10-Minute Quick Start Guide for Facebooker". After I installed the facebooker gem and facebooker plugin, I got error when I want to generate the controller. There seems to be some syntax error for the user.rb. I wonder whether I did something wrong. Could anyone help me? Thanks. Tony Luo -------------- next part -------------- An HTML attachment was scrubbed... URL: From noah.gradovitch at collactive.com Thu Jul 3 05:15:43 2008 From: noah.gradovitch at collactive.com (Noah Gradovitch) Date: Thu, 3 Jul 2008 12:15:43 +0300 Subject: [Facebooker-talk] Proxy with facebooker Message-ID: <62a83a5a0807030215j5adf0765gbc22867dd89e7b2@mail.gmail.com> Hi, I want to set facebooker calls to facebook throw proxy server How can I do that? Thanks, Noa -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Thu Jul 3 07:19:18 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 3 Jul 2008 07:19:18 -0400 Subject: [Facebooker-talk] user.rb has syntax error in facebooker plugin 0.9.5 In-Reply-To: References: Message-ID: <1321B4A7-6B61-42A9-9EAF-3C1DCCFCDDC1@elevatedrails.com> Tony, Try using the GitHub version: http://github.com/mmangino/facebooker/tree/master You can either install it from git or you can download it from that site. Mike On Jul 3, 2008, at 2:09 AM, ?? wrote: > Hi All, > I am the new one for facebooker and I am trying my first RoR > facebook application with the help of "10-Minute Quick Start Guide > for Facebooker". > After I installed the facebooker gem and facebooker plugin, I > got error when I want to generate the controller. > There seems to be some syntax error for the user.rb. > I wonder whether I did something wrong. Could anyone help me? > > Thanks. > > Tony Luo > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From waratuman86 at gmail.com Thu Jul 3 11:04:17 2008 From: waratuman86 at gmail.com (James Bracy) Date: Thu, 3 Jul 2008 10:04:17 -0500 Subject: [Facebooker-talk] facebooker rspec Message-ID: <79488bcf0807030804v4324828fr7b08cb8ca2e05af4@mail.gmail.com> hey, When converting a test form Karate Poke app to rspec, it doesn't pass. The test is: def test_get_new_requires-user facebook_get :new, :fb_sig_user => nil assert_facebook_redirect_to Facebooker::Session.create.install_url end in rspec I have; describe InvitationController do integrate_views describe 'get/new' do it 'requires a user' do facebook_get :new, :fb_sig_user => nil assert_facebook_redirect_to Facebooker::Session.create.install_url end end end I run 'rake test' and get Test::Unit::AssertionfailedError in InvitationsController get/new requires a user expected to not be nil. .../vendor/plugins/lib/facebooker/rails/test_helpers.rb:6:in 'assert_facebook_redirect_to' What am I doing wrong? Or how should I write this in rspec? Thanks, James From joe at pinkpucker.net Thu Jul 3 15:28:50 2008 From: joe at pinkpucker.net (Joe Van Dyk) Date: Thu, 3 Jul 2008 12:28:50 -0700 Subject: [Facebooker-talk] Avoiding remote API calls inside controller actions In-Reply-To: References: Message-ID: On Wed, Jun 25, 2008 at 4:07 PM, Joe Van Dyk wrote: > So, it's bad to do network API calls to FB inside a controller action, amirite? > > If I want to display the user's first name though, how do I do that > without making a FB API call? How about the user's friends that have > the application installed? > > I only have 2 mongrels running and I hate to have them both tied up > with Facebook API calls. I'm noticing that when a user first visits my FB app (canvas), facebook.auth.getSession is being called. Is that necessary? Is it possible (or advisable) to raise an exception anytime the facebook api is called from inside a controller action? Joe From joe at pinkpucker.net Thu Jul 3 15:42:26 2008 From: joe at pinkpucker.net (Joe Van Dyk) Date: Thu, 3 Jul 2008 12:42:26 -0700 Subject: [Facebooker-talk] errors in mongrel log Message-ID: /data/dailycaption/releases/20080616201818/vendor/plugins/facebooker/lib/facebooker/rails/helpers.rb:509: warning: tried to create Proc object without a block I'm getting a shitload of those errors. Did they get fixed yet? (am using a pretty new version of trunk, maybe two weeks old) From jordanr at cs.washington.edu Fri Jul 4 12:47:56 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Fri, 4 Jul 2008 09:47:56 -0700 (PDT) Subject: [Facebooker-talk] errors in mongrel log In-Reply-To: References: Message-ID: Try adding the argument (&proc) to fb_else like this: ================================================= diff --git a/lib/facebooker/rails/helpers.rb b/lib/facebooker/rails/helpers.rb index c0bfdbc..2851ef8 100644 --- a/lib/facebooker/rails/helpers.rb +++ b/lib/facebooker/rails/helpers.rb @@ -508,7 +508,7 @@ module Facebooker # Render fb:else tag # Must be used within if block such as fb_if_is_user or fb_if_is_app_user . See example in fb_if_is_app_user - def fb_else + def fb_else(&proc) content = capture(&proc) concat(content_tag("fb:else",content),proc.binding) end ================================================== See if that fixes it. I always wondered about these warnings. Richard On Thu, 3 Jul 2008, Joe Van Dyk wrote: > /data/dailycaption/releases/20080616201818/vendor/plugins/facebooker/lib/facebooker/rails/helpers.rb:509: > warning: tried to create Proc object without a block > > > I'm getting a shitload of those errors. Did they get fixed yet? (am > using a pretty new version of trunk, maybe two weeks old) > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > From joe at pinkpucker.net Mon Jul 7 04:22:35 2008 From: joe at pinkpucker.net (Joe Van Dyk) Date: Mon, 7 Jul 2008 01:22:35 -0700 Subject: [Facebooker-talk] Avoiding remote API calls inside controller actions In-Reply-To: References: Message-ID: On Thu, Jul 3, 2008 at 12:28 PM, Joe Van Dyk wrote: > On Wed, Jun 25, 2008 at 4:07 PM, Joe Van Dyk wrote: >> So, it's bad to do network API calls to FB inside a controller action, amirite? >> >> If I want to display the user's first name though, how do I do that >> without making a FB API call? How about the user's friends that have >> the application installed? >> >> I only have 2 mongrels running and I hate to have them both tied up >> with Facebook API calls. > > I'm noticing that when a user first visits my FB app (canvas), > facebook.auth.getSession is being called. Is that necessary? > > Is it possible (or advisable) to raise an exception anytime the > facebook api is called from inside a controller action? I'm noticing that facebook.auth.createToken and facebook.auth.getSession are called from inside the controller actions whenever someone comes to FB for the first time. Is there a way to avoid this? I'd really like to get all remote api calls to FB outside of controller actions, I hate tying up mongrel or thin processes. From xiuxiu.luo.xiao at gmail.com Mon Jul 7 10:58:06 2008 From: xiuxiu.luo.xiao at gmail.com (luo xiao) Date: Mon, 7 Jul 2008 22:58:06 +0800 Subject: [Facebooker-talk] user.rb has syntax error in facebooker plugin 0.9.5 References: <1321B4A7-6B61-42A9-9EAF-3C1DCCFCDDC1@elevatedrails.com> Message-ID: <200807072257501733058@gmail.com> Hi Mike, Thanks for your help. I downloaded "Facebooker" from the link and my application gonna work. Here is the question,what's the relationship between the formal link and the github. Hope the formal link to be fixed as soon as possible. Regards Tony Luo luo xiao 2008-07-07 ???? Mike Mangino ????? 2008-07-03 19:19:27 ???? ?? ??? facebooker-talk at rubyforge.org ??? Re: [Facebooker-talk] user.rb has syntax error in facebooker plugin 0.9.5 Tony, Try using the GitHub version: http://github.com/mmangino/facebooker/tree/master You can either install it from git or you can download it from that site. Mike On Jul 3, 2008, at 2:09 AM, ?? wrote: > Hi All, > I am the new one for facebooker and I am trying my first RoR > facebook application with the help of "10-Minute Quick Start Guide > for Facebooker". > After I installed the facebooker gem and facebooker plugin, I > got error when I want to generate the controller. > There seems to be some syntax error for the user.rb. > I wonder whether I did something wrong. Could anyone help me? > > Thanks. > > Tony Luo > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From noah.gradovitch at collactive.com Tue Jul 8 05:32:29 2008 From: noah.gradovitch at collactive.com (Noah Gradovitch) Date: Tue, 8 Jul 2008 12:32:29 +0300 Subject: [Facebooker-talk] Facebooker::FqlQuery Message-ID: <62a83a5a0807080232q7ab4b05dof8a8d367f3e41c69@mail.gmail.com> Hi, Does any one know how to use FqlQuery I tried: Facebooker::FqlQuery.process("SELECT name FROM group WHERE gid='2208363470'") and got: RuntimeError: Element fql_query_response not found in SELECT name FROM group WHERE gid='2208363470' from /mnt/c/dev/collactive_1.7_facebook/server/vendor/plugins/facebooker/lib/facebooker/parser.rb:48:in `element' from /mnt/c/dev/collactive_1.7_facebook/server/vendor/plugins/facebooker/lib/facebooker/parser.rb:275:in `process' from (irb):114 Thanks, Noa -------------- next part -------------- An HTML attachment was scrubbed... URL: From tres.wong-godfrey at saniq.com Tue Jul 8 13:27:05 2008 From: tres.wong-godfrey at saniq.com (Tres Wong-Godfrey) Date: Tue, 8 Jul 2008 10:27:05 -0700 Subject: [Facebooker-talk] Memcached Sessions Store With Facebooker Message-ID: <566799B9-0A5F-4AFC-ABEB-91CFDEC10311@saniq.com> I?ve been attempting to use memcached for sessions storage, but am having issues because the session that?s being used is the facebook session that contains a hyphen. Since it is not an alphanumeric character-set, any attempt to write or read session information fails. I see that there is a ?session_options? hash available as an argument to ActionController::CgiRequest which allows the ability to define whether the instance uses the facebook session id, or the standard alphanumeric session to define the session key, but I don?t think that?s what I?m looking for. Anyone have experience getting facebooker working with memcached sessions? Any hints or tricks that anyone out there can give? I?ve seen Mike?s article at http://www.elevatedrails.com/articles/2008/04/23/enabling-memcached-sessions/ , but that?s not covering the same issue. There appears to be something else that I?m just not finding. Oh, I almost forgot?I?m getting errors like ?session_id ?6bcf1f35e8200000000f2ad-100000370? is invalid.? Thanks! From digidigo at gmail.com Tue Jul 8 18:33:40 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 8 Jul 2008 16:33:40 -0600 Subject: [Facebooker-talk] GIT Fork created with Bebo Support Message-ID: Hey All, I think I promised this quite a few months ago and now with the wonders of GitHub I have completed it. I forked the main repo from mike and added support not only for Bebo but for running multiple Facebook apps within one instance. The Fork is hopefully only temporary as I think Mike will push this into the main repo once it is confiremed that it doesn't break backward compatibility. Anyone out there running on Bebo and want to kick the tires for me? If so you can grab it from : http://github.com/digidigo/facebooker/tree/master Basically how it works is that you can add any number of config options to your facebooker.yml file now mine looks like this: development: api_key: b9f5233d4b7f8216253c0d27f60603e secret_key: XXXXXX canvas_page_name: mwavedev callback_url: http://staging.travelerstable.com:8888 bebo_api_key: pZwnITIadEri1V0fNPxEMhSen9VBCoRf5jV9 bebo_secret_key: XXXXX bebo_canvas_page_name: ttdev bebo_adapter: BeboAdapter foo_api_key: f688cbe01c465d71e4f9bed26722309a foo_secret_key: XXXXX foo_canvas_page_name: sumobaby foo_adapter: FacebookAdapter Currenlty you need to set all 4 parameters , api_key, secret_key , canvas_page_name and adapter for any additional contexts. The way the code works is that there is a before filter added to the controller that looks at fb_sig_api_key and loads an adapter instance specified by the "#{key_base}_adapter setting for that api_key. All of the API specific constants have been pulled out of the code base and are available via method on the Facebooker module. For example you call Facebooker.canvas_page_name and you will get the current adapters canvas_page. If you need to load an adapter specifically you call Facebooker.load_adapter(:config_key_base => "foo") All the tests are passing so I think the backward compatibility is fine. And there are new tests for all the adapter specific stuff. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Tue Jul 8 20:33:06 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 8 Jul 2008 20:33:06 -0400 Subject: [Facebooker-talk] GIT Fork created with Bebo Support In-Reply-To: References: Message-ID: I think this is awesome work and I would love to pull in this patch as soon as a couple of people test it out. Thanks David, you rock! Mike On Jul 8, 2008, at 6:33 PM, David Clements wrote: > Hey All, > > I think I promised this quite a few months ago and now with the > wonders of GitHub I have completed it. > > I forked the main repo from mike and added support not only for Bebo > but for running multiple Facebook apps within one instance. The > Fork is hopefully only temporary as I think Mike will push this into > the main repo once it is confiremed that it doesn't break backward > compatibility. Anyone out there running on Bebo and want to kick > the tires for me? If so you can grab it from : > > http://github.com/digidigo/facebooker/tree/master > > Basically how it works is that you can add any number of config > options to your facebooker.yml file now mine looks like this: > > development: > api_key: b9f5233d4b7f8216253c0d27f60603e > secret_key: XXXXXX > canvas_page_name: mwavedev > callback_url: http://staging.travelerstable.com:8888 > bebo_api_key: pZwnITIadEri1V0fNPxEMhSen9VBCoRf5jV9 > bebo_secret_key: XXXXX > bebo_canvas_page_name: ttdev > bebo_adapter: BeboAdapter > foo_api_key: f688cbe01c465d71e4f9bed26722309a > foo_secret_key: XXXXX > foo_canvas_page_name: sumobaby > foo_adapter: FacebookAdapter > > > Currenlty you need to set all 4 parameters , api_key, secret_key , > canvas_page_name and adapter for any additional contexts. The way > the code works is that there is a before filter added to the > controller that looks at fb_sig_api_key and loads an adapter > instance specified by the "#{key_base}_adapter setting for that > api_key. > > All of the API specific constants have been pulled out of the code > base and are available via method on the Facebooker module. > > For example you call Facebooker.canvas_page_name and you will get > the current adapters canvas_page. > > If you need to load an adapter specifically you call > Facebooker.load_adapter(:config_key_base => "foo") > > All the tests are passing so I think the backward compatibility is > fine. And there are new tests for all the adapter specific stuff. > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Wed Jul 9 13:49:01 2008 From: digidigo at gmail.com (David Clements) Date: Wed, 9 Jul 2008 11:49:01 -0600 Subject: [Facebooker-talk] Anyone using RingSide Message-ID: I thought I would check out Ringside today and see if I could create an Adapter for it. Anyone take a look at this yet? I thought I might be a faster development environment. http://wiki.ringsidenetworks.org Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.otto at gmail.com Wed Jul 9 14:37:30 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Wed, 9 Jul 2008 13:37:30 -0500 Subject: [Facebooker-talk] Anyone using RingSide In-Reply-To: References: Message-ID: I created an adapter for Facebooker and Ringside for revision 1200. Since then they have changed their identity mapping (which allows it to connect to multiple different social networks). They are now on revision 2100 - my adapter works - as long as you don't want to use identity mapping. I made it as a plugin, I'll upload it Google code or something if you want. On Wed, Jul 9, 2008 at 12:49 PM, David Clements wrote: > I thought I would check out Ringside today and see if I could create an > Adapter for it. Anyone take a look at this yet? I thought I might be a > faster development environment. > > http://wiki.ringsidenetworks.org > > Dave > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From digidigo at gmail.com Wed Jul 9 14:40:08 2008 From: digidigo at gmail.com (David Clements) Date: Wed, 9 Jul 2008 12:40:08 -0600 Subject: [Facebooker-talk] Anyone using RingSide In-Reply-To: References: Message-ID: I would love to look at it. I installed ringside on my dev machine and figured I would try creating an adapter for it. Are you a commiter to the ringside project? Is it getting traction? Dave On Wed, Jul 9, 2008 at 12:37 PM, Jonathan Otto wrote: > I created an adapter for Facebooker and Ringside for revision 1200. > Since then they have changed their identity mapping (which allows it > to connect to multiple different social networks). They are now on > revision 2100 - my adapter works - as long as you don't want to use > identity mapping. > > I made it as a plugin, I'll upload it Google code or something if you want. > > On Wed, Jul 9, 2008 at 12:49 PM, David Clements > wrote: > > I thought I would check out Ringside today and see if I could create an > > Adapter for it. Anyone take a look at this yet? I thought I might be a > > faster development environment. > > > > http://wiki.ringsidenetworks.org > > > > Dave > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.otto at gmail.com Wed Jul 9 15:09:09 2008 From: jonathan.otto at gmail.com (Jonathan Otto) Date: Wed, 9 Jul 2008 14:09:09 -0500 Subject: [Facebooker-talk] Anyone using RingSide In-Reply-To: References: Message-ID: I am a committer, we have quite a bit more to do until a 1.0 release, but the first goal has been realized which is running a Facebook application outside of Facebook, embeddable via widget into any site. Give me the rest of the day to get it uploaded. On Wed, Jul 9, 2008 at 1:40 PM, David Clements wrote: > I would love to look at it. I installed ringside on my dev machine and > figured I would try creating an adapter for it. > > Are you a commiter to the ringside project? Is it getting traction? > > Dave > > > On Wed, Jul 9, 2008 at 12:37 PM, Jonathan Otto > wrote: >> >> I created an adapter for Facebooker and Ringside for revision 1200. >> Since then they have changed their identity mapping (which allows it >> to connect to multiple different social networks). They are now on >> revision 2100 - my adapter works - as long as you don't want to use >> identity mapping. >> >> I made it as a plugin, I'll upload it Google code or something if you >> want. >> >> On Wed, Jul 9, 2008 at 12:49 PM, David Clements >> wrote: >> > I thought I would check out Ringside today and see if I could create an >> > Adapter for it. Anyone take a look at this yet? I thought I might be >> > a >> > faster development environment. >> > >> > http://wiki.ringsidenetworks.org >> > >> > Dave >> > >> > _______________________________________________ >> > Facebooker-talk mailing list >> > Facebooker-talk at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >> > > > From xiuxiu.luo.xiao at gmail.com Thu Jul 10 00:00:56 2008 From: xiuxiu.luo.xiao at gmail.com (=?GB2312?B?wt7P9g==?=) Date: Thu, 10 Jul 2008 12:00:56 +0800 Subject: [Facebooker-talk] Error 406 from the host Message-ID: Hi, everyone, I am the new one for the facebooker and just created my facebook application. I start my first application by following the facebooker_tutorial and use heroku as my host. My application works fine in "Iframe" mode, but when I turn to "FBML" mode, I recieved 406 error from my host. Does someone has any idea? I think maybe I do something wrong in my facebooker configuration. Here is my facebooker.yml configuration: api_key: xxxxxxxxxxxxxxxxxxx secret_key: xxxxxxxxxxxxxxxxxxxx canvas_page_name: /favoritelink/ callback_url: http://skygroup.heroku.com:80 -------------- next part -------------- An HTML attachment was scrubbed... URL: From digidigo at gmail.com Thu Jul 10 00:07:26 2008 From: digidigo at gmail.com (David Clements) Date: Wed, 9 Jul 2008 22:07:26 -0600 Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: References: Message-ID: First thing to try is removing the slashes from the canvas_page_name.... If that doesn't help can you send more details from your rails log? Dave On Wed, Jul 9, 2008 at 10:00 PM, ?? wrote: > Hi, everyone, > I am the new one for the facebooker and just created my facebook > application. > I start my first application by following the facebooker_tutorial and > use heroku as my host. > My application works fine in "Iframe" mode, but when I turn to "FBML" > mode, I recieved 406 error from my host. > Does someone has any idea? I think maybe I do something wrong in my > facebooker configuration. > > Here is my facebooker.yml configuration: > api_key: xxxxxxxxxxxxxxxxxxx secret_key: xxxxxxxxxxxxxxxxxxxx > canvas_page_name: /favoritelink/ > callback_url: http://skygroup.heroku.com:80 > > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xiuxiu.luo.xiao at gmail.com Thu Jul 10 00:22:54 2008 From: xiuxiu.luo.xiao at gmail.com (=?GB2312?B?wt7P9g==?=) Date: Thu, 10 Jul 2008 12:22:54 +0800 Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: References: Message-ID: Current configuration: api_key: 1cf93933582d5835bebe98d286158273 secret_key: 2863b13fc58f57cae527de45fd4b7f20 canvas_page_name: favoritelink callback_url: http://skygroup.heroku.com:80 Facebook Error message: Errors while loading page from application Received HTTP error code 406 while loading http://skygroup.heroku.com/ Hosting Logs: Processing UsersController#index (for 204.15.23.168 at 2008-07-09 21:18:41) [GET] Session ID: 7f20696ddc5efd8ef3998392-830843210 Parameters: {"fb_sig_time"=>"1215663521.2908", "fb_sig"=>"ffa784e9d1c76353dd88a37625d89562", "_method"=>"GET", "fb_sig_locale"=>"en_US", "action"=>"index", "fb_sig_session_key"=>"7f20696ddc5efd8ef3998392-830843210", "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", "fb_sig_request_method"=>"GET", "controller"=>"users", "fb_sig_expires"=>"0", "fb_sig_friends"=>"2262404,4804216,5249680,9008910,13750643,506937136,520168433,522304594,528043834,529227427,538707016,540922141,542807705,543517145,550351017,555204379,561335842,563186606,566958300,580552312,581167055,581779377,587040751,590419111,590873221,597463133,598249007,598417675,600028743,622739483,630356681,644401706,651304761,654746992,658132952,661102891,665035038,678155312,679629309,686493571,695123717,696545870,702425899,705314598,712999475,723616403,725213313,728613392,737104108,762788417,784900135,795141561,817255113,819588350,831174826,868845223,1019763240,1034498395,1038216447,1042776567,1047188638,1068223901,1070105629,1095256539,1157552746,1207667867,1254027126,1266144372,1270883167,1277082451,1277868215,1281204041,1283784221,1283784227,1303114794", "fb_sig_added"=>"0", "fb_sig_api_key"=>"1cf93933582d5835bebe98d286158273", "fb_sig_profile_update_time"=>"1211120190", "fb_sig_user"=>"830843210"} User Load (0.001291) SELECT * FROM users Completed in 0.00914 (109 reqs/sec) | Rendering: 0.00006 (0%) | DB: 0.00129 (14%) | 406 Not Acceptable [ http://skygroup.heroku.com/] ?08-7-10?David Clements ??? > > First thing to try is removing the slashes from the canvas_page_name.... > > If that doesn't help can you send more details from your rails log? > > Dave > > > On Wed, Jul 9, 2008 at 10:00 PM, ?? wrote: > >> Hi, everyone, >> I am the new one for the facebooker and just created my facebook >> application. >> I start my first application by following the facebooker_tutorial and >> use heroku as my host. >> My application works fine in "Iframe" mode, but when I turn to "FBML" >> mode, I recieved 406 error from my host. >> Does someone has any idea? I think maybe I do something wrong in my >> facebooker configuration. >> >> Here is my facebooker.yml configuration: >> api_key: xxxxxxxxxxxxxxxxxxx secret_key: xxxxxxxxxxxxxxxxxxxx >> canvas_page_name: /favoritelink/ >> callback_url: http://skygroup.heroku.com:80 >> >> >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Thu Jul 10 07:54:57 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 10 Jul 2008 07:54:57 -0400 Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: References: Message-ID: Do you have a .fbml.erb template for your action? It looks like Rails doesn't know how to respond to that request. Mike On Jul 10, 2008, at 12:22 AM, ?? wrote: > Current configuration: > api_key: 1cf93933582d5835bebe98d286158273 > secret_key: 2863b13fc58f57cae527de45fd4b7f20 > canvas_page_name: favoritelink > callback_url: http://skygroup.heroku.com:80 > > Facebook Error message: > Errors while loading page from application > Received HTTP error code 406 while loading http://skygroup.heroku.com/ > > Hosting Logs: > Processing UsersController#index (for 204.15.23.168 at 2008-07-09 > 21:18:41) [GET] Session ID: 7f20696ddc5efd8ef3998392-830843210 > Parameters: {"fb_sig_time"=>"1215663521.2908", > "fb_sig"=>"ffa784e9d1c76353dd88a37625d89562", "_method"=>"GET", > "fb_sig_locale"=>"en_US", "action"=>"index", > "fb_sig_session_key"=>"7f20696ddc5efd8ef3998392-830843210", > "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", > "fb_sig_request_method"=>"GET", "controller"=>"users", > "fb_sig_expires"=>"0", > "fb_sig_friends > "= > > > "2262404,4804216,5249680,9008910,13750643,506937136,520168433,522304594,528043834,529227427,538707016,540922141,542807705,543517145,550351017,555204379,561335842,563186606,566958300,580552312,581167055,581779377,587040751,590419111,590873221,597463133,598249007,598417675,600028743,622739483,630356681,644401706,651304761,654746992,658132952,661102891,665035038,678155312,679629309,686493571,695123717,696545870,702425899,705314598,712999475,723616403,725213313,728613392,737104108,762788417,784900135,795141561,817255113,819588350,831174826,868845223,1019763240,1034498395,1038216447,1042776567,1047188638,1068223901,1070105629,1095256539,1157552746,1207667867,1254027126,1266144372,1270883167,1277082451,1277868215,1281204041,1283784221,1283784227,1303114794 > ", "fb_sig_added"=>"0", > "fb_sig_api_key"=>"1cf93933582d5835bebe98d286158273", > "fb_sig_profile_update_time"=>"1211120190", > "fb_sig_user"=>"830843210"} > User Load (0.001291) SELECT * FROM users Completed in 0.00914 (109 > reqs/sec) | Rendering: 0.00006 (0%) | DB: 0.00129 (14%) | 406 Not > Acceptable [http://skygroup.heroku.com/] > > > > ?08-7-10?David Clements > ??? First > thing to try is removing the slashes from the canvas_page_name.... > > If that doesn't help can you send more details from your rails log? > > Dave > > > On Wed, Jul 9, 2008 at 10:00 PM, ?? > wrote: > Hi, everyone, > I am the new one for the facebooker and just created my facebook > application. > I start my first application by following the > facebooker_tutorial and use heroku as my host. > My application works fine in "Iframe" mode, but when I turn to > "FBML" mode, I recieved 406 error from my host. > Does someone has any idea? I think maybe I do something wrong in > my facebooker configuration. > > Here is my facebooker.yml configuration: > api_key: xxxxxxxxxxxxxxxxxxx > secret_key: xxxxxxxxxxxxxxxxxxxx > canvas_page_name: /favoritelink/ > callback_url: http://skygroup.heroku.com:80 > > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From george at xapblog.com Thu Jul 10 20:47:44 2008 From: george at xapblog.com (George Deglin) Date: Thu, 10 Jul 2008 17:47:44 -0700 Subject: [Facebooker-talk] canvas url rewriting fails for templates loaded through ajax Message-ID: I just encountered a bug that caused the links in my partials to be generated as non-canvas routes when the partial was loaded via ajax. This bug is due to facebooker url rewriting checking for fb_sig_in_canvas to determine if the application is running in or outside a canvas, and fb_sig_in_canvas is not sent for ajax requests. My hacked together patch diff is below, sorry I didn't have a chance to write tests or closely verify that my changes won't break anything else. a/vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_rewriting.rb b/vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_rewriting.rb index 00b1e1d..e81a316 100644 --- a/vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_rewriting.rb +++ b/vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_rewriting.rb @@ -11,7 +11,7 @@ module ::ActionController def link_to_canvas?(params, options) option_override = options[:canvas] return false if option_override == false # important to check for false. nil should use default behavior - option_override || @request.parameters["fb_sig_in_canvas"] == "1" || @request.parameters[:fb_sig_in_canvas] == "1" + option_override || (@request.parameters["fb_sig_in_canvas"] == "1") || (@request.parameters[:fb_sig_in_canvas] == "1") || (@request.parameters[:fb_sig_is_ajax]=="1") end def rewrite_url_with_facebooker(*args) -------------- next part -------------- An HTML attachment was scrubbed... URL: From xiuxiu.luo.xiao at gmail.com Thu Jul 10 23:30:50 2008 From: xiuxiu.luo.xiao at gmail.com (=?GB2312?B?wt7P9g==?=) Date: Fri, 11 Jul 2008 11:30:50 +0800 Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: References: Message-ID: I just followed http://apps.facebook.com/facebooker_tutorial/. And now I think the root cause is the controller which the tutorial doesn't mention a lot. Now my controller action looks like: def add_facebook_application @users = User.find(:all) end It's fine. I used to write my controller like: def add_facebook_application @users = User.find(:all) respond_to do |format| format.html # index.html.erb format.xml { render :xml => @users } end end This version causes the 406 error. So What kind of MIME type should I return for the FBML request? 2008/7/10 Mike Mangino : > Do you have a .fbml.erb template for your action? It looks like Rails > doesn't know how to respond to that request. > > Mike > > > On Jul 10, 2008, at 12:22 AM, ?? wrote: > > Current configuration: >> api_key: 1cf93933582d5835bebe98d286158273 >> secret_key: 2863b13fc58f57cae527de45fd4b7f20 >> canvas_page_name: favoritelink >> callback_url: http://skygroup.heroku.com:80 >> >> Facebook Error message: >> Errors while loading page from application >> Received HTTP error code 406 while loading http://skygroup.heroku.com/ >> >> Hosting Logs: >> Processing UsersController#index (for 204.15.23.168 at 2008-07-09 >> 21:18:41) [GET] Session ID: 7f20696ddc5efd8ef3998392-830843210 >> Parameters: {"fb_sig_time"=>"1215663521.2908", >> "fb_sig"=>"ffa784e9d1c76353dd88a37625d89562", "_method"=>"GET", >> "fb_sig_locale"=>"en_US", "action"=>"index", >> "fb_sig_session_key"=>"7f20696ddc5efd8ef3998392-830843210", >> "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", >> "fb_sig_request_method"=>"GET", "controller"=>"users", >> "fb_sig_expires"=>"0", >> "fb_sig_friends"=>"2262404,4804216,5249680,9008910,13750643,506937136,520168433,522304594,528043834,529227427,538707016,540922141,542807705,543517145,550351017,555204379,561335842,563186606,566958300,580552312,581167055,581779377,587040751,590419111,590873221,597463133,598249007,598417675,600028743,622739483,630356681,644401706,651304761,654746992,658132952,661102891,665035038,678155312,679629309,686493571,695123717,696545870,702425899,705314598,712999475,723616403,725213313,728613392,737104108,762788417,784900135,795141561,817255113,819588350,831174826,868845223,1019763240,1034498395,1038216447,1042776567,1047188638,1068223901,1070105629,1095256539,1157552746,1207667867,1254027126,1266144372,1270883167,1277082451,1277868215,1281204041,1283784221,1283784227,1303114794", >> "fb_sig_added"=>"0", "fb_sig_api_key"=>"1cf93933582d5835bebe98d286158273", >> "fb_sig_profile_update_time"=>"1211120190", "fb_sig_user"=>"830843210"} >> User Load (0.001291) SELECT * FROM users Completed in 0.00914 (109 >> reqs/sec) | Rendering: 0.00006 (0%) | DB: 0.00129 (14%) | 406 Not Acceptable >> [http://skygroup.heroku.com/] >> >> >> >> ?08-7-10?David Clements ??? First thing to try is >> removing the slashes from the canvas_page_name.... >> >> If that doesn't help can you send more details from your rails log? >> >> Dave >> >> >> On Wed, Jul 9, 2008 at 10:00 PM, ?? wrote: >> Hi, everyone, >> I am the new one for the facebooker and just created my facebook >> application. >> I start my first application by following the facebooker_tutorial and >> use heroku as my host. >> My application works fine in "Iframe" mode, but when I turn to "FBML" >> mode, I recieved 406 error from my host. >> Does someone has any idea? I think maybe I do something wrong in my >> facebooker configuration. >> >> Here is my facebooker.yml configuration: >> api_key: xxxxxxxxxxxxxxxxxxx >> secret_key: xxxxxxxxxxxxxxxxxxxx >> canvas_page_name: /favoritelink/ >> callback_url: http://skygroup.heroku.com:80 >> >> >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From digidigo at gmail.com Thu Jul 10 23:55:56 2008 From: digidigo at gmail.com (David Clements) Date: Thu, 10 Jul 2008 21:55:56 -0600 Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: References: Message-ID: fbml is the format type for canvas requests. Dave On Thu, Jul 10, 2008 at 9:30 PM, ?? wrote: > I just followed http://apps.facebook.com/facebooker_tutorial/. > And now I think the root cause is the controller which the tutorial doesn't > mention a lot. > > Now my controller action looks like: > def add_facebook_application @users = User.find(:all) > end > It's fine. > > I used to write my controller like: > def add_facebook_application @users = User.find(:all) > respond_to do |format| format.html # index.html.erb > format.xml { render :xml => @users } > end > end > This version causes the 406 error. > > So What kind of MIME type should I return for the FBML request? > > > 2008/7/10 Mike Mangino : > > Do you have a .fbml.erb template for your action? It looks like Rails >> doesn't know how to respond to that request. >> >> Mike >> >> >> On Jul 10, 2008, at 12:22 AM, ?? wrote: >> >> Current configuration: >>> api_key: 1cf93933582d5835bebe98d286158273 >>> secret_key: 2863b13fc58f57cae527de45fd4b7f20 >>> canvas_page_name: favoritelink >>> callback_url: http://skygroup.heroku.com:80 >>> >>> Facebook Error message: >>> Errors while loading page from application >>> Received HTTP error code 406 while loading http://skygroup.heroku.com/ >>> >>> Hosting Logs: >>> Processing UsersController#index (for 204.15.23.168 at 2008-07-09 >>> 21:18:41) [GET] Session ID: 7f20696ddc5efd8ef3998392-830843210 >>> Parameters: {"fb_sig_time"=>"1215663521.2908", >>> "fb_sig"=>"ffa784e9d1c76353dd88a37625d89562", "_method"=>"GET", >>> "fb_sig_locale"=>"en_US", "action"=>"index", >>> "fb_sig_session_key"=>"7f20696ddc5efd8ef3998392-830843210", >>> "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", >>> "fb_sig_request_method"=>"GET", "controller"=>"users", >>> "fb_sig_expires"=>"0", >>> "fb_sig_friends"=>"2262404,4804216,5249680,9008910,13750643,506937136,520168433,522304594,528043834,529227427,538707016,540922141,542807705,543517145,550351017,555204379,561335842,563186606,566958300,580552312,581167055,581779377,587040751,590419111,590873221,597463133,598249007,598417675,600028743,622739483,630356681,644401706,651304761,654746992,658132952,661102891,665035038,678155312,679629309,686493571,695123717,696545870,702425899,705314598,712999475,723616403,725213313,728613392,737104108,762788417,784900135,795141561,817255113,819588350,831174826,868845223,1019763240,1034498395,1038216447,1042776567,1047188638,1068223901,1070105629,1095256539,1157552746,1207667867,1254027126,1266144372,1270883167,1277082451,1277868215,1281204041,1283784221,1283784227,1303114794", >>> "fb_sig_added"=>"0", "fb_sig_api_key"=>"1cf93933582d5835bebe98d286158273", >>> "fb_sig_profile_update_time"=>"1211120190", "fb_sig_user"=>"830843210"} >>> User Load (0.001291) SELECT * FROM users Completed in 0.00914 (109 >>> reqs/sec) | Rendering: 0.00006 (0%) | DB: 0.00129 (14%) | 406 Not Acceptable >>> [http://skygroup.heroku.com/] >>> >>> >>> >>> ?08-7-10?David Clements ??? First thing to try is >>> removing the slashes from the canvas_page_name.... >>> >>> If that doesn't help can you send more details from your rails log? >>> >>> Dave >>> >>> >>> On Wed, Jul 9, 2008 at 10:00 PM, ?? wrote: >>> Hi, everyone, >>> I am the new one for the facebooker and just created my facebook >>> application. >>> I start my first application by following the facebooker_tutorial and >>> use heroku as my host. >>> My application works fine in "Iframe" mode, but when I turn to "FBML" >>> mode, I recieved 406 error from my host. >>> Does someone has any idea? I think maybe I do something wrong in my >>> facebooker configuration. >>> >>> Here is my facebooker.yml configuration: >>> api_key: xxxxxxxxxxxxxxxxxxx >>> secret_key: xxxxxxxxxxxxxxxxxxxx >>> canvas_page_name: /favoritelink/ >>> callback_url: http://skygroup.heroku.com:80 >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xiuxiu.luo.xiao at gmail.com Fri Jul 11 01:13:46 2008 From: xiuxiu.luo.xiao at gmail.com (=?GB2312?B?wt7P9g==?=) Date: Fri, 11 Jul 2008 13:13:46 +0800 Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: References: Message-ID: How should I set my controller for fbml? Can you give me an example? I just tried "format.fbml", and failed. Or should I do some configuration? 2008/7/11, David Clements : > > fbml is the format type for canvas requests. > > Dave > > > On Thu, Jul 10, 2008 at 9:30 PM, ?? wrote: > >> I just followed http://apps.facebook.com/facebooker_tutorial/. >> And now I think the root cause is the controller which the tutorial >> doesn't mention a lot. >> >> Now my controller action looks like: >> def add_facebook_application @users = User.find(:all) >> end >> It's fine. >> >> I used to write my controller like: >> def add_facebook_application @users = User.find(:all) >> respond_to do |format| format.html # index.html.erb >> format.xml { render :xml => @users } >> end >> end >> This version causes the 406 error. >> >> So What kind of MIME type should I return for the FBML request? >> >> >> 2008/7/10 Mike Mangino : >> >> Do you have a .fbml.erb template for your action? It looks like Rails >>> doesn't know how to respond to that request. >>> >>> Mike >>> >>> >>> On Jul 10, 2008, at 12:22 AM, ?? wrote: >>> >>> Current configuration: >>>> api_key: 1cf93933582d5835bebe98d286158273 >>>> secret_key: 2863b13fc58f57cae527de45fd4b7f20 >>>> canvas_page_name: favoritelink >>>> callback_url: http://skygroup.heroku.com:80 >>>> >>>> Facebook Error message: >>>> Errors while loading page from application >>>> Received HTTP error code 406 while loading http://skygroup.heroku.com/ >>>> >>>> Hosting Logs: >>>> Processing UsersController#index (for 204.15.23.168 at 2008-07-09 >>>> 21:18:41) [GET] Session ID: 7f20696ddc5efd8ef3998392-830843210 >>>> Parameters: {"fb_sig_time"=>"1215663521.2908", >>>> "fb_sig"=>"ffa784e9d1c76353dd88a37625d89562", "_method"=>"GET", >>>> "fb_sig_locale"=>"en_US", "action"=>"index", >>>> "fb_sig_session_key"=>"7f20696ddc5efd8ef3998392-830843210", >>>> "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", >>>> "fb_sig_request_method"=>"GET", "controller"=>"users", >>>> "fb_sig_expires"=>"0", >>>> "fb_sig_friends"=>"2262404,4804216,5249680,9008910,13750643,506937136,520168433,522304594,528043834,529227427,538707016,540922141,542807705,543517145,550351017,555204379,561335842,563186606,566958300,580552312,581167055,581779377,587040751,590419111,590873221,597463133,598249007,598417675,600028743,622739483,630356681,644401706,651304761,654746992,658132952,661102891,665035038,678155312,679629309,686493571,695123717,696545870,702425899,705314598,712999475,723616403,725213313,728613392,737104108,762788417,784900135,795141561,817255113,819588350,831174826,868845223,1019763240,1034498395,1038216447,1042776567,1047188638,1068223901,1070105629,1095256539,1157552746,1207667867,1254027126,1266144372,1270883167,1277082451,1277868215,1281204041,1283784221,1283784227,1303114794", >>>> "fb_sig_added"=>"0", "fb_sig_api_key"=>"1cf93933582d5835bebe98d286158273", >>>> "fb_sig_profile_update_time"=>"1211120190", "fb_sig_user"=>"830843210"} >>>> User Load (0.001291) SELECT * FROM users Completed in 0.00914 (109 >>>> reqs/sec) | Rendering: 0.00006 (0%) | DB: 0.00129 (14%) | 406 Not Acceptable >>>> [http://skygroup.heroku.com/] >>>> >>>> >>>> >>>> ?08-7-10?David Clements ??? First thing to try is >>>> removing the slashes from the canvas_page_name.... >>>> >>>> If that doesn't help can you send more details from your rails log? >>>> >>>> Dave >>>> >>>> >>>> On Wed, Jul 9, 2008 at 10:00 PM, ?? wrote: >>>> Hi, everyone, >>>> I am the new one for the facebooker and just created my facebook >>>> application. >>>> I start my first application by following the facebooker_tutorial and >>>> use heroku as my host. >>>> My application works fine in "Iframe" mode, but when I turn to "FBML" >>>> mode, I recieved 406 error from my host. >>>> Does someone has any idea? I think maybe I do something wrong in my >>>> facebooker configuration. >>>> >>>> Here is my facebooker.yml configuration: >>>> api_key: xxxxxxxxxxxxxxxxxxx >>>> secret_key: xxxxxxxxxxxxxxxxxxxx >>>> canvas_page_name: /favoritelink/ >>>> callback_url: http://skygroup.heroku.com:80 >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Fri Jul 11 07:54:39 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 11 Jul 2008 07:54:39 -0400 Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: References: Message-ID: <80738DC0-9D1E-452B-8DF5-B63B7B265F0A@elevatedrails.com> Are you actually using the format.xml? If not, just remove the whole respond_to block and it will attempt to render index.fbml.erb. Mike On Jul 11, 2008, at 1:13 AM, ?? wrote: > How should I set my controller for fbml? Can you give me an example? > > I just tried "format.fbml", and failed. Or should I do some > configuration? > > 2008/7/11, David Clements : fbml is the format > type for canvas requests. > > Dave > > > > On Thu, Jul 10, 2008 at 9:30 PM, ?? > wrote: > I just followed http://apps.facebook.com/facebooker_tutorial/. > And now I think the root cause is the controller which the tutorial > doesn't mention a lot. > > Now my controller action looks like: > def add_facebook_application > @users = User.find(:all) > end > It's fine. > > I used to write my controller like: > def add_facebook_application > @users = User.find(:all) > respond_to do |format| > format.html # index.html.erb > format.xml { render :xml => @users } > end > end > This version causes the 406 error. > > So What kind of MIME type should I return for the FBML request? > > > 2008/7/10 Mike Mangino : > > Do you have a .fbml.erb template for your action? It looks like > Rails doesn't know how to respond to that request. > > Mike > > > On Jul 10, 2008, at 12:22 AM, ?? wrote: > > Current configuration: > api_key: 1cf93933582d5835bebe98d286158273 > secret_key: 2863b13fc58f57cae527de45fd4b7f20 > canvas_page_name: favoritelink > callback_url: http://skygroup.heroku.com:80 > > Facebook Error message: > Errors while loading page from application > Received HTTP error code 406 while loading http://skygroup.heroku.com/ > > Hosting Logs: > Processing UsersController#index (for 204.15.23.168 at 2008-07-09 > 21:18:41) [GET] Session ID: 7f20696ddc5efd8ef3998392-830843210 > Parameters: {"fb_sig_time"=>"1215663521.2908", > "fb_sig"=>"ffa784e9d1c76353dd88a37625d89562", "_method"=>"GET", > "fb_sig_locale"=>"en_US", "action"=>"index", > "fb_sig_session_key"=>"7f20696ddc5efd8ef3998392-830843210", > "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", > "fb_sig_request_method"=>"GET", "controller"=>"users", > "fb_sig_expires"=>"0", > "fb_sig_friends > "= > > > "2262404,4804216,5249680,9008910,13750643,506937136,520168433,522304594,528043834,529227427,538707016,540922141,542807705,543517145,550351017,555204379,561335842,563186606,566958300,580552312,581167055,581779377,587040751,590419111,590873221,597463133,598249007,598417675,600028743,622739483,630356681,644401706,651304761,654746992,658132952,661102891,665035038,678155312,679629309,686493571,695123717,696545870,702425899,705314598,712999475,723616403,725213313,728613392,737104108,762788417,784900135,795141561,817255113,819588350,831174826,868845223,1019763240,1034498395,1038216447,1042776567,1047188638,1068223901,1070105629,1095256539,1157552746,1207667867,1254027126,1266144372,1270883167,1277082451,1277868215,1281204041,1283784221,1283784227,1303114794 > ", "fb_sig_added"=>"0", > "fb_sig_api_key"=>"1cf93933582d5835bebe98d286158273", > "fb_sig_profile_update_time"=>"1211120190", > "fb_sig_user"=>"830843210"} > User Load (0.001291) SELECT * FROM users Completed in 0.00914 (109 > reqs/sec) | Rendering: 0.00006 (0%) | DB: 0.00129 (14%) | 406 Not > Acceptable [http://skygroup.heroku.com/] > > > > ?08-7-10?David Clements > ??? First > thing to try is removing the slashes from the canvas_page_name.... > > If that doesn't help can you send more details from your rails log? > > Dave > > > On Wed, Jul 9, 2008 at 10:00 PM, ?? > wrote: > Hi, everyone, > I am the new one for the facebooker and just created my facebook > application. > I start my first application by following the facebooker_tutorial > and use heroku as my host. > My application works fine in "Iframe" mode, but when I turn to > "FBML" mode, I recieved 406 error from my host. > Does someone has any idea? I think maybe I do something wrong in > my facebooker configuration. > > Here is my facebooker.yml configuration: > api_key: xxxxxxxxxxxxxxxxxxx > secret_key: xxxxxxxxxxxxxxxxxxxx > canvas_page_name: /favoritelink/ > callback_url: http://skygroup.heroku.com:80 > > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > > > -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Fri Jul 11 11:07:17 2008 From: digidigo at gmail.com (David Clements) Date: Fri, 11 Jul 2008 09:07:17 -0600 Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: <80738DC0-9D1E-452B-8DF5-B63B7B265F0A@elevatedrails.com> References: <80738DC0-9D1E-452B-8DF5-B63B7B265F0A@elevatedrails.com> Message-ID: This is how the tutorial code works. If the request is for a canvas page it will attempt to render index.fbml.erb, otherwise it will render index.html.erb ... no need for a render block. On Fri, Jul 11, 2008 at 5:54 AM, Mike Mangino wrote: > Are you actually using the format.xml? If not, just remove the whole > respond_to block and it will attempt to render index.fbml.erb. > > Mike > > > On Jul 11, 2008, at 1:13 AM, ?? wrote: > > How should I set my controller for fbml? Can you give me an example? >> >> I just tried "format.fbml", and failed. Or should I do some configuration? >> >> 2008/7/11, David Clements : fbml is the format type >> for canvas requests. >> >> Dave >> >> >> >> On Thu, Jul 10, 2008 at 9:30 PM, ?? wrote: >> I just followed http://apps.facebook.com/facebooker_tutorial/. >> And now I think the root cause is the controller which the tutorial >> doesn't mention a lot. >> >> Now my controller action looks like: >> def add_facebook_application >> @users = User.find(:all) >> end >> It's fine. >> >> I used to write my controller like: >> def add_facebook_application >> @users = User.find(:all) >> respond_to do |format| >> format.html # index.html.erb >> format.xml { render :xml => @users } >> end >> end >> This version causes the 406 error. >> >> So What kind of MIME type should I return for the FBML request? >> >> >> 2008/7/10 Mike Mangino : >> >> Do you have a .fbml.erb template for your action? It looks like Rails >> doesn't know how to respond to that request. >> >> Mike >> >> >> On Jul 10, 2008, at 12:22 AM, ?? wrote: >> >> Current configuration: >> api_key: 1cf93933582d5835bebe98d286158273 >> secret_key: 2863b13fc58f57cae527de45fd4b7f20 >> canvas_page_name: favoritelink >> callback_url: http://skygroup.heroku.com:80 >> >> Facebook Error message: >> Errors while loading page from application >> Received HTTP error code 406 while loading http://skygroup.heroku.com/ >> >> Hosting Logs: >> Processing UsersController#index (for 204.15.23.168 at 2008-07-09 >> 21:18:41) [GET] Session ID: 7f20696ddc5efd8ef3998392-830843210 >> Parameters: {"fb_sig_time"=>"1215663521.2908", >> "fb_sig"=>"ffa784e9d1c76353dd88a37625d89562", "_method"=>"GET", >> "fb_sig_locale"=>"en_US", "action"=>"index", >> "fb_sig_session_key"=>"7f20696ddc5efd8ef3998392-830843210", >> "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", >> "fb_sig_request_method"=>"GET", "controller"=>"users", >> "fb_sig_expires"=>"0", >> "fb_sig_friends"=>"2262404,4804216,5249680,9008910,13750643,506937136,520168433,522304594,528043834,529227427,538707016,540922141,542807705,543517145,550351017,555204379,561335842,563186606,566958300,580552312,581167055,581779377,587040751,590419111,590873221,597463133,598249007,598417675,600028743,622739483,630356681,644401706,651304761,654746992,658132952,661102891,665035038,678155312,679629309,686493571,695123717,696545870,702425899,705314598,712999475,723616403,725213313,728613392,737104108,762788417,784900135,795141561,817255113,819588350,831174826,868845223,1019763240,1034498395,1038216447,1042776567,1047188638,1068223901,1070105629,1095256539,1157552746,1207667867,1254027126,1266144372,1270883167,1277082451,1277868215,1281204041,1283784221,1283784227,1303114794", >> "fb_sig_added"=>"0", "fb_sig_api_key"=>"1cf93933582d5835bebe98d286158273", >> "fb_sig_profile_update_time"=>"1211120190", "fb_sig_user"=>"830843210"} >> User Load (0.001291) SELECT * FROM users Completed in 0.00914 (109 >> reqs/sec) | Rendering: 0.00006 (0%) | DB: 0.00129 (14%) | 406 Not Acceptable >> [http://skygroup.heroku.com/] >> >> >> >> ?08-7-10?David Clements ??? First thing to try is >> removing the slashes from the canvas_page_name.... >> >> If that doesn't help can you send more details from your rails log? >> >> Dave >> >> >> On Wed, Jul 9, 2008 at 10:00 PM, ?? wrote: >> Hi, everyone, >> I am the new one for the facebooker and just created my facebook >> application. >> I start my first application by following the facebooker_tutorial and >> use heroku as my host. >> My application works fine in "Iframe" mode, but when I turn to "FBML" >> mode, I recieved 406 error from my host. >> Does someone has any idea? I think maybe I do something wrong in my >> facebooker configuration. >> >> Here is my facebooker.yml configuration: >> api_key: xxxxxxxxxxxxxxxxxxx >> secret_key: xxxxxxxxxxxxxxxxxxxx >> canvas_page_name: /favoritelink/ >> callback_url: http://skygroup.heroku.com:80 >> >> >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> >> >> >> > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordanr at cs.washington.edu Fri Jul 11 11:36:27 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Fri, 11 Jul 2008 08:36:27 -0700 (PDT) Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: References: Message-ID: If you want to use "format.fbml", you could add, Mime::Type.register "text/fbml", :fbml to your environment.rb file (or at the top of your controller class file but then you'll get warnings). Ask jeeves about it. Richard On Fri, 11 Jul 2008, ???? wrote: > How should I set my controller for fbml? Can you give me an example? I just tried "format.fbml", and failed. Or should I do some configuration? 2008/7/11, David Clements : > > fbml is the format type for canvas requests. > > Dave > > > On Thu, Jul 10, 2008 at 9:30 PM, ???? wrote: > >> I just followed http://apps.facebook.com/facebooker_tutorial/. >> And now I think the root cause is the controller which the tutorial >> doesn't mention a lot. >> >> Now my controller action looks like: >> def add_facebook_application @users = User.find(:all) >> end >> It's fine. >> >> I used to write my controller like: >> def add_facebook_application @users = User.find(:all) >> respond_to do |format| format.html # index.html.erb >> format.xml { render :xml => @users } >> end >> end >> This version causes the 406 error. >> >> So What kind of MIME type should I return for the FBML request? >> >> >> 2008/7/10 Mike Mangino : >> >> Do you have a .fbml.erb template for your action? It looks like Rails >>> doesn't know how to respond to that request. >>> >>> Mike >>> >>> >>> On Jul 10, 2008, at 12:22 AM, ???? wrote: >>> >>> Current configuration: >>>> api_key: 1cf93933582d5835bebe98d286158273 >>>> secret_key: 2863b13fc58f57cae527de45fd4b7f20 >>>> canvas_page_name: favoritelink >>>> callback_url: http://skygroup.heroku.com:80 >>>> >>>> Facebook Error message: >>>> Errors while loading page from application >>>> Received HTTP error code 406 while loading http://skygroup.heroku.com/ >>>> >>>> Hosting Logs: >>>> Processing UsersController#index (for 204.15.23.168 at 2008-07-09 >>>> 21:18:41) [GET] Session ID: 7f20696ddc5efd8ef3998392-830843210 >>>> Parameters: {"fb_sig_time"=>"1215663521.2908", >>>> "fb_sig"=>"ffa784e9d1c76353dd88a37625d89562", "_method"=>"GET", >>>> "fb_sig_locale"=>"en_US", "action"=>"index", >>>> "fb_sig_session_key"=>"7f20696ddc5efd8ef3998392-830843210", >>>> "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", >>>> "fb_sig_request_method"=>"GET", "controller"=>"users", >>>> "fb_sig_expires"=>"0", >>>> "fb_sig_friends"=>"2262404,4804216,5249680,9008910,13750643,506937136,520168433,522304594,528043834,529227427,538707016,540922141,542807705,543517145,550351017,555204379,561335842,563186606,566958300,580552312,581167055,581779377,587040751,590419111,590873221,597463133,598249007,598417675,600028743,622739483,630356681,644401706,651304761,654746992,658132952,661102891,665035038,678155312,679629309,686493571,695123717,696545870,702425899,705314598,712999475,723616403,725213313,728613392,737104108,762788417,784900135,795141561,817255113,819588350,831174826,868845223,1019763240,1034498395,1038216447,1042776567,1047188638,1068223901,1070105629,1095256539,1157552746,1207667867,1254027126,1266144372,1270883167,1277082451,1277868215,1281204041,1283784221,1283784227,1303114794", >>>> "fb_sig_added"=>"0", "fb_sig_api_key"=>"1cf93933582d5835bebe98d286158273", >>>> "fb_sig_profile_update_time"=>"1211120190", "fb_sig_user"=>"830843210"} >>>> User Load (0.001291) SELECT * FROM users Completed in 0.00914 (109 >>>> reqs/sec) | Rendering: 0.00006 (0%) | DB: 0.00129 (14%) | 406 Not Acceptable >>>> [http://skygroup.heroku.com/] >>>> >>>> >>>> >>>> ??08-7-10??David Clements ?????? First thing to try is >>>> removing the slashes from the canvas_page_name.... >>>> >>>> If that doesn't help can you send more details from your rails log? >>>> >>>> Dave >>>> >>>> >>>> On Wed, Jul 9, 2008 at 10:00 PM, ???? wrote: >>>> Hi, everyone, >>>> I am the new one for the facebooker and just created my facebook >>>> application. >>>> I start my first application by following the facebooker_tutorial and >>>> use heroku as my host. >>>> My application works fine in "Iframe" mode, but when I turn to "FBML" >>>> mode, I recieved 406 error from my host. >>>> Does someone has any idea? I think maybe I do something wrong in my >>>> facebooker configuration. >>>> >>>> Here is my facebooker.yml configuration: >>>> api_key: xxxxxxxxxxxxxxxxxxx >>>> secret_key: xxxxxxxxxxxxxxxxxxxx >>>> canvas_page_name: /favoritelink/ >>>> callback_url: http://skygroup.heroku.com:80 >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> >> > From xiuxiu.luo.xiao at gmail.com Fri Jul 11 12:24:44 2008 From: xiuxiu.luo.xiao at gmail.com (=?GB2312?B?wt7P9g==?=) Date: Sat, 12 Jul 2008 00:24:44 +0800 Subject: [Facebooker-talk] Error 406 from the host In-Reply-To: <80738DC0-9D1E-452B-8DF5-B63B7B265F0A@elevatedrails.com> References: <80738DC0-9D1E-452B-8DF5-B63B7B265F0A@elevatedrails.com> Message-ID: Thanks for your advice. My application got to work according to your advice. And after that, I found another solution to make it works perfect. 1add the MIME type to the config/initializers/mime_types.rb Mime::Type.register_alias 'text/html', :fbml 2change the respond_to block to respond_to do |format| format.html # index.html.erb format.fbml # index.fbml.erb end 2008/7/11 Mike Mangino : > Are you actually using the format.xml? If not, just remove the whole > respond_to block and it will attempt to render index.fbml.erb. > > Mike > > > On Jul 11, 2008, at 1:13 AM, ?? wrote: > > How should I set my controller for fbml? Can you give me an example? >> >> I just tried "format.fbml", and failed. Or should I do some configuration? >> >> 2008/7/11, David Clements : fbml is the format type >> for canvas requests. >> >> Dave >> >> >> >> On Thu, Jul 10, 2008 at 9:30 PM, ?? wrote: >> I just followed http://apps.facebook.com/facebooker_tutorial/. >> And now I think the root cause is the controller which the tutorial >> doesn't mention a lot. >> >> Now my controller action looks like: >> def add_facebook_application >> @users = User.find(:all) >> end >> It's fine. >> >> I used to write my controller like: >> def add_facebook_application >> @users = User.find(:all) >> respond_to do |format| >> format.html # index.html.erb >> format.xml { render :xml => @users } >> end >> end >> This version causes the 406 error. >> >> So What kind of MIME type should I return for the FBML request? >> >> >> 2008/7/10 Mike Mangino : >> >> Do you have a .fbml.erb template for your action? It looks like Rails >> doesn't know how to respond to that request. >> >> Mike >> >> >> On Jul 10, 2008, at 12:22 AM, ?? wrote: >> >> Current configuration: >> api_key: 1cf93933582d5835bebe98d286158273 >> secret_key: 2863b13fc58f57cae527de45fd4b7f20 >> canvas_page_name: favoritelink >> callback_url: http://skygroup.heroku.com:80 >> >> Facebook Error message: >> Errors while loading page from application >> Received HTTP error code 406 while loading http://skygroup.heroku.com/ >> >> Hosting Logs: >> Processing UsersController#index (for 204.15.23.168 at 2008-07-09 >> 21:18:41) [GET] Session ID: 7f20696ddc5efd8ef3998392-830843210 >> Parameters: {"fb_sig_time"=>"1215663521.2908", >> "fb_sig"=>"ffa784e9d1c76353dd88a37625d89562", "_method"=>"GET", >> "fb_sig_locale"=>"en_US", "action"=>"index", >> "fb_sig_session_key"=>"7f20696ddc5efd8ef3998392-830843210", >> "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", >> "fb_sig_request_method"=>"GET", "controller"=>"users", >> "fb_sig_expires"=>"0", >> "fb_sig_friends"=>"2262404,4804216,5249680,9008910,13750643,506937136,520168433,522304594,528043834,529227427,538707016,540922141,542807705,543517145,550351017,555204379,561335842,563186606,566958300,580552312,581167055,581779377,587040751,590419111,590873221,597463133,598249007,598417675,600028743,622739483,630356681,644401706,651304761,654746992,658132952,661102891,665035038,678155312,679629309,686493571,695123717,696545870,702425899,705314598,712999475,723616403,725213313,728613392,737104108,762788417,784900135,795141561,817255113,819588350,831174826,868845223,1019763240,1034498395,1038216447,1042776567,1047188638,1068223901,1070105629,1095256539,1157552746,1207667867,1254027126,1266144372,1270883167,1277082451,1277868215,1281204041,1283784221,1283784227,1303114794", >> "fb_sig_added"=>"0", "fb_sig_api_key"=>"1cf93933582d5835bebe98d286158273", >> "fb_sig_profile_update_time"=>"1211120190", "fb_sig_user"=>"830843210"} >> User Load (0.001291) SELECT * FROM users Completed in 0.00914 (109 >> reqs/sec) | Rendering: 0.00006 (0%) | DB: 0.00129 (14%) | 406 Not Acceptable >> [http://skygroup.heroku.com/] >> >> >> >> ?08-7-10?David Clements ??? First thing to try is >> removing the slashes from the canvas_page_name.... >> >> If that doesn't help can you send more details from your rails log? >> >> Dave >> >> >> On Wed, Jul 9, 2008 at 10:00 PM, ?? wrote: >> Hi, everyone, >> I am the new one for the facebooker and just created my facebook >> application. >> I start my first application by following the facebooker_tutorial and >> use heroku as my host. >> My application works fine in "Iframe" mode, but when I turn to "FBML" >> mode, I recieved 406 error from my host. >> Does someone has any idea? I think maybe I do something wrong in my >> facebooker configuration. >> >> Here is my facebooker.yml configuration: >> api_key: xxxxxxxxxxxxxxxxxxx >> secret_key: xxxxxxxxxxxxxxxxxxxx >> canvas_page_name: /favoritelink/ >> callback_url: http://skygroup.heroku.com:80 >> >> >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> >> >> >> > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramkaka at gmail.com Tue Jul 15 03:24:42 2008 From: ramkaka at gmail.com (Ram Ravichandran) Date: Tue, 15 Jul 2008 03:24:42 -0400 Subject: [Facebooker-talk] redirect_to not preserving the base url Message-ID: I notice that when I do a redirect_to from one action to another in the controller "fb_sig_in_new_facebook" does not get passed along. Is there anyway to fix this before the next release of the api? Thanks Ram -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramkaka at gmail.com Tue Jul 15 03:44:07 2008 From: ramkaka at gmail.com (Ram Ravichandran) Date: Tue, 15 Jul 2008 03:44:07 -0400 Subject: [Facebooker-talk] fixed redirect_to problem for new canvas Message-ID: I have my diff here: http://pastie.org/233585It seems to work for me. Ram -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Tue Jul 15 09:53:47 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 15 Jul 2008 09:53:47 -0400 Subject: [Facebooker-talk] fixed redirect_to problem for new canvas In-Reply-To: References: Message-ID: <1D932AD1-96FF-4E30-9285-11C462B64C9D@elevatedrails.com> Thanks! I applied this change. Mike On Jul 15, 2008, at 3:44 AM, Ram Ravichandran wrote: > I have my diff here: http://pastie.org/233585 > It seems to work for me. > > Ram > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From mmangino at elevatedrails.com Tue Jul 15 09:54:08 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 15 Jul 2008 09:54:08 -0400 Subject: [Facebooker-talk] New publishing API Message-ID: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> I've added support for the new message templates. Check out the documentation (http://facebooker.rubyforge.org/ and http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.html in particular) If you've already created a publisher, you will need to re-run the script/generate command to create a new migration. By default, Facebooker will now keep track of your template ids. To send a message using the new API, you'll need to create two methods. The first returns the templates. For example: class MyPublisher < Facebooker::Rails::Publisher def publish_action_template one_line_story_template "{*actor*} did stuff with {*friend*}" one_line_story_template "{*actor*} did stuff" short_story_template "{*actor*} has a title {*friend*}", render(:partial=>"short_body") short_story_template "{*actor*} has a title", render(:partial=>"short_body") full_story_template "{*actor*} has a title {*friend*}", render(:partial=>"full_body") end The name of the method needs to end in _template. To register this template, you can call MyPublisher.register_publish_action or, to register all templates in a publisher, you can call MyPublisher.register_all_templates Facebooker will store the template id and the template name in the facebook_templates table. To send a message from a stored template, you'll need to create another method that registers the data: def publish_action(f) from f data :friend=>"Mike" end Then, you can call MyPublisher.deliver_publish_action Facebooker will look up the template id automatically. Let me know if you have any issues with this. Mike -- Mike Mangino http://www.elevatedrails.com From redinger at gmail.com Tue Jul 15 13:02:58 2008 From: redinger at gmail.com (Christopher Redinger) Date: Tue, 15 Jul 2008 13:02:58 -0400 Subject: [Facebooker-talk] New publishing API In-Reply-To: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> Message-ID: <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> FYI, I couldn't get the migration to generate. I went into publisher_generator.rb and commented out the unless (and end) line because it wasn't getting in there, even though I didn't have the migration already. Then it worked. On Tue, Jul 15, 2008 at 9:54 AM, Mike Mangino wrote: > I've added support for the new message templates. Check out the > documentation (http://facebooker.rubyforge.org/ and > http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.html in > particular) > > If you've already created a publisher, you will need to re-run the > script/generate command to create a new migration. By default, Facebooker > will now keep track of your template ids. To send a message using the new > API, you'll need to create two methods. The first returns the templates. For > example: > > class MyPublisher < Facebooker::Rails::Publisher > def publish_action_template > one_line_story_template "{*actor*} did stuff with {*friend*}" > one_line_story_template "{*actor*} did stuff" > short_story_template "{*actor*} has a title {*friend*}", > render(:partial=>"short_body") > short_story_template "{*actor*} has a title", > render(:partial=>"short_body") > full_story_template "{*actor*} has a title {*friend*}", > render(:partial=>"full_body") > end > > The name of the method needs to end in _template. > > To register this template, you can call > > MyPublisher.register_publish_action > > or, to register all templates in a publisher, you can call > > MyPublisher.register_all_templates > > > Facebooker will store the template id and the template name in the > facebook_templates table. > > To send a message from a stored template, you'll need to create another > method that registers the data: > > def publish_action(f) > from f > data :friend=>"Mike" > end > > Then, you can call > MyPublisher.deliver_publish_action > > Facebooker will look up the template id automatically. > > Let me know if you have any issues with this. > > Mike > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -- Christopher Redinger http://www.agiledisciple.com From digidigo at gmail.com Tue Jul 15 13:16:47 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 15 Jul 2008 11:16:47 -0600 Subject: [Facebooker-talk] New publishing API In-Reply-To: <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> Message-ID: Same thing happened to me, btw. Dave On Tue, Jul 15, 2008 at 11:02 AM, Christopher Redinger wrote: > FYI, I couldn't get the migration to generate. I went into > publisher_generator.rb and commented out the unless (and end) line > because it wasn't getting in there, even though I didn't have the > migration already. Then it worked. > > On Tue, Jul 15, 2008 at 9:54 AM, Mike Mangino > wrote: > > I've added support for the new message templates. Check out the > > documentation (http://facebooker.rubyforge.org/ and > > http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.htmlin > > particular) > > > > If you've already created a publisher, you will need to re-run the > > script/generate command to create a new migration. By default, Facebooker > > will now keep track of your template ids. To send a message using the new > > API, you'll need to create two methods. The first returns the templates. > For > > example: > > > > class MyPublisher < Facebooker::Rails::Publisher > > def publish_action_template > > one_line_story_template "{*actor*} did stuff with {*friend*}" > > one_line_story_template "{*actor*} did stuff" > > short_story_template "{*actor*} has a title {*friend*}", > > render(:partial=>"short_body") > > short_story_template "{*actor*} has a title", > > render(:partial=>"short_body") > > full_story_template "{*actor*} has a title {*friend*}", > > render(:partial=>"full_body") > > end > > > > The name of the method needs to end in _template. > > > > To register this template, you can call > > > > MyPublisher.register_publish_action > > > > or, to register all templates in a publisher, you can call > > > > MyPublisher.register_all_templates > > > > > > Facebooker will store the template id and the template name in the > > facebook_templates table. > > > > To send a message from a stored template, you'll need to create another > > method that registers the data: > > > > def publish_action(f) > > from f > > data :friend=>"Mike" > > end > > > > Then, you can call > > MyPublisher.deliver_publish_action > > > > Facebooker will look up the template id automatically. > > > > Let me know if you have any issues with this. > > > > Mike > > -- > > Mike Mangino > > http://www.elevatedrails.com > > > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > -- > Christopher Redinger > http://www.agiledisciple.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From redinger at gmail.com Tue Jul 15 13:27:56 2008 From: redinger at gmail.com (Christopher Redinger) Date: Tue, 15 Jul 2008 13:27:56 -0400 Subject: [Facebooker-talk] New publishing API In-Reply-To: References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> Message-ID: <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> And then I had to rename the migration class to CreateFacebookTemplates. It was CreateFacebookTemplateRegistries, but the filename was create_facebook_templates. On Tue, Jul 15, 2008 at 1:16 PM, David Clements wrote: > Same thing happened to me, btw. > > Dave > > > On Tue, Jul 15, 2008 at 11:02 AM, Christopher Redinger > wrote: >> >> FYI, I couldn't get the migration to generate. I went into >> publisher_generator.rb and commented out the unless (and end) line >> because it wasn't getting in there, even though I didn't have the >> migration already. Then it worked. >> >> On Tue, Jul 15, 2008 at 9:54 AM, Mike Mangino >> wrote: >> > I've added support for the new message templates. Check out the >> > documentation (http://facebooker.rubyforge.org/ and >> > http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.html >> > in >> > particular) >> > >> > If you've already created a publisher, you will need to re-run the >> > script/generate command to create a new migration. By default, >> > Facebooker >> > will now keep track of your template ids. To send a message using the >> > new >> > API, you'll need to create two methods. The first returns the templates. >> > For >> > example: >> > >> > class MyPublisher < Facebooker::Rails::Publisher >> > def publish_action_template >> > one_line_story_template "{*actor*} did stuff with {*friend*}" >> > one_line_story_template "{*actor*} did stuff" >> > short_story_template "{*actor*} has a title {*friend*}", >> > render(:partial=>"short_body") >> > short_story_template "{*actor*} has a title", >> > render(:partial=>"short_body") >> > full_story_template "{*actor*} has a title {*friend*}", >> > render(:partial=>"full_body") >> > end >> > >> > The name of the method needs to end in _template. >> > >> > To register this template, you can call >> > >> > MyPublisher.register_publish_action >> > >> > or, to register all templates in a publisher, you can call >> > >> > MyPublisher.register_all_templates >> > >> > >> > Facebooker will store the template id and the template name in the >> > facebook_templates table. >> > >> > To send a message from a stored template, you'll need to create another >> > method that registers the data: >> > >> > def publish_action(f) >> > from f >> > data :friend=>"Mike" >> > end >> > >> > Then, you can call >> > MyPublisher.deliver_publish_action >> > >> > Facebooker will look up the template id automatically. >> > >> > Let me know if you have any issues with this. >> > >> > Mike >> > -- >> > Mike Mangino >> > http://www.elevatedrails.com >> > >> > >> > >> > _______________________________________________ >> > Facebooker-talk mailing list >> > Facebooker-talk at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >> >> >> >> -- >> Christopher Redinger >> http://www.agiledisciple.com >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- Christopher Redinger http://www.agiledisciple.com From mmangino at elevatedrails.com Tue Jul 15 13:46:27 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 15 Jul 2008 13:46:27 -0400 Subject: [Facebooker-talk] New publishing API In-Reply-To: <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> Message-ID: <21CF7966-50C3-4A02-8230-90FF98F1DCCD@elevatedrails.com> Wow, that was really buggy. What Rails version are you using? I'll try to commit fixes today. Mike On Jul 15, 2008, at 1:27 PM, Christopher Redinger wrote: > And then I had to rename the migration class to > CreateFacebookTemplates. It was CreateFacebookTemplateRegistries, but > the filename was create_facebook_templates. > > On Tue, Jul 15, 2008 at 1:16 PM, David Clements > wrote: >> Same thing happened to me, btw. >> >> Dave >> >> >> On Tue, Jul 15, 2008 at 11:02 AM, Christopher Redinger > > >> wrote: >>> >>> FYI, I couldn't get the migration to generate. I went into >>> publisher_generator.rb and commented out the unless (and end) line >>> because it wasn't getting in there, even though I didn't have the >>> migration already. Then it worked. >>> >>> On Tue, Jul 15, 2008 at 9:54 AM, Mike Mangino >>> wrote: >>>> I've added support for the new message templates. Check out the >>>> documentation (http://facebooker.rubyforge.org/ and >>>> http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.html >>>> in >>>> particular) >>>> >>>> If you've already created a publisher, you will need to re-run the >>>> script/generate command to create a new migration. By default, >>>> Facebooker >>>> will now keep track of your template ids. To send a message using >>>> the >>>> new >>>> API, you'll need to create two methods. The first returns the >>>> templates. >>>> For >>>> example: >>>> >>>> class MyPublisher < Facebooker::Rails::Publisher >>>> def publish_action_template >>>> one_line_story_template "{*actor*} did stuff with {*friend*}" >>>> one_line_story_template "{*actor*} did stuff" >>>> short_story_template "{*actor*} has a title {*friend*}", >>>> render(:partial=>"short_body") >>>> short_story_template "{*actor*} has a title", >>>> render(:partial=>"short_body") >>>> full_story_template "{*actor*} has a title {*friend*}", >>>> render(:partial=>"full_body") >>>> end >>>> >>>> The name of the method needs to end in _template. >>>> >>>> To register this template, you can call >>>> >>>> MyPublisher.register_publish_action >>>> >>>> or, to register all templates in a publisher, you can call >>>> >>>> MyPublisher.register_all_templates >>>> >>>> >>>> Facebooker will store the template id and the template name in the >>>> facebook_templates table. >>>> >>>> To send a message from a stored template, you'll need to create >>>> another >>>> method that registers the data: >>>> >>>> def publish_action(f) >>>> from f >>>> data :friend=>"Mike" >>>> end >>>> >>>> Then, you can call >>>> MyPublisher.deliver_publish_action >>>> >>>> Facebooker will look up the template id automatically. >>>> >>>> Let me know if you have any issues with this. >>>> >>>> Mike >>>> -- >>>> Mike Mangino >>>> http://www.elevatedrails.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>> >>> >>> -- >>> Christopher Redinger >>> http://www.agiledisciple.com >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > > > > -- > Christopher Redinger > http://www.agiledisciple.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Tue Jul 15 13:48:00 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 15 Jul 2008 11:48:00 -0600 Subject: [Facebooker-talk] New publishing API In-Reply-To: <21CF7966-50C3-4A02-8230-90FF98F1DCCD@elevatedrails.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> <21CF7966-50C3-4A02-8230-90FF98F1DCCD@elevatedrails.com> Message-ID: I am on rails 2.0.... dave On Tue, Jul 15, 2008 at 11:46 AM, Mike Mangino wrote: > Wow, that was really buggy. What Rails version are you using? I'll try to > commit fixes today. > > Mike > > > On Jul 15, 2008, at 1:27 PM, Christopher Redinger wrote: > > And then I had to rename the migration class to >> CreateFacebookTemplates. It was CreateFacebookTemplateRegistries, but >> the filename was create_facebook_templates. >> >> On Tue, Jul 15, 2008 at 1:16 PM, David Clements >> wrote: >> >>> Same thing happened to me, btw. >>> >>> Dave >>> >>> >>> On Tue, Jul 15, 2008 at 11:02 AM, Christopher Redinger < >>> redinger at gmail.com> >>> wrote: >>> >>>> >>>> FYI, I couldn't get the migration to generate. I went into >>>> publisher_generator.rb and commented out the unless (and end) line >>>> because it wasn't getting in there, even though I didn't have the >>>> migration already. Then it worked. >>>> >>>> On Tue, Jul 15, 2008 at 9:54 AM, Mike Mangino >>>> wrote: >>>> >>>>> I've added support for the new message templates. Check out the >>>>> documentation (http://facebooker.rubyforge.org/ and >>>>> http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.html >>>>> in >>>>> particular) >>>>> >>>>> If you've already created a publisher, you will need to re-run the >>>>> script/generate command to create a new migration. By default, >>>>> Facebooker >>>>> will now keep track of your template ids. To send a message using the >>>>> new >>>>> API, you'll need to create two methods. The first returns the >>>>> templates. >>>>> For >>>>> example: >>>>> >>>>> class MyPublisher < Facebooker::Rails::Publisher >>>>> def publish_action_template >>>>> one_line_story_template "{*actor*} did stuff with {*friend*}" >>>>> one_line_story_template "{*actor*} did stuff" >>>>> short_story_template "{*actor*} has a title {*friend*}", >>>>> render(:partial=>"short_body") >>>>> short_story_template "{*actor*} has a title", >>>>> render(:partial=>"short_body") >>>>> full_story_template "{*actor*} has a title {*friend*}", >>>>> render(:partial=>"full_body") >>>>> end >>>>> >>>>> The name of the method needs to end in _template. >>>>> >>>>> To register this template, you can call >>>>> >>>>> MyPublisher.register_publish_action >>>>> >>>>> or, to register all templates in a publisher, you can call >>>>> >>>>> MyPublisher.register_all_templates >>>>> >>>>> >>>>> Facebooker will store the template id and the template name in the >>>>> facebook_templates table. >>>>> >>>>> To send a message from a stored template, you'll need to create another >>>>> method that registers the data: >>>>> >>>>> def publish_action(f) >>>>> from f >>>>> data :friend=>"Mike" >>>>> end >>>>> >>>>> Then, you can call >>>>> MyPublisher.deliver_publish_action >>>>> >>>>> Facebooker will look up the template id automatically. >>>>> >>>>> Let me know if you have any issues with this. >>>>> >>>>> Mike >>>>> -- >>>>> Mike Mangino >>>>> http://www.elevatedrails.com >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>> >>>>> >>>> >>>> >>>> -- >>>> Christopher Redinger >>>> http://www.agiledisciple.com >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>> >>> >>> >> >> >> -- >> Christopher Redinger >> http://www.agiledisciple.com >> _______________________________________________ >> 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From redinger at gmail.com Tue Jul 15 14:15:07 2008 From: redinger at gmail.com (Christopher Redinger) Date: Tue, 15 Jul 2008 14:15:07 -0400 Subject: [Facebooker-talk] New publishing API In-Reply-To: References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> <21CF7966-50C3-4A02-8230-90FF98F1DCCD@elevatedrails.com> Message-ID: <681d4e8f0807151115u58a8c07br89167acc98ca365d@mail.gmail.com> 2.1 On Tue, Jul 15, 2008 at 1:48 PM, David Clements wrote: > I am on rails 2.0.... > > dave > > > On Tue, Jul 15, 2008 at 11:46 AM, Mike Mangino > wrote: >> >> Wow, that was really buggy. What Rails version are you using? I'll try to >> commit fixes today. >> >> Mike >> >> On Jul 15, 2008, at 1:27 PM, Christopher Redinger wrote: >> >>> And then I had to rename the migration class to >>> CreateFacebookTemplates. It was CreateFacebookTemplateRegistries, but >>> the filename was create_facebook_templates. >>> >>> On Tue, Jul 15, 2008 at 1:16 PM, David Clements >>> wrote: >>>> >>>> Same thing happened to me, btw. >>>> >>>> Dave >>>> >>>> >>>> On Tue, Jul 15, 2008 at 11:02 AM, Christopher Redinger >>>> >>>> wrote: >>>>> >>>>> FYI, I couldn't get the migration to generate. I went into >>>>> publisher_generator.rb and commented out the unless (and end) line >>>>> because it wasn't getting in there, even though I didn't have the >>>>> migration already. Then it worked. >>>>> >>>>> On Tue, Jul 15, 2008 at 9:54 AM, Mike Mangino >>>>> wrote: >>>>>> >>>>>> I've added support for the new message templates. Check out the >>>>>> documentation (http://facebooker.rubyforge.org/ and >>>>>> >>>>>> http://facebooker.rubyforge.org/classes/Facebooker/Rails/Publisher.html >>>>>> in >>>>>> particular) >>>>>> >>>>>> If you've already created a publisher, you will need to re-run the >>>>>> script/generate command to create a new migration. By default, >>>>>> Facebooker >>>>>> will now keep track of your template ids. To send a message using the >>>>>> new >>>>>> API, you'll need to create two methods. The first returns the >>>>>> templates. >>>>>> For >>>>>> example: >>>>>> >>>>>> class MyPublisher < Facebooker::Rails::Publisher >>>>>> def publish_action_template >>>>>> one_line_story_template "{*actor*} did stuff with {*friend*}" >>>>>> one_line_story_template "{*actor*} did stuff" >>>>>> short_story_template "{*actor*} has a title {*friend*}", >>>>>> render(:partial=>"short_body") >>>>>> short_story_template "{*actor*} has a title", >>>>>> render(:partial=>"short_body") >>>>>> full_story_template "{*actor*} has a title {*friend*}", >>>>>> render(:partial=>"full_body") >>>>>> end >>>>>> >>>>>> The name of the method needs to end in _template. >>>>>> >>>>>> To register this template, you can call >>>>>> >>>>>> MyPublisher.register_publish_action >>>>>> >>>>>> or, to register all templates in a publisher, you can call >>>>>> >>>>>> MyPublisher.register_all_templates >>>>>> >>>>>> >>>>>> Facebooker will store the template id and the template name in the >>>>>> facebook_templates table. >>>>>> >>>>>> To send a message from a stored template, you'll need to create >>>>>> another >>>>>> method that registers the data: >>>>>> >>>>>> def publish_action(f) >>>>>> from f >>>>>> data :friend=>"Mike" >>>>>> end >>>>>> >>>>>> Then, you can call >>>>>> MyPublisher.deliver_publish_action >>>>>> >>>>>> Facebooker will look up the template id automatically. >>>>>> >>>>>> Let me know if you have any issues with this. >>>>>> >>>>>> Mike >>>>>> -- >>>>>> Mike Mangino >>>>>> http://www.elevatedrails.com >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Facebooker-talk mailing list >>>>>> Facebooker-talk at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Christopher Redinger >>>>> http://www.agiledisciple.com >>>>> _______________________________________________ >>>>> Facebooker-talk mailing list >>>>> Facebooker-talk at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >>>> >>> >>> >>> >>> -- >>> Christopher Redinger >>> http://www.agiledisciple.com >>> _______________________________________________ >>> 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 > > -- Christopher Redinger http://www.agiledisciple.com From digidigo at gmail.com Tue Jul 15 14:17:58 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 15 Jul 2008 12:17:58 -0600 Subject: [Facebooker-talk] New Profile Tab Message-ID: Anyone know how your application can support being one of the tabs an the new profile? Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From bjclark at scidept.com Tue Jul 15 14:54:22 2008 From: bjclark at scidept.com (BJ Clark) Date: Tue, 15 Jul 2008 12:54:22 -0600 Subject: [Facebooker-talk] New Profile Tab In-Reply-To: References: Message-ID: <731B8064-AB8F-49FA-B7E7-81B1BD521DF6@scidept.com> Everything I know I learned from: http://wiki.developers.facebook.com/index.php/New_Design_Tabbed_Profile I don't know if they've released specifics about how exactly that process will work. I'm thinking they are saving it for F8. BJ Clark Inigral, Inc. On Jul 15, 2008, at 12:17 PM, David Clements wrote: > Anyone know how your application can support being one of the tabs > an the new profile? > > Dave > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From mmangino at elevatedrails.com Tue Jul 15 15:22:32 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 15 Jul 2008 15:22:32 -0400 Subject: [Facebooker-talk] New Profile Tab In-Reply-To: <731B8064-AB8F-49FA-B7E7-81B1BD521DF6@scidept.com> References: <731B8064-AB8F-49FA-B7E7-81B1BD521DF6@scidept.com> Message-ID: <8E8F1532-9D4E-403A-BBD0-3C85D3323BC2@elevatedrails.com> There is a new setting tab. I think you can access it from the developer app at www.new.facebook.com, you give it a URL that it can use on the tab. When the tab is viewed, you get a parameter that gives you the user id of the person whose tab is being viewed. You get no information about the viewer. You do get a session key, but it is a readonly session. I played around with this enough to get it working about 6 weeks ago. Mike On Jul 15, 2008, at 2:54 PM, BJ Clark wrote: > Everything I know I learned from: http://wiki.developers.facebook.com/index.php/New_Design_Tabbed_Profile > I don't know if they've released specifics about how exactly that > process will work. > I'm thinking they are saving it for F8. > > BJ Clark > Inigral, Inc. > > > > On Jul 15, 2008, at 12:17 PM, David Clements wrote: > >> Anyone know how your application can support being one of the tabs >> an the new profile? >> >> Dave >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Tue Jul 15 16:44:00 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 15 Jul 2008 14:44:00 -0600 Subject: [Facebooker-talk] New Profile Tab In-Reply-To: <8E8F1532-9D4E-403A-BBD0-3C85D3323BC2@elevatedrails.com> References: <731B8064-AB8F-49FA-B7E7-81B1BD521DF6@scidept.com> <8E8F1532-9D4E-403A-BBD0-3C85D3323BC2@elevatedrails.com> Message-ID: Cool.. I got that to work. What are you guys putting in there? Seems like a lot of space. Dave On Tue, Jul 15, 2008 at 1:22 PM, Mike Mangino wrote: > There is a new setting tab. I think you can access it from the developer > app at www.new.facebook.com, you give it a URL that it can use on the tab. > When the tab is viewed, you get a parameter that gives you the user id of > the person whose tab is being viewed. You get no information about the > viewer. You do get a session key, but it is a readonly session. I played > around with this enough to get it working about 6 weeks ago. > > Mike > > > On Jul 15, 2008, at 2:54 PM, BJ Clark wrote: > > Everything I know I learned from: >> http://wiki.developers.facebook.com/index.php/New_Design_Tabbed_Profile >> I don't know if they've released specifics about how exactly that process >> will work. >> I'm thinking they are saving it for F8. >> >> BJ Clark >> Inigral, Inc. >> >> >> >> On Jul 15, 2008, at 12:17 PM, David Clements wrote: >> >> Anyone know how your application can support being one of the tabs an the >>> new profile? >>> >>> Dave >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Tue Jul 15 17:59:31 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Tue, 15 Jul 2008 17:59:31 -0400 Subject: [Facebooker-talk] New publishing API In-Reply-To: <681d4e8f0807151115u58a8c07br89167acc98ca365d@mail.gmail.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> <21CF7966-50C3-4A02-8230-90FF98F1DCCD@elevatedrails.com> <681d4e8f0807151115u58a8c07br89167acc98ca365d@mail.gmail.com> Message-ID: <5AAE503F-CE31-485B-ABAA-16EE1A55E6BE@elevatedrails.com> Can you guys try this again? For some reason the built-in helper didn't work. I re-implemented that. Mike On Jul 15, 2008, at 2:15 PM, Christopher Redinger wrote: > 2.1 -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Tue Jul 15 19:11:34 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 15 Jul 2008 17:11:34 -0600 Subject: [Facebooker-talk] Changed to url_rewriting for new facebook profile Message-ID: I noticed that the change for correct support for url_rewriting uses @request.parameters["fb_sig_in_new_facebook"] == "1" But the rest of the code relies on ENV["FACEBOOKER_NEW_API"] --- any reason for these not being in sync? That change is difficult for me to merge into the Adapter based facebooker fork? Plus: Is anyone up for testing out the Adapter branch I emailed about last week? I really want to get it into the main branch, I am running in production without any issues at this point, Bebo and Facebook running side by side. You don't need to be on Bebo to test it out. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From barooo at gmail.com Tue Jul 15 19:19:26 2008 From: barooo at gmail.com (John Richardson) Date: Tue, 15 Jul 2008 18:19:26 -0500 Subject: [Facebooker-talk] stuipid git/ruby/rails question Message-ID: <3f4b08d0807151619r4e4a7882p94ba6e1654e06c78@mail.gmail.com> how does one update the plugin code to be the latest in github? script/plugin updates prints a message "updating facebooker" but doesn't seem to do anything. This is still my first and only rails app so I'm not familiar with all the tools. From wthomas989 at yahoo.com Tue Jul 15 19:48:35 2008 From: wthomas989 at yahoo.com (William Thomas) Date: Tue, 15 Jul 2008 16:48:35 -0700 (PDT) Subject: [Facebooker-talk] stuipid git/ruby/rails question In-Reply-To: <3f4b08d0807151619r4e4a7882p94ba6e1654e06c78@mail.gmail.com> Message-ID: <632981.81107.qm@web58713.mail.re1.yahoo.com> I second that question. In svn I use piston - but everybody seems to be moving towards GIT --- On Tue, 7/15/08, John Richardson wrote: From: John Richardson Subject: [Facebooker-talk] stuipid git/ruby/rails question To: facebooker-talk at rubyforge.org Date: Tuesday, July 15, 2008, 6:19 PM how does one update the plugin code to be the latest in github? script/plugin updates prints a message "updating facebooker" but doesn't seem to do anything. This is still my first and only rails app so I'm not familiar with all the tools. _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From redinger at gmail.com Tue Jul 15 19:51:10 2008 From: redinger at gmail.com (Christopher Redinger) Date: Tue, 15 Jul 2008 19:51:10 -0400 Subject: [Facebooker-talk] New publishing API In-Reply-To: <5AAE503F-CE31-485B-ABAA-16EE1A55E6BE@elevatedrails.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> <21CF7966-50C3-4A02-8230-90FF98F1DCCD@elevatedrails.com> <681d4e8f0807151115u58a8c07br89167acc98ca365d@mail.gmail.com> <5AAE503F-CE31-485B-ABAA-16EE1A55E6BE@elevatedrails.com> Message-ID: <681d4e8f0807151651q3ca5bd91je692ca381acaaf99@mail.gmail.com> Works now. Thanks Mike. On Tue, Jul 15, 2008 at 5:59 PM, Mike Mangino wrote: > Can you guys try this again? For some reason the built-in helper didn't > work. I re-implemented that. > > Mike > > On Jul 15, 2008, at 2:15 PM, Christopher Redinger wrote: > >> 2.1 > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -- Christopher Redinger http://www.agiledisciple.com From redinger at gmail.com Tue Jul 15 19:57:29 2008 From: redinger at gmail.com (Christopher Redinger) Date: Tue, 15 Jul 2008 19:57:29 -0400 Subject: [Facebooker-talk] stuipid git/ruby/rails question In-Reply-To: <3f4b08d0807151619r4e4a7882p94ba6e1654e06c78@mail.gmail.com> References: <3f4b08d0807151619r4e4a7882p94ba6e1654e06c78@mail.gmail.com> Message-ID: <681d4e8f0807151657x31e719edya91aa4ee7d22f00f@mail.gmail.com> There are several answers to this question. Braid, influenced by Piston http://evil.che.lu/2008/4/30/ann-braid-0-4-piston-lookalike-for-git Piston's Edge branch has git support http://blog.teksol.info/tags/piston The method I am using is Git's built in subtree merge strategy: http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html Some people thought Git's submodules were going to fill this need, but there have been some complaints with this method, google before trying this at home: http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html On Tue, Jul 15, 2008 at 7:19 PM, John Richardson wrote: > how does one update the plugin code to be the latest in github? > script/plugin updates prints a message "updating facebooker" but > doesn't seem to do anything. This is still my first and only rails > app so I'm not familiar with all the tools. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -- Christopher Redinger http://www.agiledisciple.com From digidigo at gmail.com Tue Jul 15 23:36:57 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 15 Jul 2008 21:36:57 -0600 Subject: [Facebooker-talk] Changed to url_rewriting for new facebook profile In-Reply-To: References: Message-ID: One other thing about this change. The test in RailsIntegrationTest is in with the tests for non facebook controllers. I had to move it to use a Facebook Authenticated controller in order to get my adaptation of it to work, is this an oversight? Or should this test cover Non facebook controllers? Dave On Tue, Jul 15, 2008 at 5:11 PM, David Clements wrote: > I noticed that the change for correct support for url_rewriting uses > > @request.parameters["fb_sig_in_new_facebook"] == "1" > > But the rest of the code relies on ENV["FACEBOOKER_NEW_API"] --- any reason > for these not being in sync? > > That change is difficult for me to merge into the Adapter based facebooker > fork? > > Plus: > > Is anyone up for testing out the Adapter branch I emailed about last week? > I really want to get it into the main branch, I am running in production > without any issues at this point, Bebo and Facebook running side by side. > You don't need to be on Bebo to test it out. > > > Dave > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Wed Jul 16 08:58:44 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 16 Jul 2008 08:58:44 -0400 Subject: [Facebooker-talk] Changed to url_rewriting for new facebook profile In-Reply-To: References: Message-ID: <4E0BA532-9A71-4774-94A5-D41F2A7E61DF@elevatedrails.com> No reason that I can think of. I just merged your adapter changes. Thanks for doing them! Mike On Jul 15, 2008, at 7:11 PM, David Clements wrote: > I noticed that the change for correct support for url_rewriting uses > > @request.parameters["fb_sig_in_new_facebook"] == "1" > > But the rest of the code relies on ENV["FACEBOOKER_NEW_API"] --- any > reason for these not being in sync? > > That change is difficult for me to merge into the Adapter based > facebooker fork? > > Plus: > > Is anyone up for testing out the Adapter branch I emailed about last > week? I really want to get it into the main branch, I am running in > production without any issues at this point, Bebo and Facebook > running side by side. You don't need to be on Bebo to test it out. > > > Dave > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From redinger at gmail.com Thu Jul 17 11:43:12 2008 From: redinger at gmail.com (Christopher Redinger) Date: Thu, 17 Jul 2008 11:43:12 -0400 Subject: [Facebooker-talk] Different Session Ids Message-ID: <681d4e8f0807170843r3ed44663yfde3ee0b4a391aef@mail.gmail.com> I haven't been able to look into this too deeply yet, but I was wondering if anybody had any insight into this problem. For some of my users, Facebook is sending a Facebooker::Session object with a session_key, let's say it's ABC. This is the one that gets returned by Facebooker as my facebook_session, in set_facebook_session via session_already_secured? However, if I try to actually use it, I'll get the well known 'Facebooker::Session::SessionExpired Exception: Session key invalid or no longer valid' error. It does appear to be a valid key for that user, since it does have the users id tacked onto the end of it. If I look in facebook_params, I see another session_key, let's say DEF. If I use this key, for instance using the secure_with_facebook_params! method, I can use it just fine. Frustratingly, this problem doesn't happen for all users. Sometimes the key in facebook_params and in the session are the same. Any ideas on what might be going on? At this point I'm considering always using the secure_with_facebook_params! method, and just ignoring the session_already_secured? response. -- Christopher Redinger http://www.agiledisciple.com From mmangino at elevatedrails.com Thu Jul 17 13:25:59 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 17 Jul 2008 13:25:59 -0400 Subject: [Facebooker-talk] Different Session Ids In-Reply-To: <681d4e8f0807170843r3ed44663yfde3ee0b4a391aef@mail.gmail.com> References: <681d4e8f0807170843r3ed44663yfde3ee0b4a391aef@mail.gmail.com> Message-ID: <3A880CDC-17CB-4DDF-8C83-E42BF565711B@elevatedrails.com> That might happen if there is a session key stored in the facebook session and a different one comes in via params. We should definitely always use the one from the params if it differs from one stored in the Rails session. Mike On Jul 17, 2008, at 11:43 AM, Christopher Redinger wrote: > I haven't been able to look into this too deeply yet, but I was > wondering if anybody had any insight into this problem. > > For some of my users, Facebook is sending a Facebooker::Session object > with a session_key, let's say it's ABC. This is the one that gets > returned by Facebooker as my facebook_session, in set_facebook_session > via session_already_secured? > > However, if I try to actually use it, I'll get the well known > 'Facebooker::Session::SessionExpired Exception: Session key invalid or > no longer valid' error. It does appear to be a valid key for that > user, since it does have the users id tacked onto the end of it. > > If I look in facebook_params, I see another session_key, let's say > DEF. If I use this key, for instance using the > secure_with_facebook_params! method, I can use it just fine. > > Frustratingly, this problem doesn't happen for all users. Sometimes > the key in facebook_params and in the session are the same. > > Any ideas on what might be going on? At this point I'm considering > always using the secure_with_facebook_params! method, and just > ignoring the session_already_secured? response. > > -- > Christopher Redinger > http://www.agiledisciple.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From rmatei at gmail.com Thu Jul 17 21:02:58 2008 From: rmatei at gmail.com (Robert Matei) Date: Thu, 17 Jul 2008 18:02:58 -0700 Subject: [Facebooker-talk] Running multiple FB apps off the same Rails app Message-ID: <31e3a0430807171802p53c8a4d8n44ee93f0c7d31f95@mail.gmail.com> Hi all, I'm trying to do a few templatized apps. I want them to all run off the same Rails app, which would fetch the right 'theme' from a database based on params[:fb_sig_api_key]. The themes store the config details of each app, in addition to specific prompts and so on. Presumably this would need a modified Facebooker, which can work with multiple api key / secret key combos instead of a single facebooker.yml file. I'm not sure where to start though, and I figured I'd check with people who know Facebooker better than I do. Any suggestions? Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobyhede at info-architects.net Thu Jul 17 21:16:49 2008 From: tobyhede at info-architects.net (Toby Hede) Date: Fri, 18 Jul 2008 11:16:49 +1000 Subject: [Facebooker-talk] Running multiple FB apps off the same Rails app In-Reply-To: <31e3a0430807171802p53c8a4d8n44ee93f0c7d31f95@mail.gmail.com> References: <31e3a0430807171802p53c8a4d8n44ee93f0c7d31f95@mail.gmail.com> Message-ID: I am doing this by using a filter and spoofing the ENV variables. Not pretty but it works. before_filter :authenticate def authenticate @app = find_application ENV['FACEBOOK_API_KEY'] = @app.api_key ENV['FACEBOOK_SECRET_KEY'] = @app.secret_key ensure_application_is_installed_by_facebook_user end On Fri, Jul 18, 2008 at 11:02 AM, Robert Matei wrote: > Hi all, > > I'm trying to do a few templatized apps. I want them to all run off the same > Rails app, which would fetch the right 'theme' from a database based on > params[:fb_sig_api_key]. The themes store the config details of each app, in > addition to specific prompts and so on. > > Presumably this would need a modified Facebooker, which can work with > multiple api key / secret key combos instead of a single facebooker.yml > file. > > I'm not sure where to start though, and I figured I'd check with people who > know Facebooker better than I do. Any suggestions? > > Robert > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From jatinder.saundh at gmail.com Thu Jul 17 21:22:35 2008 From: jatinder.saundh at gmail.com (Jatinder Singh) Date: Thu, 17 Jul 2008 18:22:35 -0700 Subject: [Facebooker-talk] Running multiple FB apps off the same Rails app In-Reply-To: <31e3a0430807171802p53c8a4d8n44ee93f0c7d31f95@mail.gmail.com> References: <31e3a0430807171802p53c8a4d8n44ee93f0c7d31f95@mail.gmail.com> Message-ID: <6368279b0807171822k1adc0f86na2edf21b5627a0f7@mail.gmail.com> Hi, I have done this with rfacebook, and I believe it should be fairly easy to replicate the approach for Facebooker as well. So I had 2 different namespaces for the facebook applications with in the same rails app. The trick is to set the fb params(api key etc.) in the application_controller.rb of each namespace. For example, application_controller.rb of fb1 would have following, http://pastie.org/236172 Thanks Jatinder On Thu, Jul 17, 2008 at 6:02 PM, Robert Matei wrote: > Hi all, > > I'm trying to do a few templatized apps. I want them to all run off the same > Rails app, which would fetch the right 'theme' from a database based on > params[:fb_sig_api_key]. The themes store the config details of each app, in > addition to specific prompts and so on. > > Presumably this would need a modified Facebooker, which can work with > multiple api key / secret key combos instead of a single facebooker.yml > file. > > I'm not sure where to start though, and I figured I'd check with people who > know Facebooker better than I do. Any suggestions? > > Robert > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > From xiuxiu.luo.xiao at gmail.com Fri Jul 18 02:24:34 2008 From: xiuxiu.luo.xiao at gmail.com (=?GB2312?B?wt7P9g==?=) Date: Fri, 18 Jul 2008 14:24:34 +0800 Subject: [Facebooker-talk] Any ideas for the redirect_to in the facebook application? Message-ID: I am using facebooker for the facebook application. Here is a problem. When I redirect_to anothe url, I lost all the facebook parameters and I can't use the related information any more. I tried to use session to handle this problem, but I found that when I redirect_to another controller, the session id changed and session lost. Does anyone meet the same problem? Looks forward to help. thank you. Regards Tony Luo -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Fri Jul 18 10:57:36 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 18 Jul 2008 10:57:36 -0400 Subject: [Facebooker-talk] ProfilePublisher support is now on GitHub Message-ID: Sorry all of this is coming so close to the new profile cutover. I want to get code out there as I integrate it. I just added support for the new Profile Publisher: (http://wiki.developers.facebook.com/index.php/New_Design_Publisher ) There are just a couple of methods. wants_interface? tells you whether or not Facebook is asking for the interface. render_publisher_interface builds the JSON for the publisher interface specification. render_publisher_response takes a UserAction (returned by your Publisher when you call create_method on a method that sends_as :user_action) render_publisher_error(title,body) renders the JSON necessary for an error message. Here is an example action that will be discussed in the next version of Developing Facebook Platform Applications with Rails: def index @defender = User.for(params[:fb_sig_profile_user]) if wants_interface? render_publisher_interface(render_to_string(:partial=>"form")) else attack = Attack.new(params[:app_params][:attack]) @attack = current_user.attack(@defender,attack.move) render_publisher_response(AttackPublisher.create_attack(@attack)) end end Mike -- Mike Mangino http://www.elevatedrails.com From mmangino at elevatedrails.com Fri Jul 18 11:25:39 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 18 Jul 2008 11:25:39 -0400 Subject: [Facebooker-talk] Tab view in profile box Message-ID: <3F82AAF9-4A8F-44AF-A8D7-E199A09508A7@elevatedrails.com> Hey everyone. I'm seeing a bug with tabbed profiles in the new profile. Can anyone with a bug tracker account vote for this bug: http://bugs.developers.facebook.com/show_bug.cgi?id=2646 Currently it is broken for all rails applications. I'm going to add a few helpers for tabs. I would like to add a filter to disallow viewing a page in a tab. Does anyone have a suggestion for name? I could ask Chad, but he would suggest ensure_request_is_not_for_a_facebook_profile_tab :) I am leaning towards :disallow_requests_from_tabs which would then redirect to the console page. Does that sounds reasonable? Mike -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Fri Jul 18 11:34:26 2008 From: digidigo at gmail.com (David Clements) Date: Fri, 18 Jul 2008 09:34:26 -0600 Subject: [Facebooker-talk] Tab view in profile box In-Reply-To: <3F82AAF9-4A8F-44AF-A8D7-E199A09508A7@elevatedrails.com> References: <3F82AAF9-4A8F-44AF-A8D7-E199A09508A7@elevatedrails.com> Message-ID: Hey Mike, This is currently working for me on my testing server. Are you sure you don't have an extra slash somewhere in your configuration? Just to make sure we are talking about the same thing: Configured my app to support tabs in the profile . I added a tab for Meeting Wave to my profile. And I click on a link from the content in the tab? Dave On Fri, Jul 18, 2008 at 9:25 AM, Mike Mangino wrote: > Hey everyone. I'm seeing a bug with tabbed profiles in the new profile. Can > anyone with a bug tracker account vote for this bug: > http://bugs.developers.facebook.com/show_bug.cgi?id=2646 > > Currently it is broken for all rails applications. > > I'm going to add a few helpers for tabs. I would like to add a filter to > disallow viewing a page in a tab. Does anyone have a suggestion for name? I > could ask Chad, but he would suggest > ensure_request_is_not_for_a_facebook_profile_tab :) > > I am leaning towards :disallow_requests_from_tabs which would then redirect > to the console page. Does that sounds reasonable? > > Mike > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Fri Jul 18 11:40:53 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 18 Jul 2008 11:40:53 -0400 Subject: [Facebooker-talk] Tab view in profile box In-Reply-To: References: <3F82AAF9-4A8F-44AF-A8D7-E199A09508A7@elevatedrails.com> Message-ID: <67C18BD4-46DB-418A-9BB3-DDBB188973A7@elevatedrails.com> Me have a bug? never :) The link generated by Facebook is http://www.new.facebook.com/mangino/?user_id=7 When they do the fetch, I get //mangino?user_id=7 Mike On Jul 18, 2008, at 11:34 AM, David Clements wrote: > Hey Mike, > > This is currently working for me on my testing server. Are you > sure you don't have an extra slash somewhere in your configuration? > > Just to make sure we are talking about the same thing: Configured > my app to support tabs in the profile . I added a tab for Meeting > Wave to my profile. And I click on a link from the content in the > tab? > > Dave > > > > On Fri, Jul 18, 2008 at 9:25 AM, Mike Mangino > wrote: > Hey everyone. I'm seeing a bug with tabbed profiles in the new > profile. Can anyone with a bug tracker account vote for this bug: http://bugs.developers.facebook.com/show_bug.cgi?id=2646 > > Currently it is broken for all rails applications. > > I'm going to add a few helpers for tabs. I would like to add a > filter to disallow viewing a page in a tab. Does anyone have a > suggestion for name? I could ask Chad, but he would suggest > ensure_request_is_not_for_a_facebook_profile_tab :) > > I am leaning towards :disallow_requests_from_tabs which would then > redirect to the console page. Does that sounds reasonable? > > Mike > > -- > 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 digidigo at gmail.com Fri Jul 18 11:41:56 2008 From: digidigo at gmail.com (David Clements) Date: Fri, 18 Jul 2008 09:41:56 -0600 Subject: [Facebooker-talk] Running multiple FB apps off the same Rails app In-Reply-To: References: <31e3a0430807171802p53c8a4d8n44ee93f0c7d31f95@mail.gmail.com> Message-ID: We actually just added support for Bebo that should also support multiple rails apps in one instance. I tested it once in my dev environment. Please try this in you facebooker.yml where foo is some unique prefix for the config: foo_api_key: f688cbe01c465d71e4f9bed26722309a foo_secret_key: SECRETKEY foo_canvas_page_name: app_canvas_page_name foo_adapter: FacebookAdapter foo_callback_url: http://mycoolfacebookapp.com I think it requires the same callback_url as the other app, but I don't remember if it can be different. If this gets a lot of use was can make it a little cleaner. Dave On Thu, Jul 17, 2008 at 7:16 PM, Toby Hede wrote: > I am doing this by using a filter and spoofing the ENV variables. Not > pretty but it works. > > before_filter :authenticate > > def authenticate > @app = find_application > > ENV['FACEBOOK_API_KEY'] = @app.api_key > ENV['FACEBOOK_SECRET_KEY'] = @app.secret_key > > ensure_application_is_installed_by_facebook_user > end > > On Fri, Jul 18, 2008 at 11:02 AM, Robert Matei wrote: > > Hi all, > > > > I'm trying to do a few templatized apps. I want them to all run off the > same > > Rails app, which would fetch the right 'theme' from a database based on > > params[:fb_sig_api_key]. The themes store the config details of each app, > in > > addition to specific prompts and so on. > > > > Presumably this would need a modified Facebooker, which can work with > > multiple api key / secret key combos instead of a single facebooker.yml > > file. > > > > I'm not sure where to start though, and I figured I'd check with people > who > > know Facebooker better than I do. Any suggestions? > > > > Robert > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From redinger at gmail.com Fri Jul 18 13:53:41 2008 From: redinger at gmail.com (Christopher Redinger) Date: Fri, 18 Jul 2008 13:53:41 -0400 Subject: [Facebooker-talk] Tab view in profile box In-Reply-To: <67C18BD4-46DB-418A-9BB3-DDBB188973A7@elevatedrails.com> References: <3F82AAF9-4A8F-44AF-A8D7-E199A09508A7@elevatedrails.com> <67C18BD4-46DB-418A-9BB3-DDBB188973A7@elevatedrails.com> Message-ID: <681d4e8f0807181053g493d0775td29e9ffd35f525af@mail.gmail.com> I think the problem might be with the URL helpers. If in my view I put link_to 'facebook/cool_controller' it does The Right Thing. However, if I do link_to facebook_cool_controller_path it's wrong. On Fri, Jul 18, 2008 at 11:40 AM, Mike Mangino wrote: > Me have a bug? never :) > > The link generated by Facebook is > http://www.new.facebook.com/mangino/?user_id=7 > > When they do the fetch, I get //mangino?user_id=7 > > Mike > > > On Jul 18, 2008, at 11:34 AM, David Clements wrote: > >> Hey Mike, >> >> This is currently working for me on my testing server. Are you sure you >> don't have an extra slash somewhere in your configuration? >> >> Just to make sure we are talking about the same thing: Configured my app >> to support tabs in the profile . I added a tab for Meeting Wave to my >> profile. And I click on a link from the content in the tab? >> >> Dave >> >> >> >> On Fri, Jul 18, 2008 at 9:25 AM, Mike Mangino >> wrote: >> Hey everyone. I'm seeing a bug with tabbed profiles in the new profile. >> Can anyone with a bug tracker account vote for this bug: >> http://bugs.developers.facebook.com/show_bug.cgi?id=2646 >> >> Currently it is broken for all rails applications. >> >> I'm going to add a few helpers for tabs. I would like to add a filter to >> disallow viewing a page in a tab. Does anyone have a suggestion for name? I >> could ask Chad, but he would suggest >> ensure_request_is_not_for_a_facebook_profile_tab :) >> >> I am leaning towards :disallow_requests_from_tabs which would then >> redirect to the console page. Does that sounds reasonable? >> >> Mike >> >> -- >> 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 > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -- Christopher Redinger http://www.agiledisciple.com From tobyhede at info-architects.net Fri Jul 18 19:50:17 2008 From: tobyhede at info-architects.net (Toby Hede) Date: Sat, 19 Jul 2008 09:50:17 +1000 Subject: [Facebooker-talk] Running multiple FB apps off the same Rails app In-Reply-To: References: <31e3a0430807171802p53c8a4d8n44ee93f0c7d31f95@mail.gmail.com> Message-ID: In my case, the FB credentials are in the database ... so the YML was not an option - but it's arguably cleaner than my ENV hackin. On Sat, Jul 19, 2008 at 1:41 AM, David Clements wrote: > We actually just added support for Bebo that should also support multiple > rails apps in one instance. I tested it once in my dev environment. > > Please try this in you facebooker.yml where foo is some unique prefix for > the config: > > foo_api_key: f688cbe01c465d71e4f9bed26722309a > foo_secret_key: SECRETKEY > foo_canvas_page_name: app_canvas_page_name > foo_adapter: FacebookAdapter > foo_callback_url: http://mycoolfacebookapp.com > > I think it requires the same callback_url as the other app, but I don't > remember if it can be different. If this gets a lot of use was can make it a > little cleaner. > > Dave > > > > On Thu, Jul 17, 2008 at 7:16 PM, Toby Hede > wrote: >> >> I am doing this by using a filter and spoofing the ENV variables. Not >> pretty but it works. >> >> before_filter :authenticate >> >> def authenticate >> @app = find_application >> >> ENV['FACEBOOK_API_KEY'] = @app.api_key >> ENV['FACEBOOK_SECRET_KEY'] = @app.secret_key >> >> ensure_application_is_installed_by_facebook_user >> end >> >> On Fri, Jul 18, 2008 at 11:02 AM, Robert Matei wrote: >> > Hi all, >> > >> > I'm trying to do a few templatized apps. I want them to all run off the >> > same >> > Rails app, which would fetch the right 'theme' from a database based on >> > params[:fb_sig_api_key]. The themes store the config details of each >> > app, in >> > addition to specific prompts and so on. >> > >> > Presumably this would need a modified Facebooker, which can work with >> > multiple api key / secret key combos instead of a single facebooker.yml >> > file. >> > >> > I'm not sure where to start though, and I figured I'd check with people >> > who >> > know Facebooker better than I do. Any suggestions? >> > >> > Robert >> > >> > _______________________________________________ >> > Facebooker-talk mailing list >> > Facebooker-talk at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >> > >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > From digidigo at gmail.com Fri Jul 18 20:36:54 2008 From: digidigo at gmail.com (David Clements) Date: Fri, 18 Jul 2008 18:36:54 -0600 Subject: [Facebooker-talk] Running multiple FB apps off the same Rails app In-Reply-To: References: <31e3a0430807171802p53c8a4d8n44ee93f0c7d31f95@mail.gmail.com> Message-ID: You could overid Facebooker.load_adapter or Facebooker::AdapterBase.facebooker_config possibly. Using the adapter will allow you to run your apps on Bebo as well. Dave On Fri, Jul 18, 2008 at 5:50 PM, Toby Hede wrote: > In my case, the FB credentials are in the database ... so the YML was > not an option - but it's arguably cleaner than my ENV hackin. > > > > On Sat, Jul 19, 2008 at 1:41 AM, David Clements > wrote: > > We actually just added support for Bebo that should also support multiple > > rails apps in one instance. I tested it once in my dev environment. > > > > Please try this in you facebooker.yml where foo is some unique prefix for > > the config: > > > > foo_api_key: f688cbe01c465d71e4f9bed26722309a > > foo_secret_key: SECRETKEY > > foo_canvas_page_name: app_canvas_page_name > > foo_adapter: FacebookAdapter > > foo_callback_url: http://mycoolfacebookapp.com > > > > I think it requires the same callback_url as the other app, but I don't > > remember if it can be different. If this gets a lot of use was can make > it a > > little cleaner. > > > > Dave > > > > > > > > On Thu, Jul 17, 2008 at 7:16 PM, Toby Hede > > > wrote: > >> > >> I am doing this by using a filter and spoofing the ENV variables. Not > >> pretty but it works. > >> > >> before_filter :authenticate > >> > >> def authenticate > >> @app = find_application > >> > >> ENV['FACEBOOK_API_KEY'] = @app.api_key > >> ENV['FACEBOOK_SECRET_KEY'] = @app.secret_key > >> > >> ensure_application_is_installed_by_facebook_user > >> end > >> > >> On Fri, Jul 18, 2008 at 11:02 AM, Robert Matei > wrote: > >> > Hi all, > >> > > >> > I'm trying to do a few templatized apps. I want them to all run off > the > >> > same > >> > Rails app, which would fetch the right 'theme' from a database based > on > >> > params[:fb_sig_api_key]. The themes store the config details of each > >> > app, in > >> > addition to specific prompts and so on. > >> > > >> > Presumably this would need a modified Facebooker, which can work with > >> > multiple api key / secret key combos instead of a single > facebooker.yml > >> > file. > >> > > >> > I'm not sure where to start though, and I figured I'd check with > people > >> > who > >> > know Facebooker better than I do. Any suggestions? > >> > > >> > Robert > >> > > >> > _______________________________________________ > >> > Facebooker-talk mailing list > >> > Facebooker-talk at rubyforge.org > >> > http://rubyforge.org/mailman/listinfo/facebooker-talk > >> > > >> > > >> _______________________________________________ > >> Facebooker-talk mailing list > >> Facebooker-talk at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zuk_ini at yahoo.com Fri Jul 18 21:18:04 2008 From: zuk_ini at yahoo.com (jeff barrett) Date: Fri, 18 Jul 2008 18:18:04 -0700 (PDT) Subject: [Facebooker-talk] how do I use the new infinite sessions? Message-ID: <834246.51628.qm@web32208.mail.mud.yahoo.com> I've got an existing webapp that I'm integrating w/ Facebook. I'm trying to wrap my head around a few things and I'd appreciate some pointers. It sounds like I would need an infinite session if I want to post a newsfeed item to facebook when I don't have a "recent" session. Have I got that right? This post (http://developers.facebook.com/news.php?blog=1&story=116) led me to believe that in the "new" version of facebook the only way to get an infinite session would be for someone to check the "Keep me logged into " checkbox at "Log in to the application?" dialog. Have I got that right? If the above is true and someone did check that box at login, how would I know that they did and how do I grab that infinite session key? Let's say someone logged in to my application via FB but didn't check the "Keep me logged into " checkbox. Is there a way recognize this state to drive them back to that login page later? TIA for the help. ---- We must be careful about what we pretend to be. - Kurt Vonnegut From jordanr at cs.washington.edu Sun Jul 20 21:49:44 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Sun, 20 Jul 2008 18:49:44 -0700 (PDT) Subject: [Facebooker-talk] js2fbjs Message-ID: Hi, I've put together a basic translator for JavaScript to Facebook JavaScript. You can check it out on GitHub or even get as a plugin if your running Rails 2.1, http://github.com/jordanr/js2fbjs/tree/master script/plugin install git://github.com/jordanr/js2fbjs.git It should work immediately with Facebooker. I hooked it into Facebooker and Rails through render. Right away, it'll parse whatever you are rendering and then try to rewrite it back into Facebook JavaScript. If it fails, it leaves alone your code. As of now, it rewrites, * DOM accessors --> Facebook getter/setters * confirm("...") --> Facebook dialogs * setAttribute('foo', 'bar') --> setFoo('bar') * style.foo = 'bar' --> setStyle('foo', 'bar') Mike, do you think this idea is worth while? People don't have to learn fbjs and Rails helpers work. Imagine sending prototype.js through it and having facebooker.js come out! Sincerely, Richard From mmangino at elevatedrails.com Mon Jul 21 07:45:14 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Mon, 21 Jul 2008 07:45:14 -0400 Subject: [Facebooker-talk] Tab view in profile box In-Reply-To: <681d4e8f0807181053g493d0775td29e9ffd35f525af@mail.gmail.com> References: <3F82AAF9-4A8F-44AF-A8D7-E199A09508A7@elevatedrails.com> <67C18BD4-46DB-418A-9BB3-DDBB188973A7@elevatedrails.com> <681d4e8f0807181053g493d0775td29e9ffd35f525af@mail.gmail.com> Message-ID: <251E0ED2-414E-42B8-9BBD-8A5AC82FBD52@elevatedrails.com> Facebook says that it will be fixed in the next release. Yay! Mike On Jul 18, 2008, at 1:53 PM, Christopher Redinger wrote: > I think the problem might be with the URL helpers. > > If in my view I put > link_to 'facebook/cool_controller' > it does The Right Thing. > > However, if I do > link_to facebook_cool_controller_path > it's wrong. > > On Fri, Jul 18, 2008 at 11:40 AM, Mike Mangino > wrote: >> Me have a bug? never :) >> >> The link generated by Facebook is >> http://www.new.facebook.com/mangino/?user_id=7 >> >> When they do the fetch, I get //mangino?user_id=7 >> >> Mike >> >> >> On Jul 18, 2008, at 11:34 AM, David Clements wrote: >> >>> Hey Mike, >>> >>> This is currently working for me on my testing server. Are you >>> sure you >>> don't have an extra slash somewhere in your configuration? >>> >>> Just to make sure we are talking about the same thing: Configured >>> my app >>> to support tabs in the profile . I added a tab for Meeting Wave >>> to my >>> profile. And I click on a link from the content in the tab? >>> >>> Dave >>> >>> >>> >>> On Fri, Jul 18, 2008 at 9:25 AM, Mike Mangino >> > >>> wrote: >>> Hey everyone. I'm seeing a bug with tabbed profiles in the new >>> profile. >>> Can anyone with a bug tracker account vote for this bug: >>> http://bugs.developers.facebook.com/show_bug.cgi?id=2646 >>> >>> Currently it is broken for all rails applications. >>> >>> I'm going to add a few helpers for tabs. I would like to add a >>> filter to >>> disallow viewing a page in a tab. Does anyone have a suggestion >>> for name? I >>> could ask Chad, but he would suggest >>> ensure_request_is_not_for_a_facebook_profile_tab :) >>> >>> I am leaning towards :disallow_requests_from_tabs which would then >>> redirect to the console page. Does that sounds reasonable? >>> >>> Mike >>> >>> -- >>> 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 >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > > > -- > Christopher Redinger > http://www.agiledisciple.com > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From xu3w31l1 at gmail.com Mon Jul 21 12:03:18 2008 From: xu3w31l1 at gmail.com (Xue Wei li) Date: Mon, 21 Jul 2008 09:03:18 -0700 Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application Message-ID: Whenever a user adds my application Facebooker will throw a Facebooker::Session::IncorrectSignature exception. Upon further investigation I was finding that while the expected signature was blank, the actual signature was the facebook app secret key. why is this happening? Processing FacebookGroupsController#index (for 127.0.0.1 at 2008-07-21 08:58:34) [GET] Session ID: hfiauwhfiuwafwfhuiwhf Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"afewagwgawgwefawefwefawefw"} Facebooker::Session::IncorrectSignature (Facebooker::Session::IncorrectSignature): /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:110:in `verify_signature' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64 /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3 If I account for the signature to be blank on install, I get a SignatureTooOld exception; since facebook_sig_params['time'] is an empty value acebooker::Session::SignatureTooOld (Facebooker::Session::SignatureTooOld): /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:112:in `verify_signature' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook' /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64 /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require' script/server:3 When I account for both the session and the signature, I get a "You've already installed this application" message from Facebook Processing FacebookGroupsController#index (for 127.0.0.1 at 2008-07-21 08:52:35) [GET] Session ID: cfb49392aw667c9f45fwefwef Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"e4awa52fweafweafwcb79f1438afwegagw3"} Redirected to http://www.facebook.com/install.php?api_key=92b0f6e88wafawgwgwawafwffawf01&v=1.0&next=%2Ffacebook_groups%2Findex%3Finstalled%3D1%26 Filter chain halted as [:ensure_application_is_installed_by_facebook_user] rendered_or_redirected. Completed in 0.25199 (3 reqs/sec) | DB: 0.01752 (6%) | 302 Found [ http://xxxxx.com/?auth_token=e44bf8c2a524f0fwafwagwaegaweawe&installed=1] I'm running on rails 2.1 ruby 1.86, but this has also happened on rails 2.0 and pre-2.0 versions. Thanks in advance to anyone that can help - I'm at a complete loss. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wthomas989 at yahoo.com Mon Jul 21 15:58:19 2008 From: wthomas989 at yahoo.com (William Thomas) Date: Mon, 21 Jul 2008 12:58:19 -0700 (PDT) Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application In-Reply-To: Message-ID: <975295.59835.qm@web58705.mail.re1.yahoo.com> I am also having this problem, anybody else? --- On Mon, 7/21/08, Xue Wei li wrote: From: Xue Wei li Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application To: facebooker-talk at rubyforge.org Date: Monday, July 21, 2008, 11:03 AM Whenever a user adds my application Facebooker will throw a Facebooker::Session::IncorrectSignature exception. Upon further investigation I was finding that while the expected signature was blank, the actual signature was the facebook app secret key. why is this happening? Processing FacebookGroupsController#index (for 127.0.0.1 at 2008-07-21 08:58:34) [GET] ? Session ID: hfiauwhfiuwafwfhuiwhf ? Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"afewagwgawgwefawefwefawefw"} Facebooker::Session::IncorrectSignature (Facebooker::Session::IncorrectSignature): ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:110:in `verify_signature' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' ? /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action' ? /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' ? /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' ? /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64 ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' ? /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require' ? script/server:3 If I account for the signature to be blank on install, I get a SignatureTooOld exception; since facebook_sig_params['time'] is an empty value acebooker::Session::SignatureTooOld (Facebooker::Session::SignatureTooOld): ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:112:in `verify_signature' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:95:in `verified_facebook_params' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:35:in `facebook_params' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `valid_session_key_in_session?' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:41:in `session_already_secured?' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:26:in `set_facebook_session' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:176:in `ensure_authenticated_to_facebook' ? /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:181:in `ensure_application_is_installed_by_facebook_user' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `send' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:173:in `evaluate_method' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/callbacks.rb:161:in `call' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:430:in `call' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:592:in `run_before_filters' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:578:in `call_filters' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' ? /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action' ? /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' ? /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' ? /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run' ? /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:502:in `load' ? /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/mongrel.rb:64 ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' ? /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' ? /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' ? /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require' ? script/server:3 When I account for both the session and the signature, I get a "You've already installed this application" message from Facebook Processing FacebookGroupsController#index (for 127.0.0.1 at 2008-07-21 08:52:35) [GET] ? Session ID: cfb49392aw667c9f45fwefwef ? Parameters: {"action"=>"index", "installed"=>"1", "controller"=>"facebook_groups", "auth_token"=>"e4awa52fweafweafwcb79f1438afwegagw3"} Redirected to http://www.facebook.com/install.php?api_key=92b0f6e88wafawgwgwawafwffawf01&v=1.0&next=%2Ffacebook_groups%2Findex%3Finstalled%3D1%26 Filter chain halted as [:ensure_application_is_installed_by_facebook_user] rendered_or_redirected. Completed in 0.25199 (3 reqs/sec) | DB: 0.01752 (6%) | 302 Found [http://xxxxx.com/?auth_token=e44bf8c2a524f0fwafwagwaegaweawe&installed=1] I'm running on rails 2.1 ruby 1.86, but this has also happened on rails 2.0 and pre-2.0 versions. Thanks in advance to anyone that can help - I'm at a complete loss. _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From xu3w31l1 at gmail.com Mon Jul 21 23:05:17 2008 From: xu3w31l1 at gmail.com (Xue Wei li) Date: Mon, 21 Jul 2008 20:05:17 -0700 Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application In-Reply-To: References: Message-ID: I was thinking that and I could be wrong but you know I looked at example after example and I haven't seen anyone do an :exclude for the ensure_facebook_application_is_installed with exception for a 'remove_app' method. Am I wrong? What if I wanted to access show facebook data on the first page? from Dav Yaginuma > to Xue Wei li date Mon, Jul 21, 2008 at 11:21 AM subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application mailed-by gmail.com hide details 11:21 AM (8 hours ago) Reply I think I saw this, and the problem was the post-add URL defined in the FB app page needs to go to a controller action that skips the ensure_facebook_application_is_installed filter. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wthomas989 at yahoo.com Tue Jul 22 13:05:44 2008 From: wthomas989 at yahoo.com (William Thomas) Date: Tue, 22 Jul 2008 10:05:44 -0700 (PDT) Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application Message-ID: <667981.11924.qm@web58705.mail.re1.yahoo.com> I'm using :ensure_authenticated_to_facebook since I don't have an application but only want access to the data. ----- Original Message ---- From: Xue Wei li To: facebooker-talk at rubyforge.org Sent: Monday, July 21, 2008 10:05:17 PM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application I was thinking that and I could be wrong but you know I looked at example after example and I haven't seen anyone do an :exclude for the ensure_facebook_application_is_installed with exception for a 'remove_app' method. Am I wrong? What if I wanted to access show facebook data on the first page? from Dav Yaginuma to Xue Wei li date Mon, Jul 21, 2008 at 11:21 AM subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application mailed-by gmail.com hide details 11:21 AM (8 hours ago) Reply I think I saw this, and the problem was the post-add URL defined in the FB app page needs to go to a controller action that skips the ensure_facebook_application_is_installed filter. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordanr at cs.washington.edu Tue Jul 22 22:37:05 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Tue, 22 Jul 2008 19:37:05 -0700 (PDT) Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application In-Reply-To: <667981.11924.qm@web58705.mail.re1.yahoo.com> References: <667981.11924.qm@web58705.mail.re1.yahoo.com> Message-ID: I have, ensure_application_is_installed_by_facebook_user :except => [:uninstall] in my controller. I can't see how that would cause problems? Also, my post-add url hits a controller protected by the ensure installed filter. No problem for me there either. One note, make sure in your FB setting your post-add url is your canvas page (not your server like your callback url). Maybe, Dave's Facebooker Tutorial section "make user add application" would help? FB authentication can be tricky. Richard On Tue, 22 Jul 2008, William Thomas wrote: > I'm using :ensure_authenticated_to_facebook since I don't have an application but only want access to the data. > > > > ----- Original Message ---- > From: Xue Wei li > To: facebooker-talk at rubyforge.org > Sent: Monday, July 21, 2008 10:05:17 PM > Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application > > > I was thinking that and I could be wrong but you know I looked at example after example and I haven't seen anyone do an :exclude for the ensure_facebook_application_is_installed with exception for a 'remove_app' method. Am I wrong? What if I wanted to access show facebook data on the first page? > > from Dav Yaginuma > to Xue Wei li > date Mon, Jul 21, 2008 at 11:21 AM > subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application > mailed-by gmail.com > > hide details 11:21 AM (8 hours ago) Reply > > > > I think I saw this, and the problem was the post-add URL defined in the FB app page needs to go to a controller action that skips the ensure_facebook_application_is_installed filter. > > > From xu3w31l1 at gmail.com Wed Jul 23 03:26:01 2008 From: xu3w31l1 at gmail.com (Xue Wei li) Date: Wed, 23 Jul 2008 00:26:01 -0700 Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application In-Reply-To: References: <667981.11924.qm@web58705.mail.re1.yahoo.com> Message-ID: On Tue, Jul 22, 2008 at 7:37 PM, Richard Jordan wrote: > I have, > ensure_application_is_installed_by_facebook_user :except => [:uninstall] > in my controller. I can't see how that would cause problems? I did the same thing with my app Also, my post-add url hits a controller protected by the ensure installed > filter. No problem for me there either. One note, make sure in your FB > setting your post-add url is your canvas page (not your server like your > callback url). > same thing here - my app in post add (even though my app fails during the add) works perfectly fine I'm assuming your callback url calls an 'add' method for your app besides saving facebook uids - does it do anything like app redirection? For some reason, I don't know why - facebooker things the actual signature during an application add, is my app's secret key - when it's supposed to be blank... > > Maybe, Dave's Facebooker Tutorial section "make user add application" would > help? FB authentication can be tricky. > it was the 1st thing I read... but in my case I need to see the whole picture (a zipped sample app that would help) - snippets only go so far > > Richard > > > > On Tue, 22 Jul 2008, William Thomas wrote: > > I'm using :ensure_authenticated_to_facebook since I don't have an >> application but only want access to the data. >> >> >> >> ----- Original Message ---- >> From: Xue Wei li >> To: facebooker-talk at rubyforge.org >> Sent: Monday, July 21, 2008 10:05:17 PM >> Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> exception when adding application >> >> >> I was thinking that and I could be wrong but you know I looked at example >> after example and I haven't seen anyone do an :exclude for the >> ensure_facebook_application_is_installed with exception for a 'remove_app' >> method. Am I wrong? What if I wanted to access show facebook data on the >> first page? >> >> from Dav Yaginuma >> to Xue Wei li >> date Mon, Jul 21, 2008 at 11:21 AM >> subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >> exception when adding application >> mailed-by gmail.com >> >> hide details 11:21 AM (8 hours ago) Reply >> >> >> >> I think I saw this, and the problem was the post-add URL defined in the FB >> app page needs to go to a controller action that skips the >> ensure_facebook_application_is_installed filter. >> >> >> >> _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xiuxiu.luo.xiao at gmail.com Wed Jul 23 04:04:28 2008 From: xiuxiu.luo.xiao at gmail.com (=?GB2312?B?wt7P9g==?=) Date: Wed, 23 Jul 2008 16:04:28 +0800 Subject: [Facebooker-talk] Any ideas for the redirect_to in the facebook application? In-Reply-To: References: Message-ID: fb:redirect is the answer. Sorry for my mistake. 2008/7/18 ?? : > I am using facebooker for the facebook application. > Here is a problem. > When I redirect_to anothe url, I lost all the facebook parameters and I > can't use the related information any more. > > I tried to use session to handle this problem, but I found that when I > redirect_to another controller, the session id changed and session lost. > Does anyone meet the same problem? Looks forward to help. thank you. > > Regards > Tony Luo > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordanr at cs.washington.edu Wed Jul 23 12:10:40 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Wed, 23 Jul 2008 09:10:40 -0700 (PDT) Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application In-Reply-To: References: <667981.11924.qm@web58705.mail.re1.yahoo.com> Message-ID: > it was the 1st thing I read... but in my case I need to see the whole > picture (a zipped sample app that would help) - snippets only go so far I put my first app on RubyForge. It's pretty bloated, a stupid idea, and very poorly done, but it works (or at least did at one point). If you're desperate do a, svn checkout svn://rubyforge.org/var/svn/couple-rater Look at trunk/app/controller/application.rb. I put all the install/uninstall code in my base controller. >> >> >> On Tue, 22 Jul 2008, William Thomas wrote: >> >> I'm using :ensure_authenticated_to_facebook since I don't have an >>> application but only want access to the data. >>> >>> >>> >>> ----- Original Message ---- >>> From: Xue Wei li >>> To: facebooker-talk at rubyforge.org >>> Sent: Monday, July 21, 2008 10:05:17 PM >>> Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >>> exception when adding application >>> >>> >>> I was thinking that and I could be wrong but you know I looked at example >>> after example and I haven't seen anyone do an :exclude for the >>> ensure_facebook_application_is_installed with exception for a 'remove_app' >>> method. Am I wrong? What if I wanted to access show facebook data on the >>> first page? >>> >>> from Dav Yaginuma >>> to Xue Wei li >>> date Mon, Jul 21, 2008 at 11:21 AM >>> subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >>> exception when adding application >>> mailed-by gmail.com >>> >>> hide details 11:21 AM (8 hours ago) Reply >>> >>> >>> >>> I think I saw this, and the problem was the post-add URL defined in the FB >>> app page needs to go to a controller action that skips the >>> ensure_facebook_application_is_installed filter. >>> >>> >>> >>> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > From wthomas989 at yahoo.com Wed Jul 23 14:19:03 2008 From: wthomas989 at yahoo.com (William Thomas) Date: Wed, 23 Jul 2008 11:19:03 -0700 (PDT) Subject: [Facebooker-talk] Ensure Has Status Update Message-ID: <5289.24715.qm@web58705.mail.re1.yahoo.com> I've asked this before but did not really get a response. Essentially I want to allow my rails application to allow a status update. When I put the filter ":ensure_has_status_update" in my controller it redirects to Facebook, I check the box, its says ok and tells me to return to my application. Even when I manually return to my application - it redirects me back to Facebook with the box checked. It seems as though facebooker does not get notified that the permissions for my application have changed. Is there anybody using this functionality or is there an example I can check out? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Wed Jul 23 16:13:25 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Wed, 23 Jul 2008 16:13:25 -0400 Subject: [Facebooker-talk] Ensure Has Status Update In-Reply-To: <5289.24715.qm@web58705.mail.re1.yahoo.com> References: <5289.24715.qm@web58705.mail.re1.yahoo.com> Message-ID: <07FF5DCC-49EB-49B4-9367-D6AA0FE5767A@elevatedrails.com> I know somebody was using this. Can you send an example request that got redirected? I remember that any page that is covered by the :ensure_has_status_update filter must also require authentication. Mike On Jul 23, 2008, at 2:19 PM, William Thomas wrote: > I've asked this before but did not really get a response. > Essentially I want to allow my rails application to allow a status > update. When I put the filter > ":ensure_has_status_update" in my controller it redirects to > Facebook, I check the box, its says ok and tells me to return to my > application. Even when I manually return to my application - it > redirects me back to Facebook with the box checked. It seems as > though facebooker does not get notified that the permissions for my > application have changed. > > Is there anybody using this functionality or is there an example I > can check out? > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From ramkaka at gmail.com Thu Jul 24 00:45:50 2008 From: ramkaka at gmail.com (ramkaka) Date: Thu, 24 Jul 2008 00:45:50 -0400 Subject: [Facebooker-talk] infinite_session renamed to offline_access Message-ID: Hopefully it will save someone a day. Apparently they renamed infinite_session to offline_access. So use that in your fb:prompt_permission -------------- next part -------------- An HTML attachment was scrubbed... URL: From rajiv.ranganath at atihita.com Thu Jul 24 05:08:18 2008 From: rajiv.ranganath at atihita.com (Rajiv M Ranganath) Date: Thu, 24 Jul 2008 17:08:18 +0800 Subject: [Facebooker-talk] facebook_form_for - text_area In-Reply-To: References: Message-ID: <5756853B-0894-4039-B1C2-528377077D97@atihita.com> Hi there, Is there any way to set the default value for text_area using facebook_form_for? I would like to do something like, You can set the initial value too. Best, Rajiv From mmangino at elevatedrails.com Thu Jul 24 07:47:24 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 24 Jul 2008 07:47:24 -0400 Subject: [Facebooker-talk] facebook_form_for - text_area In-Reply-To: <5756853B-0894-4039-B1C2-528377077D97@atihita.com> References: <5756853B-0894-4039-B1C2-528377077D97@atihita.com> Message-ID: <1D19892E-A411-4408-A83D-8A2D187983BB@elevatedrails.com> Yes, just set the value of the object in question. So if you are doing <% facebook_form_for :comment, at comment ... %> <%= f.text_area :body %> <%= f.buttons :save %> <% end %> you could have a controller that looks like: def new @comment = Comment.new(:body=>"Initial text here") end Mike On Jul 24, 2008, at 5:08 AM, Rajiv M Ranganath wrote: > Hi there, > > Is there any way to set the default value for text_area using > facebook_form_for? I would like to do something like, > > > You can set the initial value too. > > > Best, > Rajiv > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From mmangino at elevatedrails.com Thu Jul 24 07:49:10 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 24 Jul 2008 07:49:10 -0400 Subject: [Facebooker-talk] infinite_session renamed to offline_access In-Reply-To: References: Message-ID: <0EF6D782-F6CF-4177-880F-33DBB9B09054@elevatedrails.com> Thanks for pointing this out. I changed the allowed value in the Facebooker helpers. Mike On Jul 24, 2008, at 12:45 AM, ramkaka wrote: > Hopefully it will save someone a day. Apparently they renamed > infinite_session to offline_access. > So use that in your fb:prompt_permission > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From schroeder.ken at gmail.com Thu Jul 24 11:36:06 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Thu, 24 Jul 2008 11:36:06 -0400 Subject: [Facebooker-talk] Missing Session Data Message-ID: We've recently set up a new application to branch our current app. The onlything that has really changed is 1) We have a new CanvasPage Api and Secret Key. When I try and hit my canvas page I get a 500 error and in the log I see: Processing FbSiteController#index (for 69.63.176.93 at 2008-07-24 15:31:49) [GET] Session ID: f24d8a05ea0d0b890785c3aadbe6df43 Parameters: {"fb_sig_time"=>"1216913509.4144", "fb_sig"=>"3495aac818a97e344cde747f893235d7", "_method"=>"GET", "fb_sig_locale"=>"en_US", "action"=>"index", "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", "fb_sig_request_method"=>"GET", "controller"=>"fb_site", "fb_sig_added"=>"0", "fb_sig_api_key"=>"aac4a507072a2272861620d4465805f9"} Facebooker::Session::MissingOrInvalidParameter (Invalid parameter): It's seems the error is because the session data is not entirely complete there is no fb_sig_user in the params. Anyone seen this before and have any suggestions? Thanks --ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Thu Jul 24 11:45:32 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 24 Jul 2008 11:45:32 -0400 Subject: [Facebooker-talk] Missing Session Data In-Reply-To: References: Message-ID: It's hard to guess without a lot of code. My thought would be that you are using the facebook_session object somewhere. This is trying to request an auth_token from Facebook without a user ID. Does anyone understand the way requesting an auth token works? It seems to me we should never do that if no UID is present. Mike On Jul 24, 2008, at 11:36 AM, Ken Schroeder wrote: > We've recently set up a new application to branch our current app. > The onlything that has really changed is 1) We have a new CanvasPage > Api and Secret Key. When I try and hit my canvas page I get a 500 > error and in the log I see: > > Processing FbSiteController#index (for 69.63.176.93 at 2008-07-24 > 15:31:49) [GET] > Session ID: f24d8a05ea0d0b890785c3aadbe6df43 > Parameters: {"fb_sig_time"=>"1216913509.4144", > "fb_sig"=>"3495aac818a97e344cde747f893235d7", "_method"=>"GET", > "fb_sig_locale"=>"en_US", "action"=>"index", > "fb_sig_position_fix"=>"1", "fb_sig_in_canvas"=>"1", > "fb_sig_request_method"=>"GET", "controller"=>"fb_site", > "fb_sig_added"=>"0", > "fb_sig_api_key"=>"aac4a507072a2272861620d4465805f9"} > > Facebooker::Session::MissingOrInvalidParameter (Invalid parameter): > > It's seems the error is because the session data is not entirely > complete there is no fb_sig_user in the params. Anyone seen this > before and have any suggestions? Thanks --ken > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From xu3w31l1 at gmail.com Thu Jul 24 14:11:16 2008 From: xu3w31l1 at gmail.com (Xue Wei li) Date: Thu, 24 Jul 2008 11:11:16 -0700 Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application In-Reply-To: References: <667981.11924.qm@web58705.mail.re1.yahoo.com> Message-ID: Thanks Richard - this is a great help =) On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan wrote: > it was the 1st thing I read... but in my case I need to see the whole >> picture (a zipped sample app that would help) - snippets only go so far >> > > I put my first app on RubyForge. It's pretty bloated, a stupid idea, and > very poorly done, but it works (or at least did at one point). If you're > desperate do a, > svn checkout svn://rubyforge.org/var/svn/couple-rater > Look at trunk/app/controller/application.rb. I put all the > install/uninstall code in my base controller. > > > >>> >>> On Tue, 22 Jul 2008, William Thomas wrote: >>> >>> I'm using :ensure_authenticated_to_facebook since I don't have an >>> >>>> application but only want access to the data. >>>> >>>> >>>> >>>> ----- Original Message ---- >>>> From: Xue Wei li >>>> To: facebooker-talk at rubyforge.org >>>> Sent: Monday, July 21, 2008 10:05:17 PM >>>> Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >>>> exception when adding application >>>> >>>> >>>> I was thinking that and I could be wrong but you know I looked at >>>> example >>>> after example and I haven't seen anyone do an :exclude for the >>>> ensure_facebook_application_is_installed with exception for a >>>> 'remove_app' >>>> method. Am I wrong? What if I wanted to access show facebook data on the >>>> first page? >>>> >>>> from Dav Yaginuma >>>> to Xue Wei li >>>> date Mon, Jul 21, 2008 at 11:21 AM >>>> subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature >>>> exception when adding application >>>> mailed-by gmail.com >>>> >>>> hide details 11:21 AM (8 hours ago) Reply >>>> >>>> >>>> >>>> I think I saw this, and the problem was the post-add URL defined in the >>>> FB >>>> app page needs to go to a controller action that skips the >>>> ensure_facebook_application_is_installed filter. >>>> >>>> >>>> >>>> _______________________________________________ >>>> >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From digidigo at gmail.com Thu Jul 24 17:39:50 2008 From: digidigo at gmail.com (David Clements) Date: Thu, 24 Jul 2008 15:39:50 -0600 Subject: [Facebooker-talk] Possible Bug in new Feed Story Message-ID: Is anyone else publishing feed stories with the new Feed Templates? I am using the {*target*} special key and it is failing for me because we are sending json encoded array of target_ids rather than a comma separated list indicated by the wiki API page. target_ids string A comma-delimited list of IDs of friends of the actor, used for stories about a direct action between the actor and the targets of his or her action. This parameter is required if one or more templates in the template bundle makes use of the *{*target*}* token. It should only include the IDs of friends of the actor, and it should not contain the actor's ID. I am looking for a sanity check here before I check in a fix. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmangino at elevatedrails.com Thu Jul 24 17:42:11 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 24 Jul 2008 17:42:11 -0400 Subject: [Facebooker-talk] Possible Bug in new Feed Story In-Reply-To: References: Message-ID: Sorry, that was a stupid mistake on my part. Please check in that fix. Mike On Jul 24, 2008, at 5:39 PM, David Clements wrote: > Is anyone else publishing feed stories with the new Feed Templates? > > I am using the {*target*} special key and it is failing for me > because we are sending json encoded array of target_ids rather than > a comma separated list indicated by the wiki API page. > > > target_ids > string > A comma-delimited list of IDs of friends of the actor, used for > stories about a direct action between the actor and the targets of > his or her action. This parameter is required if one or more > templates in the template bundle makes use of the {*target*} token. > It should only include the IDs of friends of the actor, and it > should not contain the actor's ID. > > > > > I am looking for a sanity check here before I check in a fix. > > Dave > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From digidigo at gmail.com Thu Jul 24 17:55:30 2008 From: digidigo at gmail.com (David Clements) Date: Thu, 24 Jul 2008 15:55:30 -0600 Subject: [Facebooker-talk] Possible Bug in new Feed Story In-Reply-To: References: Message-ID: Okay cool... I also made sure that it was not json encoded. Fix is checked in and it is working for me. Dave On Thu, Jul 24, 2008 at 3:42 PM, Mike Mangino wrote: > Sorry, that was a stupid mistake on my part. Please check in that fix. > > Mike > > > On Jul 24, 2008, at 5:39 PM, David Clements wrote: > > Is anyone else publishing feed stories with the new Feed Templates? >> >> I am using the {*target*} special key and it is failing for me because we >> are sending json encoded array of target_ids rather than a comma separated >> list indicated by the wiki API page. >> >> >> target_ids >> string >> A comma-delimited list of IDs of friends of the actor, used for stories >> about a direct action between the actor and the targets of his or her >> action. This parameter is required if one or more templates in the template >> bundle makes use of the {*target*} token. It should only include the IDs of >> friends of the actor, and it should not contain the actor's ID. >> >> >> >> >> I am looking for a sanity check here before I check in a fix. >> >> Dave >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeder.ken at gmail.com Thu Jul 24 18:02:48 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Thu, 24 Jul 2008 18:02:48 -0400 Subject: [Facebooker-talk] Missing Session Data In-Reply-To: References: Message-ID: Looks like I had some faulty session data from trying to add the App new with a misconfiguration. Clearing my session table fixed the problem. On Thu, Jul 24, 2008 at 11:45 AM, Mike Mangino wrote: > It's hard to guess without a lot of code. My thought would be that you are > using the facebook_session object somewhere. This is trying to request an > auth_token from Facebook without a user ID. > > Does anyone understand the way requesting an auth token works? It seems to > me we should never do that if no UID is present. > > Mike > > > On Jul 24, 2008, at 11:36 AM, Ken Schroeder wrote: > > We've recently set up a new application to branch our current app. The >> onlything that has really changed is 1) We have a new CanvasPage Api and >> Secret Key. When I try and hit my canvas page I get a 500 error and in the >> log I see: >> >> Processing FbSiteController#index (for 69.63.176.93 at 2008-07-24 >> 15:31:49) [GET] >> Session ID: f24d8a05ea0d0b890785c3aadbe6df43 >> Parameters: {"fb_sig_time"=>"1216913509.4144", >> "fb_sig"=>"3495aac818a97e344cde747f893235d7", "_method"=>"GET", >> "fb_sig_locale"=>"en_US", "action"=>"index", "fb_sig_position_fix"=>"1", >> "fb_sig_in_canvas"=>"1", "fb_sig_request_method"=>"GET", >> "controller"=>"fb_site", "fb_sig_added"=>"0", >> "fb_sig_api_key"=>"aac4a507072a2272861620d4465805f9"} >> >> Facebooker::Session::MissingOrInvalidParameter (Invalid parameter): >> >> It's seems the error is because the session data is not entirely complete >> there is no fb_sig_user in the params. Anyone seen this before and have any >> suggestions? Thanks --ken >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From auswalk at gmail.com Thu Jul 24 18:48:04 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 24 Jul 2008 17:48:04 -0500 Subject: [Facebooker-talk] error with session_migration Message-ID: <488906A4.2070105@gmail.com> Just got thru installing the plugin. Doesn't seem to work: # script/generate session_migration /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/models/user.rb:288: syntax error, unexpected $end, expecting kEND (SyntaxError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' from /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker.rb:24 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' ... 23 levels... from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/generate.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from script/generate:3 From auswalk at gmail.com Thu Jul 24 19:59:56 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 24 Jul 2008 18:59:56 -0500 Subject: [Facebooker-talk] error with session_migration In-Reply-To: <488906A4.2070105@gmail.com> References: <488906A4.2070105@gmail.com> Message-ID: <4889177C.9000504@gmail.com> Solved getting the git instead: script/plugin install git://github.com/mmangino/facebooker.git Allen Walker wrote: > Just got thru installing the plugin. > > Doesn't seem to work: > > # script/generate session_migration > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require': > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/models/user.rb:288: > syntax error, unexpected $end, expecting kEND (SyntaxError) > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in > `require' > from > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in > `new_constants_in' > from > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in > `require' > from > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker.rb:24 > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in > `require' > ... 23 levels... > from > /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/generate.rb:1 > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from script/generate:3 > > From mmangino at elevatedrails.com Fri Jul 25 08:02:43 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Fri, 25 Jul 2008 08:02:43 -0400 Subject: [Facebooker-talk] error with session_migration In-Reply-To: <4889177C.9000504@gmail.com> References: <488906A4.2070105@gmail.com> <4889177C.9000504@gmail.com> Message-ID: <3CB4D8AA-9794-4C8F-AC87-BDCAB8046239@elevatedrails.com> Does anyone know of an easy way to mirror the git repo to rubyforge? Mike On Jul 24, 2008, at 7:59 PM, Allen Walker wrote: > Solved getting the git instead: > > script/plugin install git://github.com/mmangino/facebooker.git > > Allen Walker wrote: >> Just got thru installing the plugin. >> >> Doesn't seem to work: >> >> # script/generate session_migration >> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> `gem_original_require': /home/slick/meetingup/vendor/plugins/ >> facebooker/lib/facebooker/models/user.rb:288: syntax error, >> unexpected $end, expecting kEND (SyntaxError) >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:27:in `require' >> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >> lib/active_support/dependencies.rb:509:in `require' >> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >> lib/active_support/dependencies.rb:354:in `new_constants_in' >> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >> lib/active_support/dependencies.rb:509:in `require' >> from /home/slick/meetingup/vendor/plugins/facebooker/lib/ >> facebooker.rb:24 >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:27:in `gem_original_require' >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:27:in `require' >> from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ >> lib/active_support/dependencies.rb:509:in `require' >> ... 23 levels... >> from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/ >> commands/generate.rb:1 >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:27:in `gem_original_require' >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:27:in `require' >> from script/generate:3 >> >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com From jordanr at cs.washington.edu Fri Jul 25 19:20:24 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Fri, 25 Jul 2008 16:20:24 -0700 (PDT) Subject: [Facebooker-talk] error with session_migration In-Reply-To: <3CB4D8AA-9794-4C8F-AC87-BDCAB8046239@elevatedrails.com> References: <488906A4.2070105@gmail.com> <4889177C.9000504@gmail.com> <3CB4D8AA-9794-4C8F-AC87-BDCAB8046239@elevatedrails.com> Message-ID: I figured out how to mirror a git repo to rubyforge. Mike, I assume you used git-svn when you moved it to GitHub like so, git svn clone svn+ssh://mmangino at rubyforge.org/var/svn/facebooker -T trunk Now, to push back to rubyforge, you should be able to just do, git svn dcommit If that works, then to mirror back gitHub commits you can use git's post-commit hook. Edit the file in facebooker/.git/hooks/post-commit to be, ------------------ #!/bin/sh # # An example hook script that is called after a successful # commit is made. # # To enable this hook, make this file executable. #: Nothing git-svn dcommit ----------------- Everytime you commit you'll also see, Committing to svn+ssh://rubyforge.org/var/svn/facebooker/trunk ... I tried this sequence with a repo I had on rubyforge. It worked for me. Richard On Fri, 25 Jul 2008, Mike Mangino wrote: > Does anyone know of an easy way to mirror the git repo to rubyforge? > > Mike > > On Jul 24, 2008, at 7:59 PM, Allen Walker wrote: > >> Solved getting the git instead: >> >> script/plugin install git://github.com/mmangino/facebooker.git >> >> Allen Walker wrote: >> > Just got thru installing the plugin. >> > >> > Doesn't seem to work: >> > >> > # script/generate session_migration >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `gem_original_require': >> > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/models/user.rb:288: >> > syntax error, unexpected $end, expecting kEND (SyntaxError) >> > from >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `require' >> > from >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in >> > `require' >> > from >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in >> > `new_constants_in' >> > from >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in >> > `require' >> > from >> > /home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker.rb:24 >> > from >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `gem_original_require' >> > from >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `require' >> > from >> > /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in >> > `require' >> > ... 23 levels... >> > from >> > /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/generate.rb:1 >> > from >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `gem_original_require' >> > from >> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in >> > `require' >> > from script/generate:3 >> > >> > >> >> _______________________________________________ >> 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 joel at i5labs.com Mon Jul 28 17:55:58 2008 From: joel at i5labs.com (Joel Watson) Date: Mon, 28 Jul 2008 14:55:58 -0700 Subject: [Facebooker-talk] Profile updates using profile_main Message-ID: <4A5EBB6F-DA0B-4B8C-9241-E089F9403159@i5labs.com> Hi all! I just updated to the most recent version of Facebooker from Github and have been playing around with getting our FB app working with the new Facebook design at www.new.facebook.com (using the "api: new" option in the facebooker.yml file). As far as I can tell, everything seems to be working as expected so far except I can't seem to get our apps profile box to appear (either on the main profile page or the boxes tab). I'm currently using the Facebooker Publisher to send our updates. What I had been using prior to updating to the newest Facebooker and works fine with the old FB site is this: def profile_update(facebook_user, user, install_url) send_as :profile from facebook_user recipients facebook_user fbml = render(:partial=>"/facebook/profile_fbml",:locals => { :user => user, :fb_user => facebook_user, :install_url => install_url }) profile(fbml) end My understanding is the new FB site requires that you use profile_main to get your app box posted as before, so I changed the above to: def profile_update(facebook_user, user, install_url) send_as :profile from facebook_user recipients facebook_user fbml = render(:partial=>"/facebook/profile_fbml",:locals => { :user => user, :fb_user => facebook_user, :install_url => install_url }) profile(fbml) profile_main(fbml) end I've confirmed that the :profile and :profile_main fbml data is being sent to FB in the request and I get the following response back: 1 However, no profile box is being added to the page. I assume I'm just doing something wrong here. Any ideas? -Joel From joel at i5labs.com Mon Jul 28 18:27:42 2008 From: joel at i5labs.com (Joel Watson) Date: Mon, 28 Jul 2008 15:27:42 -0700 Subject: [Facebooker-talk] Profile updates using profile_main In-Reply-To: <4A5EBB6F-DA0B-4B8C-9241-E089F9403159@i5labs.com> References: <4A5EBB6F-DA0B-4B8C-9241-E089F9403159@i5labs.com> Message-ID: <6C4DE815-68DD-46D5-994F-350ECF0D4328@i5labs.com> Answered my own question. Specifying profile_main only makes it so it's *possible* to have your apps profile box added. The user must manually add this from the profile tab of your apps settings window. At least, that's my current understanding based on what I read here http://wiki.developers.facebook.com/index.php/New_Design_Narrow_Boxes . Does anyone know if there's a way to prompt the user to add the profile box on install? -Joel On Jul 28, 2008, at 2:55 PM, Joel Watson wrote: > Hi all! > > I just updated to the most recent version of Facebooker from Github > and have been playing around with getting our FB app working with > the new Facebook design at www.new.facebook.com (using the "api: > new" option in the facebooker.yml file). As far as I can tell, > everything seems to be working as expected so far except I can't > seem to get our apps profile box to appear (either on the main > profile page or the boxes tab). > > I'm currently using the Facebooker Publisher to send our updates. > What I had been using prior to updating to the newest Facebooker and > works fine with the old FB site is this: > > def profile_update(facebook_user, user, install_url) > send_as :profile > from facebook_user > recipients facebook_user > fbml = render(:partial=>"/facebook/profile_fbml",:locals => > { :user => user, :fb_user => facebook_user, :install_url => > install_url }) > profile(fbml) > end > > My understanding is the new FB site requires that you use > profile_main to get your app box posted as before, so I changed the > above to: > > def profile_update(facebook_user, user, install_url) > send_as :profile > from facebook_user > recipients facebook_user > fbml = render(:partial=>"/facebook/profile_fbml",:locals => > { :user => user, :fb_user => facebook_user, :install_url => > install_url }) > profile(fbml) > profile_main(fbml) > end > > I've confirmed that the :profile and :profile_main fbml data is > being sent to FB in the request and I get the following response back: > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd > ">1 > > > However, no profile box is being added to the page. I assume I'm > just doing something wrong here. Any ideas? > > -Joel > From digidigo at gmail.com Mon Jul 28 18:49:17 2008 From: digidigo at gmail.com (David Clements) Date: Mon, 28 Jul 2008 16:49:17 -0600 Subject: [Facebooker-talk] Profile updates using profile_main In-Reply-To: <6C4DE815-68DD-46D5-994F-350ECF0D4328@i5labs.com> References: <4A5EBB6F-DA0B-4B8C-9241-E089F9403159@i5labs.com> <6C4DE815-68DD-46D5-994F-350ECF0D4328@i5labs.com> Message-ID: I think you would have to detect that you have a new user and give them the page with the add to profile button. I haven't seen any other way to do it. Which reminds me, I think i'll need to do that for my apps. :) Dave On Mon, Jul 28, 2008 at 4:27 PM, Joel Watson wrote: > Answered my own question. Specifying profile_main only makes it so it's > *possible* to have your apps profile box added. The user must manually add > this from the profile tab of your apps settings window. At least, that's my > current understanding based on what I read here > http://wiki.developers.facebook.com/index.php/New_Design_Narrow_Boxes. > Does anyone know if there's a way to prompt the user to add the profile box > on install? > > -Joel > > > On Jul 28, 2008, at 2:55 PM, Joel Watson wrote: > > Hi all! >> >> I just updated to the most recent version of Facebooker from Github and >> have been playing around with getting our FB app working with the new >> Facebook design at www.new.facebook.com (using the "api: new" option in >> the facebooker.yml file). As far as I can tell, everything seems to be >> working as expected so far except I can't seem to get our apps profile box >> to appear (either on the main profile page or the boxes tab). >> >> I'm currently using the Facebooker Publisher to send our updates. What I >> had been using prior to updating to the newest Facebooker and works fine >> with the old FB site is this: >> >> def profile_update(facebook_user, user, install_url) >> send_as :profile >> from facebook_user >> recipients facebook_user >> fbml = render(:partial=>"/facebook/profile_fbml",:locals => { :user => >> user, :fb_user => facebook_user, :install_url => install_url }) >> profile(fbml) >> end >> >> My understanding is the new FB site requires that you use profile_main to >> get your app box posted as before, so I changed the above to: >> >> def profile_update(facebook_user, user, install_url) >> send_as :profile >> from facebook_user >> recipients facebook_user >> fbml = render(:partial=>"/facebook/profile_fbml",:locals => { :user => >> user, :fb_user => facebook_user, :install_url => install_url }) >> profile(fbml) >> profile_main(fbml) >> end >> >> I've confirmed that the :profile and :profile_main fbml data is being sent >> to FB in the request and I get the following response back: >> >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://api.facebook.com/1.0/ >> http://api.facebook.com/1.0/facebook.xsd">1 >> >> >> However, no profile box is being added to the page. I assume I'm just >> doing something wrong here. Any ideas? >> >> -Joel >> >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From darnsns at gmail.com Tue Jul 29 09:07:36 2008 From: darnsns at gmail.com (darn sns) Date: Tue, 29 Jul 2008 14:07:36 +0100 Subject: [Facebooker-talk] facebooker and bebo Message-ID: <1ac5b2900807290607y7a231069la8edd27064aadb89@mail.gmail.com> Thanks Dave for the update to the plugin for bebo support. I have been looking at both facebook and decided to see how things went in bebo. After getting a little going with facebooker, I updated the plugin to your branch code, and re-checked. All was good. I then setup a bebo application and pointed it at the same rails application. The simple fbml in the profile worked. However, I have found that the invitations page (as taken from M.Mangino's book) didn't display any users to invite in bebo, while was fine in facebook. Also, trying to access facebook_session.user.id works fine in both, but user.name, etc don't work for me in bebo. (I'm getting reports of nil object) Am I missing something, or is it to be expected that they differ enough that it is going to permeate much of my code ? In other questions - i was going to store the value of the parameter fb_sig_network in the user db also, to avoid user id clashes (the id from the active sns, bebo or facebook or whatever ). Is there a better solution? - my generator (rails 2.02) is creating app/views/welcome/index.html.erb but the plugin wants index.fbml.erb, is there an easy way to coerce one or the other to play ball ? - is there a handy way to get the application canvas page URI from the plugin (e.g. http://apps.facebook.com/myapp or http://apps.bebo.com/myappetc) - is there a handy way to get the application about/profile page URI from the plugin. e.g. http://www.facebook.com/apps/application.php?id=xxxxxxxx or whatever the equivalent is for bebo, fb_about_url is always sending me to the facebook network Many thanks again guys for some grand coding -------------- next part -------------- An HTML attachment was scrubbed... URL: From digidigo at gmail.com Tue Jul 29 11:53:03 2008 From: digidigo at gmail.com (David Clements) Date: Tue, 29 Jul 2008 09:53:03 -0600 Subject: [Facebooker-talk] facebooker and bebo In-Reply-To: <1ac5b2900807290607y7a231069la8edd27064aadb89@mail.gmail.com> References: <1ac5b2900807290607y7a231069la8edd27064aadb89@mail.gmail.com> Message-ID: Comments inline. BTW: The bebo changes are in the main branch now so please switch back, I'll put a note on that branch to let people know. On Tue, Jul 29, 2008 at 7:07 AM, darn sns wrote: > Thanks Dave for the update to the plugin for bebo support. > > I have been looking at both facebook and decided to see how things went in > bebo. > > After getting a little going with facebooker, I updated the plugin to your > branch code, and re-checked. All was good. > > I then setup a bebo application and pointed it at the same rails > application. > > The simple fbml in the profile worked. However, I have found that the > invitations page (as taken from M.Mangino's book) didn't display any users > to invite in bebo, while was fine in facebook. > Not sure what would be going on here. There are some differences with the invitation FBML on bebo.. Did the control render but no friends? Do you have friends on bebo? I do think that if your app is Private then it will only show developers for the app. Not sure if this will help but here is code I have in production that works in bebo and facebook. " method="POST" invite="true" type="MeetingWave.com" content="Connect online with people you want to meet offline Arrange meetings for any purpose, anytime, anyplace. " > " max="20" /> > > Also, trying to access facebook_session.user.id works fine in both, but > user.name, etc don't work for me in bebo. (I'm getting reports of nil > object) > Can you send a stack trace on this? I use the user.name in my app. > > Am I missing something, or is it to be expected that they differ enough > that it is going to permeate much of my code ? > I don't have many custom places in my code any longer... there are some differences as you can see in the above code I sent. > > > > In other questions > - i was going to store the value of the parameter fb_sig_network in the > user db also, to avoid user id clashes (the id from the active sns, bebo or > facebook or whatever ). Is there a better solution? > I use a SingleTableInheritance approach which is basically the same idea but you get first class objects for each type of user. FacebookUser and BeboUser. This cleans up the code a bit. > > - my generator (rails 2.02) is creating app/views/welcome/index.html.erb > but the plugin wants index.fbml.erb, is there an easy way to coerce one or > the other to play ball ? > I can't think of anything off the top of my head. > > - is there a handy way to get the application canvas page URI from the > plugin (e.g. http://apps.facebook.com/myapp or http://apps.bebo.com/myappetc) > url_for("/", :canvas => true) would be one way. What do you need this for? > > - is there a handy way to get the application about/profile page URI from > the plugin. e.g. http://www.facebook.com/apps/application.php?id=xxxxxxxxor whatever the equivalent is for bebo, fb_about_url is always sending me to > the facebook network > I don't think this is in there anywhere. Probably good to add as a patch if you up for it. > > > Many thanks again guys for some grand coding > > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From darnsns at gmail.com Tue Jul 29 15:19:09 2008 From: darnsns at gmail.com (darn sns) Date: Tue, 29 Jul 2008 20:19:09 +0100 Subject: [Facebooker-talk] facebooker and bebo In-Reply-To: References: <1ac5b2900807290607y7a231069la8edd27064aadb89@mail.gmail.com> Message-ID: <1ac5b2900807291219l643cdde0vc921777215d69787@mail.gmail.com> Thanks for the quick response ! On Tue, Jul 29, 2008 at 4:53 PM, David Clements wrote: > Comments inline. BTW: The bebo changes are in the main branch now so > please switch back, I'll put a note on that branch to let people know. > Excellent, cheers! I'll get the updated mainline. > Not sure what would be going on here. There are some differences with the > invitation FBML on bebo.. Did the control render but no friends? > yep Do you have friends on bebo? > yep :D I do think that if your app is Private then it will only show developers > for the app. > this is potentially the issue :) > Not sure if this will help but here is code I have in production that works > in bebo and facebook. > thanks for this also, I will keep it in mind when i get back to that code. ----8<---- >> Also, trying to access facebook_session.user.id works fine in both, but >> user.name, etc don't work for me in bebo. (I'm getting reports of nil >> object) >> > > Can you send a stack trace on this? I use the user.name in my app. > Ok. I was doing a bit of cargo-cultish programming at the time. I have since left that code behind. I have just re-tested it in my re-write of the code with the above in mind (storing the session_key) and it's fine, both direct from the controllers and from the model. The reason I saw the error is probably just that I was passing facebook_session to a model and trying to access the user fields from there. I was trying to persuade an rfacebook test app to work with facebooker. I have since had a look further along Mikes good book, and realised that I need to be 'actively' keeping the session key for model access to facebook via facebooker. Still want a trace ? ----8<---- >> In other questions >> - i was going to store the value of the parameter fb_sig_network in the >> user db also, to avoid user id clashes (the id from the active sns, bebo or >> facebook or whatever ). Is there a better solution? >> > > I use a SingleTableInheritance approach which is basically the same idea > but you get first class objects for each type of user. FacebookUser and > BeboUser. This cleans up the code a bit. > Ok, I will take a look at this. Thanks. ----8<---- > > >> >> - is there a handy way to get the application canvas page URI from the >> plugin (e.g. http://apps.facebook.com/myapp or http://apps.bebo.com/myappetc) >> > > url_for("/", :canvas => true) would be one way. What do you need this for? > I was going to put some canvas related links into the profile box in this manner, potentially use it in messaging/sharing, etc. Maybe I'll find a better way. > > >> - is there a handy way to get the application about/profile page URI from >> the plugin. e.g. http://www.facebook.com/apps/application.php?id=xxxxxxxxor whatever the equivalent is for bebo, fb_about_url is always sending me to >> the facebook network >> > > I don't think this is in there anywhere. Probably good to add as a patch > if you up for it. > Sure, I'll be looking for something to handle this and you are welcome to anything that may come of it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeder.ken at gmail.com Tue Jul 29 17:42:46 2008 From: schroeder.ken at gmail.com (Ken Schroeder) Date: Tue, 29 Jul 2008 17:42:46 -0400 Subject: [Facebooker-talk] access callback_url Message-ID: Is there an easy way to retrieve callback_url for things like image source in JS? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordanr at cs.washington.edu Wed Jul 30 11:31:12 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Wed, 30 Jul 2008 08:31:12 -0700 (PDT) Subject: [Facebooker-talk] access callback_url In-Reply-To: References: Message-ID: Do you mean get the value of a tag's src attribute? Like you have, And you want the value "http://www.rubyonrails.org/images/rails.png"? If so, use getSrc(). You can play around with this in my FBJS test console app, http://apps.new.facebook.com/jstofbjs/. Try translating, And then you should get a clickable RR icon which prompts you with the src. The fbml result should be, Richard On Tue, 29 Jul 2008, Ken Schroeder wrote: > Is there an easy way to retrieve callback_url for things like image source > in JS? > From digidigo at gmail.com Wed Jul 30 11:51:51 2008 From: digidigo at gmail.com (David Clements) Date: Wed, 30 Jul 2008 09:51:51 -0600 Subject: [Facebooker-talk] Connection Reset Exceptions? Message-ID: Does anyone else get these? A Errno::ECONNRESET occurred in facebook#index: Connection reset by peer /usr/lib64/ruby/1.8/net/protocol.rb:133:in `sysread' Today it was on a user.populate call... I am wondering if it makes sense to catch and retry for this exception. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniessner at elevatedrails.com Wed Jul 30 12:05:42 2008 From: mniessner at elevatedrails.com (Michael Niessner) Date: Wed, 30 Jul 2008 12:05:42 -0400 Subject: [Facebooker-talk] Connection Reset Exceptions? In-Reply-To: References: Message-ID: <4A4FFF8F-5D57-482A-8C31-EDEBA2D25D01@gmail.com> Yes. Retrying a single time from Facebooker::Service#post eliminates most of them. Michael On Jul 30, 2008, at 11:51 AM, David Clements wrote: > Does anyone else get these? > > A Errno::ECONNRESET occurred in > facebook#index: > Connection reset by peer /usr/lib64/ruby/1.8/net/ > protocol.rb:133:in `sysread' > > > Today it was on a user.populate call... I am wondering if it makes > sense to catch and retry for this exception. > > Dave > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From digidigo at gmail.com Wed Jul 30 12:17:23 2008 From: digidigo at gmail.com (David Clements) Date: Wed, 30 Jul 2008 10:17:23 -0600 Subject: [Facebooker-talk] Connection Reset Exceptions? In-Reply-To: <4A4FFF8F-5D57-482A-8C31-EDEBA2D25D01@gmail.com> References: <4A4FFF8F-5D57-482A-8C31-EDEBA2D25D01@gmail.com> Message-ID: Sweet thanks guys. Are you catching that specific exception? Think we should put it in the library? Dave On Wed, Jul 30, 2008 at 10:05 AM, Michael Niessner < mniessner at elevatedrails.com> wrote: > Yes. Retrying a single time from Facebooker::Service#post eliminates most > of them. > > Michael > > > On Jul 30, 2008, at 11:51 AM, David Clements wrote: > > Does anyone else get these? >> >> A Errno::ECONNRESET occurred in >> facebook#index: >> Connection reset by peer /usr/lib64/ruby/1.8/net/ >> protocol.rb:133:in `sysread' >> >> >> Today it was on a user.populate call... I am wondering if it makes sense >> to catch and retry for this exception. >> >> Dave >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mniessner at elevatedrails.com Wed Jul 30 12:36:15 2008 From: mniessner at elevatedrails.com (Michael Niessner) Date: Wed, 30 Jul 2008 12:36:15 -0400 Subject: [Facebooker-talk] Connection Reset Exceptions? In-Reply-To: References: <4A4FFF8F-5D57-482A-8C31-EDEBA2D25D01@gmail.com> Message-ID: Yeah, I was specifically catching Errno::ECONNRESET. It would probably be nice to have in the library. Michael On Jul 30, 2008, at 12:17 PM, David Clements wrote: > Sweet thanks guys. > > Are you catching that specific exception? Think we should put it in > the library? > > Dave > > On Wed, Jul 30, 2008 at 10:05 AM, Michael Niessner > wrote: > Yes. Retrying a single time from Facebooker::Service#post eliminates > most of them. > > Michael > > > On Jul 30, 2008, at 11:51 AM, David Clements wrote: > > Does anyone else get these? > > A Errno::ECONNRESET occurred in > facebook#index: > Connection reset by peer /usr/lib64/ruby/1.8/net/ > protocol.rb:133:in `sysread' > > > Today it was on a user.populate call... I am wondering if it makes > sense to catch and retry for this exception. > > Dave > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aurelien.malisart at gmail.com Wed Jul 30 13:58:09 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Wed, 30 Jul 2008 19:58:09 +0200 Subject: [Facebooker-talk] New publishing API In-Reply-To: <681d4e8f0807151651q3ca5bd91je692ca381acaaf99@mail.gmail.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> <21CF7966-50C3-4A02-8230-90FF98F1DCCD@elevatedrails.com> <681d4e8f0807151115u58a8c07br89167acc98ca365d@mail.gmail.com> <5AAE503F-CE31-485B-ABAA-16EE1A55E6BE@elevatedrails.com> <681d4e8f0807151651q3ca5bd91je692ca381acaaf99@mail.gmail.com> Message-ID: <83adaa130807301058v5c718692x2bab07a944312579@mail.gmail.com> Hi! What migration are you talking about? How to generate it? I don't see anything about it on the Publisher's Rdoc... Thanks ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From aurelien.malisart at gmail.com Wed Jul 30 14:09:44 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Wed, 30 Jul 2008 20:09:44 +0200 Subject: [Facebooker-talk] Keeping RESTful in facebooker apps Message-ID: <83adaa130807301109u276f6339r1f8674c4079f3947@mail.gmail.com> Hi, I want to keep being RESTful in my Facebook apps too. When doing a link to destroy a given resource, rails uses the fake DELETE method of HTTP by using some Javascript. The problem is that this javascript is kicked off by Facebook when evaluating FBL! So, how do you proceed to have the 'destroy' action called (and not 'show' as it is a GET). Am I missing a Facebooker helper that generates FBJS? Thank you. -- aurels Aur?lien Malisart aurelien.malisart at gmail.com http://malisart.be/aurelien -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at i5labs.com Wed Jul 30 14:36:42 2008 From: joel at i5labs.com (Joel Watson) Date: Wed, 30 Jul 2008 11:36:42 -0700 Subject: [Facebooker-talk] New publishing API In-Reply-To: <83adaa130807301058v5c718692x2bab07a944312579@mail.gmail.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151002s6ccbdd32hbca4e22b824db321@mail.gmail.com> <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> <21CF7966-50C3-4A02-8230-90FF98F1DCCD@elevatedrails.com> <681d4e8f0807151115u58a8c07br89167acc98ca365d@mail.gmail.com> <5AAE503F-CE31-485B-ABAA-16EE1A55E6BE@elevatedrails.com> <681d4e8f0807151651q3ca5bd91je692ca381acaaf99@mail.gmail.com> <83adaa130807301058v5c718692x2bab07a944312579@mail.gmail.com> Message-ID: <48BDF7B9-98B1-45C8-A1E8-9B8F8B016075@i5labs.com> You need to regenerate a facebook publisher file. The generator checks to see if you've already performed the necessary migration and, if not, generates a new migration for you. So, assuming you already have your publishers set up and just need the migration, do this: ./script/generate publisher Something it will then generate a new facebook publisher in app/models called something_publisher.rb. You can safely delete that. It should have also created a new migration for you. That's the one he's referring to. :-) -Joel On Jul 30, 2008, at 10:58 AM, Aur?lien Malisart wrote: > Hi! > > What migration are you talking about? How to generate it? > I don't see anything about it on the Publisher's Rdoc... > > Thanks ;) > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From aurelien.malisart at gmail.com Wed Jul 30 15:18:47 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Wed, 30 Jul 2008 21:18:47 +0200 Subject: [Facebooker-talk] New publishing API In-Reply-To: <48BDF7B9-98B1-45C8-A1E8-9B8F8B016075@i5labs.com> References: <34E73632-BE5C-434B-84F3-5700A2FD4DFC@elevatedrails.com> <681d4e8f0807151027x5cb5bca0tdc3df49d4203149@mail.gmail.com> <21CF7966-50C3-4A02-8230-90FF98F1DCCD@elevatedrails.com> <681d4e8f0807151115u58a8c07br89167acc98ca365d@mail.gmail.com> <5AAE503F-CE31-485B-ABAA-16EE1A55E6BE@elevatedrails.com> <681d4e8f0807151651q3ca5bd91je692ca381acaaf99@mail.gmail.com> <83adaa130807301058v5c718692x2bab07a944312579@mail.gmail.com> <48BDF7B9-98B1-45C8-A1E8-9B8F8B016075@i5labs.com> Message-ID: <83adaa130807301218t70ed7ad9uc173c458bb58a164@mail.gmail.com> Thanks ;) On Wed, Jul 30, 2008 at 8:36 PM, Joel Watson wrote: > You need to regenerate a facebook publisher file. The generator checks to > see if you've already performed the necessary migration and, if not, > generates a new migration for you. So, assuming you already have your > publishers set up and just need the migration, do this: > > ./script/generate publisher Something > > it will then generate a new facebook publisher in app/models called > something_publisher.rb. You can safely delete that. It should have also > created a new migration for you. That's the one he's referring to. :-) > > -Joel > > > On Jul 30, 2008, at 10:58 AM, Aur?lien Malisart wrote: > > Hi! >> >> What migration are you talking about? How to generate it? >> I don't see anything about it on the Publisher's Rdoc... >> >> Thanks ;) >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- Aur?lien Malisart aurelien.malisart at gmail.com http://malisart.be/aurelien -------------- next part -------------- An HTML attachment was scrubbed... URL: From aurelien.malisart at gmail.com Wed Jul 30 16:17:49 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Wed, 30 Jul 2008 22:17:49 +0200 Subject: [Facebooker-talk] redirect_to not preserving the base url In-Reply-To: References: Message-ID: <83adaa130807301317j2999854k8699e9321ef7b05e@mail.gmail.com> I do get the same with the named routes now... e.g. : my_model_path doesn't include 'my_app_name/' at the begining. So, my routes are well recognized but not well generated. Or I missed something! I think it worked before I pulled the last version of Facebooker... aurels -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordanr at cs.washington.edu Wed Jul 30 19:05:38 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Wed, 30 Jul 2008 16:05:38 -0700 (PDT) Subject: [Facebooker-talk] Keeping RESTful in facebooker apps In-Reply-To: <83adaa130807301109u276f6339r1f8674c4079f3947@mail.gmail.com> References: <83adaa130807301109u276f6339r1f8674c4079f3947@mail.gmail.com> Message-ID: Yes, the JavaScript for <%= link_to :method=>:delete => isn't sanitary for facebook. It's a real bummer that such a basic helper fails. Luckily, it's possible to use FBJS. Attached is code for a link_to function that works. If you put the file in your $RAILS_ROOT/lib directory and then add > require 'facebook_url_helper.rb' to your controller, all the link_to options should magically work. Sincerely, Richard On Wed, 30 Jul 2008, Aur?lien Malisart wrote: > Hi, > > I want to keep being RESTful in my Facebook apps too. > When doing a link to destroy a given resource, rails uses the fake DELETE > method of HTTP by using some Javascript. The problem is that this javascript > is kicked off by Facebook when evaluating FBL! > > So, how do you proceed to have the 'destroy' action called (and not 'show' > as it is a GET). > Am I missing a Facebooker helper that generates FBJS? > > Thank you. > > -------------- next part -------------- # Extends the ActionView::Helpers::UrlHelper module. See it for details on # the usual url helper methods: url_for, link_to, button_to, etc. # # Mostly, the changes sanitize javascript into facebook javascript. # It sanitizes link_to solely by altering the private methods: # convert_options_to_javascript!, confirm_javascript_function, and # method_javascript_function. For button_to, it alters button_to # itself, as well as confirm_javascript_function. No other methods # need to be changed because of Facebook javascript. # # Finally, it changes current_page? not for javascript reasons, but to # adjust to the Facebook canvas root name. It strips off the canvas # root name to make current_page? return accurately within Facebook. # Because external requests come in the format # "http://test.host/controller/action" but Facebook urls come in the # format "http://apps.facebook.com/canvas_root_name/controller/action," # it has to strip off the "canvas_root_name" to adjust. A call on # current_page? for (:controller=>"x", :action=>"y") must return true # without respect to any prepended Facebook canvas root name. See # tests for more clarification. module ActionView module Helpers module UrlHelper # Alters one and only one line of the Rails button_to. See below. def button_to_with_facebooker(name, options={}, html_options = {}) if !request_is_for_a_facebook_canvas? button_to_without_facebooker(name,options,html_options) else html_options = html_options.stringify_keys convert_boolean_attributes!(html_options, %w( disabled )) method_tag = '' if (method = html_options.delete('method')) && %w{put delete}.include?(method.to_s) method_tag = tag('input', :type => 'hidden', :name => '_method', :value => method.to_s) end form_method = method.to_s == 'get' ? 'get' : 'post' request_token_tag = '' if form_method == 'post' && protect_against_forgery? request_token_tag = tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, :value => form_authenticity_token) end if confirm = html_options.delete("confirm") # this line is the only change => html_options["onclick"] = "return #{confirm_javascript_function(confirm)}" html_options["onclick"] = "#{confirm_javascript_function(confirm, 'a.getForm().submit();')}return false;" end url = options.is_a?(String) ? options : self.url_for(options) name ||= url html_options.merge!("type" => "submit", "value" => name) "
" + method_tag + tag("input", html_options) + request_token_tag + "
" end end alias_method_chain :button_to, :facebooker # Strips off the Facebook canvas root name. def current_page_with_facebooker?(options) if !request_is_for_a_facebook_canvas? current_page_without_facebooker?(options) else # this line is the only change => url_string = CGI.escapeHTML(url_for(options)) url_string = CGI.escapeHTML(url_for(options)).gsub(/^\/#{ENV["FACEBOOKER_RELATIVE_URL_ROOT"]}(.*)/, '\1' ) request = @controller.request if url_string =~ /^\w+:\/\// url_string == "#{request.protocol}#{request.host_with_port}#{request.request_uri}" else url_string == request.request_uri end end end alias_method_chain :current_page?, :facebooker private # Redefined from controller.rb. Could be encapsilated into # some utility module to avoid repetition. def request_is_for_a_facebook_canvas? !params['fb_sig_in_canvas'].blank? end # Altered to throw an error on :popup and sanitize the javascript # for Facebook. def convert_options_to_javascript_with_facebooker!(html_options, url ='') if !request_is_for_a_facebook_canvas? convert_options_to_javascript_without_facebooker!(html_options,url) else confirm, popup = html_options.delete("confirm"), html_options.delete("popup") method, href = html_options.delete("method"), html_options['href'] html_options["onclick"] = case when popup raise ActionView::ActionViewError, "You can't use :popup" when method # or maybe (confirm and method) "#{method_javascript_function(method, url, href, confirm)}return false;" when confirm # and only confirm "#{confirm_javascript_function(confirm)}return false;" else html_options["onclick"] end end end alias_method_chain :convert_options_to_javascript!, :facebooker # Overrides a private method that link_to calls via convert_options_to_javascript! and # also, button_to calls directly. For Facebook, confirm can be a hash of options to # stylize the Facebook dialog. Takes :title, :content, :style options. See # the Facebook page http://wiki.developers.facebook.com/index.php/FBJS for valid # style formats like "color: 'black', background: 'white'" or like "'color','black'". # # == Examples == # # link_to("Facebooker", "http://rubyforge.org/projects/facebooker", :confirm=>"Facebooker") # # link_to("rFacebook", "http://rubyforge.org/projects/", , :confirm=>{:title=>'the page says:'}) def confirm_javascript_function_with_facebooker(confirm, fun = nil) if !request_is_for_a_facebook_canvas? confirm_javascript_function_without_facebooker(confirm) else if(confirm.is_a?(Hash)) confirm_options = confirm.stringify_keys title = confirm_options.delete("title") || "Please Confirm" content = confirm_options.delete("content") || "Are you sure?" style = confirm_options.empty? ? "" : convert_options_to_css(confirm_options) else title,content,style = 'Please Confirm', confirm, "" end "var dlg = new Dialog().showChoice('#{escape_javascript(title.to_s)}','#{escape_javascript(content.to_s)}').setStyle(#{style});"+ "var a=this;dlg.onconfirm = function() { #{fun ? fun : 'document.setLocation(a.getHref());'} };" end end alias_method_chain :confirm_javascript_function, :facebooker def convert_options_to_css(options) key_pair = options.shift style = "{#{key_pair[0]}: '#{key_pair[1]}'" for key in options.keys style << ", #{key}: '#{options[key]}'" end style << "}" end # Dynamically creates a form for link_to with method. Calls confirm_javascript_function if and # only if (confirm && method) for link_to def method_javascript_function_with_facebooker(method, url = '', href = nil, confirm = nil) if !request_is_for_a_facebook_canvas? method_javascript_function_without_facebooker(method,url,href) else action = (href && url.size > 0) ? "'#{url}'" : 'a.getHref()' submit_function = "var f = document.createElement('form'); f.setStyle('display','none'); " + "a.getParentNode().appendChild(f); f.setMethod('POST'); f.setAction(#{action});" unless method == :post submit_function << "var m = document.createElement('input'); m.setType('hidden'); " submit_function << "m.setName('_method'); m.setValue('#{method}'); f.appendChild(m);" end if protect_against_forgery? submit_function << "var s = document.createElement('input'); s.setType('hidden'); " submit_function << "s.setName('#{request_forgery_protection_token}'); s.setValue('#{escape_javascript form_authenticity_token}'); f.appendChild(s);" end submit_function << "f.submit();" if(confirm) confirm_javascript_function(confirm, submit_function) else "var a=this;" + submit_function end end end alias_method_chain :method_javascript_function, :facebooker end end end From aurelien.malisart at gmail.com Thu Jul 31 03:00:00 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Aur=E9lien_Malisart?=) Date: Thu, 31 Jul 2008 09:00:00 +0200 Subject: [Facebooker-talk] Keeping RESTful in facebooker apps In-Reply-To: References: <83adaa130807301109u276f6339r1f8674c4079f3947@mail.gmail.com> Message-ID: <83adaa130807310000m118a784due10c643d7f4f8e7e@mail.gmail.com> Thanks, I saw you were talking about it in other thread but I didn't know that was about this problem! aurels, BE -- Aur?lien Malisart aurelien.malisart at gmail.com http://malisart.be/aurelien -------------- next part -------------- An HTML attachment was scrubbed... URL: From aurelien.malisart at gmail.com Thu Jul 31 12:28:19 2008 From: aurelien.malisart at gmail.com (=?ISO-8859-1?Q?Malisart_Aur=E9lien?=) Date: Thu, 31 Jul 2008 18:28:19 +0200 Subject: [Facebooker-talk] Keeping RESTful in facebooker apps In-Reply-To: References: <83adaa130807301109u276f6339r1f8674c4079f3947@mail.gmail.com> Message-ID: <844CE1D8-3D3B-4C2A-9458-DAB548506BF0@gmail.com> Is it normal that there isn't any redefinition of 'link_to' into your patch? I do not notice any changse to the generated JS, and urls to include '/ app_name' at the begining. Warmly, aurels From shanev at gmail.com Thu Jul 31 12:54:17 2008 From: shanev at gmail.com (Shane Vitarana) Date: Thu, 31 Jul 2008 11:54:17 -0500 Subject: [Facebooker-talk] Rails on Facebook Peepcode book published Message-ID: <4ab757a40807310954u4fb97c8cmb2c28d58b0fa9cf3@mail.gmail.com> Hey guys- David Clements and I have published a Peepcode PDF on Facebook application development with Rails. You can purchase it or download a free preview here: http://peepcode.com/products/rails-on-facebook I first 5 people to use coupon FACEBOOK will get it for free. Login/signup here: https://peepcode.com/peepers/account/edit. Blog posts: http://shanesbrain.net/2008/7/31/rails-on-facebook-published http://shortpath.blogspot.com/2008/07/facebooker-on-rails-book-is-out.html Enjoy! Shane -- http://shanesbrain.net | http://crimsonjet.com | http://myfitbuddy.com From jordanr at cs.washington.edu Thu Jul 31 14:51:14 2008 From: jordanr at cs.washington.edu (Richard Jordan) Date: Thu, 31 Jul 2008 11:51:14 -0700 (PDT) Subject: [Facebooker-talk] Keeping RESTful in facebooker apps In-Reply-To: <844CE1D8-3D3B-4C2A-9458-DAB548506BF0@gmail.com> References: <83adaa130807301109u276f6339r1f8674c4079f3947@mail.gmail.com> <844CE1D8-3D3B-4C2A-9458-DAB548506BF0@gmail.com> Message-ID: Yes, the patch uses the regular link_to method. If you look at the actionpack/actionview/helpers/url_helper.rb file, link_to doesn't generate any JS itself but calls private methods to do so. I patched those private methods. Strange, you don't notice any changes? I have the same file in my /lib directory and have tests for the patch, too. And you put require 'facebook_url_helper' at the top of your controller? Hmm, I swear it works. For link_to "url", "Click Here", :method=>:delete, you should get, Click Here If all else fails, you could do, def link_to(label, url) ...above js code with variables... end Hopefully, that works! Sincerely, Richard On Thu, 31 Jul 2008, Malisart Aur?lien wrote: > Is it normal that there isn't any redefinition of 'link_to' into your patch? > > I do not notice any changse to the generated JS, and urls to include > '/app_name' at the begining. > > Warmly, > aurels > From auswalk at gmail.com Thu Jul 31 15:39:49 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 31 Jul 2008 14:39:49 -0500 Subject: [Facebooker-talk] timeout occurring getting all friend uids thru facebooker Message-ID: <48921505.7010006@gmail.com> What I want to do is get a list of all friend uids for a particular user. My logic: ------ facebook_friend_ids = [] for friend in facebook_session.user.friends facebook_friend_ids << friend.uid end ----- the problem is this is taking way too long for anyone with 20 or more friends. What's a quicker way to do this, even if I have to get outside of the facebooker object? thanks From mmangino at elevatedrails.com Thu Jul 31 15:43:27 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 31 Jul 2008 15:43:27 -0400 Subject: [Facebooker-talk] Facebook Connect Message-ID: Is anyone planning on using Facebook Connect? I have the implementation that I think covers the user registration. I'm going to work on the UI stuff as well but would love to get some feedback on it. Mike -- Mike Mangino http://www.elevatedrails.com From bjclark at scidept.com Thu Jul 31 15:57:35 2008 From: bjclark at scidept.com (BJ Clark) Date: Thu, 31 Jul 2008 13:57:35 -0600 Subject: [Facebooker-talk] timeout occurring getting all friend uids thru facebooker In-Reply-To: <48921505.7010006@gmail.com> References: <48921505.7010006@gmail.com> Message-ID: params[fb_sig_friend_ids] I believe. BJ On Jul 31, 2008, at 1:39 PM, Allen Walker wrote: > What I want to do is get a list of all friend uids for a particular > user. My logic: > > ------ > facebook_friend_ids = [] > > for friend in facebook_session.user.friends > facebook_friend_ids << friend.uid > end > > ----- > > > the problem is this is taking way too long for anyone with 20 or > more friends. What's a quicker way to do this, even if I have to get > outside of the facebooker object? > > thanks > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk From wthomas989 at yahoo.com Thu Jul 31 23:27:00 2008 From: wthomas989 at yahoo.com (William Thomas) Date: Thu, 31 Jul 2008 20:27:00 -0700 (PDT) Subject: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application Message-ID: <525807.14605.qm@web58711.mail.re1.yahoo.com> I am still having troubles with this exception. I ended up commenting out the piece of code that throws the exception and things work just fine after that... I have before_filter :ensure_authenticated_to_facebook, :only => [ :edit_facebook, :sync_facebook_friends] ...before rails even gets to my edit_facebook action the exception is thrown. What is the intention of the verify_signature method? It does not make sense to me outright ----- Original Message ---- From: Xue Wei li To: facebooker-talk at rubyforge.org Sent: Thursday, July 24, 2008 1:11:16 PM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application Thanks Richard - this is a great help =) On Wed, Jul 23, 2008 at 9:10 AM, Richard Jordan wrote: it was the 1st thing I read... but in my case I need to see the whole picture (a zipped sample app that would help) - snippets only go so far I put my first app on RubyForge. It's pretty bloated, a stupid idea, and very poorly done, but it works (or at least did at one point). If you're desperate do a, svn checkout svn://rubyforge.org/var/svn/couple-rater Look at trunk/app/controller/application.rb. I put all the install/uninstall code in my base controller. On Tue, 22 Jul 2008, William Thomas wrote: I'm using :ensure_authenticated_to_facebook since I don't have an application but only want access to the data. ----- Original Message ---- From: Xue Wei li To: facebooker-talk at rubyforge.org Sent: Monday, July 21, 2008 10:05:17 PM Subject: Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application I was thinking that and I could be wrong but you know I looked at example after example and I haven't seen anyone do an :exclude for the ensure_facebook_application_is_installed with exception for a 'remove_app' method. Am I wrong? What if I wanted to access show facebook data on the first page? from Dav Yaginuma to Xue Wei li date Mon, Jul 21, 2008 at 11:21 AM subject Re: [Facebooker-talk] Facebooker::Session::IncorrectSignature exception when adding application mailed-by gmail.com hide details 11:21 AM (8 hours ago) Reply I think I saw this, and the problem was the post-add URL defined in the FB app page needs to go to a controller action that skips the ensure_facebook_application_is_installed filter. _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From auswalk at gmail.com Thu Jul 31 23:29:48 2008 From: auswalk at gmail.com (Allen Walker) Date: Thu, 31 Jul 2008 22:29:48 -0500 Subject: [Facebooker-talk] question about defining actions in controllers Message-ID: <4892832C.7030408@gmail.com> I'm trying to had a new action to my "actitivites" controller. activities_controller.rb ... def view ... end ... ------------- When I try to access the following URL: http://apps.new.facebook.com/myapp/activities/view it returns: Unknown action No action responded to show -------------- Also the following "link_to" breaks: link_to("Attendees:", activities_path(:id => activity, :controller => :activities, :action => :view))%> with error: ActionController::RoutingError in Public#index Showing /public/index.fbml.erb/ where line *#25* raised: ActionView::TemplateError (activities_url failed to generate from {:controller=>"activities", :action=>"view", :id=># References: <4892832C.7030408@gmail.com> Message-ID: <4892850A.5070705@gmail.com> BTW the following works: http://apps.new.facebook.com/myapp/activities/view/1 I guess the question is, why is the "link_to" operation generating the url incorrectly it's doing something like http://apps.new.facebook.com/myapp/activities/view?id=2 which is causing a routing issue. Allen Walker wrote: > I'm trying to had a new action to my "actitivites" controller. > > activities_controller.rb > > ... > > def view > ... > end > > ... > ------------- > > When I try to access the following URL: > http://apps.new.facebook.com/myapp/activities/view > > it returns: > > > Unknown action > > No action responded to show > > -------------- > > Also the following "link_to" breaks: > > link_to("Attendees:", activities_path(:id => activity, :controller => > :activities, :action => :view))%> > > with error: > > > ActionController::RoutingError in Public#index > > Showing /public/index.fbml.erb/ where line *#25* raised: > > > ActionView::TemplateError (activities_url failed to generate from > {:controller=>"activities", :action=>"view", :id=># > ----- > > my routes.db: > .. > map.resources :activities > .. > > ----- > > I seem to not be able to specify create "actions" that can be accessed > thru my controller. I think there is something I'm missing here. > > Thanks > > > From mmangino at elevatedrails.com Thu Jul 31 19:25:09 2008 From: mmangino at elevatedrails.com (Mike Mangino) Date: Thu, 31 Jul 2008 19:25:09 -0400 Subject: [Facebooker-talk] Facebook Connect In-Reply-To: <3E985C2F-423D-4440-BE96-7EB6256776FE@scidept.com> References: <3E985C2F-423D-4440-BE96-7EB6256776FE@scidept.com> Message-ID: A couple of people expressed interest, so I will commit what I have. It should work, but so far I can't connect to the new api.connect.facebook.com. Mike On Jul 31, 2008, at 3:58 PM, BJ Clark wrote: > Mike, > I'm thinking about using it, want to toss something up on github and > I'll fork from there? > BJ > > > On Jul 31, 2008, at 1:43 PM, Mike Mangino wrote: > >> Is anyone planning on using Facebook Connect? I have the >> implementation that I think covers the user registration. I'm going >> to work on the UI stuff as well but would love to get some feedback >> on it. >> >> Mike >> >> -- >> 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