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 i