vincent chu
2008-Oct-09 20:04 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
Hi all -- I''m adding a facebook plugin to an existing website and would like to use data stored in existing models to display content on a facebook application. I would like the rest of the site to run normally (i.e., in NON-facebook mode), but I would like to define several views which the site would handle using facebooker / facebooker_authentication. Here''s my conundrum (and apologies if this is a really simple question): how do I configure my site so that facebooker will only handle certain views? If I install facebooker, then my site is broken because the installation make the site handle all views as facebook views. Thanks, Vince -- Vincent Chu Department of Applied Physics Geballe Laboratory of Advanced Materials McCullough Bldg. 318 476 Lomita Mall Stanford, CA, 94305 vchu AT post.harvard.edu vincentchu AT gmail.com http://www.stanford.edu/~vincentc (homepage, updated sporadically) Consider this: "The smallest positive integer not definable in under eleven words."
Mike Mangino
2008-Oct-09 20:25 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
On Oct 9, 2008, at 4:04 PM, vincent chu wrote:> Hi all -- > > I''m adding a facebook plugin to an existing website and would like to > use data stored in existing models to display content on a facebook > application. I would like the rest of the site to run normally (i.e., > in NON-facebook mode), but I would like to define several views which > the site would handle using facebooker / facebooker_authentication. > > Here''s my conundrum (and apologies if this is a really simple > question): how do I configure my site so that facebooker will only > handle certain views? If I install facebooker, then my site is broken > because the installation make the site handle all views as facebook > views. >What do you mean the site is broken? For non-facebook requests the normal process should be followed. If a request comes from Facebook, it will try to render the .fbml.erb template instead. Mike> Thanks, > > Vince > > -- > Vincent Chu > Department of Applied Physics > Geballe Laboratory of Advanced Materials > McCullough Bldg. 318 > 476 Lomita Mall > Stanford, CA, 94305 > > vchu AT post.harvard.edu > vincentchu AT gmail.com > > http://www.stanford.edu/~vincentc (homepage, updated sporadically) > > Consider this: > "The smallest positive integer not definable in under eleven words." > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
vincent chu
2008-Oct-09 20:44 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
Mike -- I think I''m beginning to understand -- I have a view that gets called when requests come in from facebook profile tabs; since fbml and html are so similar, I had just modified my normal view to add in a few facebook tags. However, the facebook profile tab is treated as a normal HTML view. When I installed facebooker, profile tab views are now treated as facebook views, leading to the "breaking" of my app. I''d really rather not treat the profile tab views as facebooker views because the profile tab views are really only a slight modification of an existing view -- is there any way to turn off the filtering for this single view? Thanks, Vince On Thu, Oct 9, 2008 at 1:25 PM, Mike Mangino <mmangino at elevatedrails.com> wrote:> > On Oct 9, 2008, at 4:04 PM, vincent chu wrote: > >> Hi all -- >> >> I''m adding a facebook plugin to an existing website and would like to >> use data stored in existing models to display content on a facebook >> application. I would like the rest of the site to run normally (i.e., >> in NON-facebook mode), but I would like to define several views which >> the site would handle using facebooker / facebooker_authentication. >> >> Here''s my conundrum (and apologies if this is a really simple >> question): how do I configure my site so that facebooker will only >> handle certain views? If I install facebooker, then my site is broken >> because the installation make the site handle all views as facebook >> views. >> > > What do you mean the site is broken? For non-facebook requests the normal > process should be followed. If a request comes from Facebook, it will try to > render the .fbml.erb template instead. > > Mike > > >> Thanks, >> >> Vince >> >> -- >> Vincent Chu >> Department of Applied Physics >> Geballe Laboratory of Advanced Materials >> McCullough Bldg. 318 >> 476 Lomita Mall >> Stanford, CA, 94305 >> >> vchu AT post.harvard.edu >> vincentchu AT gmail.com >> >> http://www.stanford.edu/~vincentc (homepage, updated sporadically) >> >> Consider this: >> "The smallest positive integer not definable in under eleven words." >> _______________________________________________ >> 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 >-- Vincent Chu Department of Applied Physics Geballe Laboratory of Advanced Materials McCullough Bldg. 318 476 Lomita Mall Stanford, CA, 94305 vchu AT post.harvard.edu vincentchu AT gmail.com http://www.stanford.edu/~vincentc (homepage, updated sporadically) Consider this: "The smallest positive integer not definable in under eleven words."
Mike Mangino
2008-Oct-09 21:32 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
On Oct 9, 2008, at 4:44 PM, vincent chu wrote:> Mike -- > > I think I''m beginning to understand -- I have a view that gets called > when requests come in from facebook profile tabs; since fbml and html > are so similar, I had just modified my normal view to add in a few > facebook tags. However, the facebook profile tab is treated as a > normal HTML view. When I installed facebooker, profile tab views are > now treated as facebook views, leading to the "breaking" of my app.I don''t follow this. Is the view for profile tabs only called from Facebook, or from both Facebook and non-facebook? In either case, Facebook templates should be .fbml.erb templates. What do you mean by "treated as facebook views" ?> > > I''d really rather not treat the profile tab views as facebooker views > because the profile tab views are really only a slight modification of > an existing view -- is there any way to turn off the filtering for > this single view?Can you explain what you want to happen? What filtering are you talking about? Mike> > > Thanks, > > Vince > > > On Thu, Oct 9, 2008 at 1:25 PM, Mike Mangino <mmangino at elevatedrails.com > > wrote: >> >> On Oct 9, 2008, at 4:04 PM, vincent chu wrote: >> >>> Hi all -- >>> >>> I''m adding a facebook plugin to an existing website and would like >>> to >>> use data stored in existing models to display content on a facebook >>> application. I would like the rest of the site to run normally >>> (i.e., >>> in NON-facebook mode), but I would like to define several views >>> which >>> the site would handle using facebooker / facebooker_authentication. >>> >>> Here''s my conundrum (and apologies if this is a really simple >>> question): how do I configure my site so that facebooker will only >>> handle certain views? If I install facebooker, then my site is >>> broken >>> because the installation make the site handle all views as facebook >>> views. >>> >> >> What do you mean the site is broken? For non-facebook requests the >> normal >> process should be followed. If a request comes from Facebook, it >> will try to >> render the .fbml.erb template instead. >> >> Mike >> >> >>> Thanks, >>> >>> Vince >>> >>> -- >>> Vincent Chu >>> Department of Applied Physics >>> Geballe Laboratory of Advanced Materials >>> McCullough Bldg. 318 >>> 476 Lomita Mall >>> Stanford, CA, 94305 >>> >>> vchu AT post.harvard.edu >>> vincentchu AT gmail.com >>> >>> http://www.stanford.edu/~vincentc (homepage, updated sporadically) >>> >>> Consider this: >>> "The smallest positive integer not definable in under eleven words." >>> _______________________________________________ >>> 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 >> > > > > -- > Vincent Chu > Department of Applied Physics > Geballe Laboratory of Advanced Materials > McCullough Bldg. 318 > 476 Lomita Mall > Stanford, CA, 94305 > > vchu AT post.harvard.edu > vincentchu AT gmail.com > > http://www.stanford.edu/~vincentc (homepage, updated sporadically) > > Consider this: > "The smallest positive integer not definable in under eleven words."-- Mike Mangino http://www.elevatedrails.com
William Thomas
2008-Oct-10 15:54 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
Agreed- not sure what is going on, here is my take IMO, you should keep your "normal views" (I think you mean the ones you''re hosting and viewing from your domain) in <action>.html.erb files , and the ones that facebook requests (hosted on your site but viewed from facebook) in <action>.fbml.erb. If you have similarities you should break those out into something reusable like a partial, a helper, or a rails-cell --- On Thu, 10/9/08, Mike Mangino <mmangino at elevatedrails.com> wrote: From: Mike Mangino <mmangino at elevatedrails.com> Subject: Re: [Facebooker-talk] Mixing Facebooker into an existing site To: vchu at post.harvard.edu Cc: facebooker-talk at rubyforge.org Date: Thursday, October 9, 2008, 4:32 PM On Oct 9, 2008, at 4:44 PM, vincent chu wrote:> Mike -- > > I think I''m beginning to understand -- I have a view that gets called > when requests come in from facebook profile tabs; since fbml and html > are so similar, I had just modified my normal view to add in a few > facebook tags. However, the facebook profile tab is treated as a > normal HTML view. When I installed facebooker, profile tab views are > now treated as facebook views, leading to the "breaking" of myapp. I don''t follow this. Is the view for profile tabs only called from Facebook, or from both Facebook and non-facebook? In either case, Facebook templates should be .fbml.erb templates. What do you mean by "treated as facebook views" ?> > > I''d really rather not treat the profile tab views as facebooker views > because the profile tab views are really only a slight modification of > an existing view -- is there any way to turn off the filtering for > this single view?Can you explain what you want to happen? What filtering are you talking about? Mike> > > Thanks, > > Vince > > > On Thu, Oct 9, 2008 at 1:25 PM, Mike Mangino<mmangino at elevatedrails.com> > wrote: >> >> On Oct 9, 2008, at 4:04 PM, vincent chu wrote: >> >>> Hi all -- >>> >>> I''m adding a facebook plugin to an existing website and wouldlike>>> to >>> use data stored in existing models to display content on afacebook>>> application. I would like the rest of the site to run normally >>> (i.e., >>> in NON-facebook mode), but I would like to define several views >>> which >>> the site would handle using facebooker /facebooker_authentication.>>> >>> Here''s my conundrum (and apologies if this is a really simple >>> question): how do I configure my site so that facebooker will only >>> handle certain views? If I install facebooker, then my site is >>> broken >>> because the installation make the site handle all views asfacebook>>> views. >>> >> >> What do you mean the site is broken? For non-facebook requests the >> normal >> process should be followed. If a request comes from Facebook, it >> will try to >> render the .fbml.erb template instead. >> >> Mike >> >> >>> Thanks, >>> >>> Vince >>> >>> -- >>> Vincent Chu >>> Department of Applied Physics >>> Geballe Laboratory of Advanced Materials >>> McCullough Bldg. 318 >>> 476 Lomita Mall >>> Stanford, CA, 94305 >>> >>> vchu AT post.harvard.edu >>> vincentchu AT gmail.com >>> >>> http://www.stanford.edu/~vincentc (homepage, updated sporadically) >>> >>> Consider this: >>> "The smallest positive integer not definable in under elevenwords.">>> _______________________________________________ >>> 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 >> > > > > -- > Vincent Chu > Department of Applied Physics > Geballe Laboratory of Advanced Materials > McCullough Bldg. 318 > 476 Lomita Mall > Stanford, CA, 94305 > > vchu AT post.harvard.edu > vincentchu AT gmail.com > > http://www.stanford.edu/~vincentc (homepage, updated sporadically) > > Consider this: > "The smallest positive integer not definable in under elevenwords." -- 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: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081010/1ed5ebe2/attachment-0001.html>
vincent chu
2008-Oct-12 20:41 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
Hi -- Thanks for your help and sorry for being ambiguous. In greater detail: - I have a website, written in rails, that faces the outside world (i.e., people go to "mysite.com" without being members of facebook, or even interacting with facebook). This is already written and cannot change very much. - I''m working on a facebook app which will use data from models in "mysite.com"; I''d like to write a single controller that will handle requests coming in from facebook (from profile tab views, and from application canvas pages). I''ve set it up so that: callbackurl = mysite.com/facebook/ canvas page = apps.facebook.com/mysiteapp/ - Ideally, I''d like the rest of my site to be ignorant of the facebooker plugin and run as if it weren''t there (like it does now); I''d only want to facebooker plugin to do its magic only for those views that have something to do with facebook. After I installed the facebooker plugin to my site, I found that facebooker had altered the behavior of controllers/views that I didn''t want. For instance, I was using "bundle-fu" to bundle all of my stylesheets/javascript together on normal site views. I now find that my application outputs: <link href="http://mysite.com/facebookfoo//stylesheets/cache/bundle.css?1223842665" ... instead of <link href="/stylesheets/cache/bundle.css?1223842665" ... like it did, before the facebooker plugin was installed. Seems like facebooker has altered the environment of the rails app -- is there anyway to turn this behavior off, except for controllers/views which actually handle requests from facebook? Thanks for all of the help, Vince On Fri, Oct 10, 2008 at 8:54 AM, William Thomas <wthomas989 at yahoo.com> wrote:> Agreed- not sure what is going on, here is my take > > IMO, you should keep your "normal views" (I think you mean the ones you''re > hosting and viewing from your domain) in <action>.html.erb files , and the > ones that facebook requests (hosted on your site but viewed from facebook) > in <action>.fbml.erb. > > If you have similarities you should break those out into something reusable > like a partial, a helper, or a rails-cell > > --- On Thu, 10/9/08, Mike Mangino <mmangino at elevatedrails.com> wrote: > > From: Mike Mangino <mmangino at elevatedrails.com> > Subject: Re: [Facebooker-talk] Mixing Facebooker into an existing site > To: vchu at post.harvard.edu > Cc: facebooker-talk at rubyforge.org > Date: Thursday, October 9, 2008, 4:32 PM > > On Oct 9, 2008, at 4:44 PM, vincent chu wrote: > >> Mike -- >> >> I think I''m beginning to understand -- I have a view that gets called >> when requests come in from facebook profile tabs; since fbml and html >> are so similar, I had just modified my normal view to add in a few >> facebook tags. However, the > facebook profile tab is treated as a >> normal HTML view. When I installed facebooker, profile tab views are >> now treated as facebook views, leading to the "breaking" of my > app. > > I don''t follow this. Is the view for profile tabs only called from > Facebook, or from both Facebook and non-facebook? In either case, > Facebook templates should be .fbml.erb templates. > > What do you mean by "treated as facebook views" ? > >> >> >> I''d really rather not treat the profile tab views as facebooker views >> because the profile tab views are really only a slight modification of >> an existing view -- is there any way to turn off the filtering for >> this single view? > > Can you explain what you want to happen? What filtering are you > talking about? > > Mike > >> >> >> Thanks, >> >> Vince >> >> >> On Thu, Oct 9, 2008 at 1:25 PM, Mike > Mangino > <mmangino at elevatedrails.com >> > wrote: >>> >>> On Oct 9, 2008, at 4:04 PM, vincent chu wrote: >>> >>>> Hi all -- >>>> >>>> I''m adding a facebook plugin to an existing website and would > like >>>> to >>>> use data stored in existing models to display content on a > facebook >>>> application. I would like the rest of the site to run normally >>>> (i.e., >>>> in NON-facebook mode), but I would like to define several views >>>> which >>>> the site would handle using facebooker / > facebooker_authentication. >>>> >>>> Here''s my conundrum (and apologies if this is a really simple >>>> question): how do I configure my site so that facebooker will only >>>> handle certain views? If I install facebooker, then my site is >>>> > broken >>>> because the installation make the site handle all views as > facebook >>>> views. >>>> >>> >>> What do you mean the site is broken? For non-facebook requests the >>> normal >>> process should be followed. If a request comes from Facebook, it >>> will try to >>> render the .fbml.erb template instead. >>> >>> Mike >>> >>> >>>> Thanks, >>>> >>>> Vince >>>> >>>> -- >>>> Vincent Chu >>>> Department of Applied Physics >>>> Geballe Laboratory of Advanced Materials >>>> McCullough Bldg. 318 >>>> 476 Lomita Mall >>>> Stanford, CA, 94305 >>>> >>>> vchu AT post.harvard.edu >>>> vincentchu AT gmail.com >>>> >>>> http://www.stanford.edu/~vincentc (homepage, updated > sporadically) >>>> >>>> Consider this: >>>> "The smallest positive integer not definable in under eleven > words." >>>> _______________________________________________ >>>> 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 >>> >> >> >> >> -- >> Vincent Chu >> Department of Applied Physics >> Geballe Laboratory of Advanced Materials >> McCullough Bldg. 318 >> 476 Lomita Mall >> Stanford, CA, 94305 >> >> > vchu AT post.harvard.edu >> vincentchu AT gmail.com >> >> http://www.stanford.edu/~vincentc (homepage, updated sporadically) >> >> Consider this: >> "The smallest positive integer not definable in under eleven > words." > > -- > 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 > >-- Vincent Chu Department of Applied Physics Geballe Laboratory of Advanced Materials McCullough Bldg. 318 476 Lomita Mall Stanford, CA, 94305 vchu AT post.harvard.edu vincentchu AT gmail.com http://www.stanford.edu/~vincentc (homepage, updated sporadically) Consider this: "The smallest positive integer not definable in under eleven words."
Joel Nylund
2008-Oct-12 22:57 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
There was a patch in feb (see the mail archives) from Shawn Van Ittersum submitted (but I dont think it ever got in cause of no test cases). It allowed you to put a prefix for facebook namespace (which can be a controller if you want) I have been using it in production since then to achieve the effect you are looking for. Not sure it will work on the current facebooker codebase, but it might be worth a try: When I use that patch I set: callback_url: mydomain.com and: ENV[''FACEBOOKER_SANDBOX_NAMESPACE''] = ''/face'' which sets sends all facebook requests to my "face" controller. and in facebook I set my callback url to: mydomain.com/face/ the rest of my app works normally. Joel On Oct 12, 2008, at 4:41 PM, vincent chu wrote:> Hi -- > > Thanks for your help and sorry for being ambiguous. In greater detail: > > - I have a website, written in rails, that faces the outside world > (i.e., people go to "mysite.com" without being members of facebook, or > even interacting with facebook). This is already written and cannot > change very much. > > - I''m working on a facebook app which will use data from models in > "mysite.com"; I''d like to write a single controller that will handle > requests coming in from facebook (from profile tab views, and from > application canvas pages). I''ve set it up so that: > > callbackurl = mysite.com/facebook/ > canvas page = apps.facebook.com/mysiteapp/ > > - Ideally, I''d like the rest of my site to be ignorant of the > facebooker plugin and run as if it weren''t there (like it does now); > I''d only want to facebooker plugin to do its magic only for those > views that have something to do with facebook. > > After I installed the facebooker plugin to my site, I found that > facebooker had altered the behavior of controllers/views that I didn''t > want. For instance, I was using "bundle-fu" to bundle all of my > stylesheets/javascript together on normal site views. I now find that > my application outputs: > > <link href="http://mysite.com/facebookfoo//stylesheets/cache/bundle.css?1223842665 > " > ... > > instead of > > <link href="/stylesheets/cache/bundle.css?1223842665" ... > > like it did, before the facebooker plugin was installed. Seems like > facebooker has altered the environment of the rails app -- is there > anyway to turn this behavior off, except for controllers/views which > actually handle requests from facebook? > > Thanks for all of the help, > > Vince > > > > > > > > On Fri, Oct 10, 2008 at 8:54 AM, William Thomas > <wthomas989 at yahoo.com> wrote: >> Agreed- not sure what is going on, here is my take >> >> IMO, you should keep your "normal views" (I think you mean the ones >> you''re >> hosting and viewing from your domain) in <action>.html.erb files , >> and the >> ones that facebook requests (hosted on your site but viewed from >> facebook) >> in <action>.fbml.erb. >> >> If you have similarities you should break those out into something >> reusable >> like a partial, a helper, or a rails-cell >> >> --- On Thu, 10/9/08, Mike Mangino <mmangino at elevatedrails.com> wrote: >> >> From: Mike Mangino <mmangino at elevatedrails.com> >> Subject: Re: [Facebooker-talk] Mixing Facebooker into an existing >> site >> To: vchu at post.harvard.edu >> Cc: facebooker-talk at rubyforge.org >> Date: Thursday, October 9, 2008, 4:32 PM >> >> On Oct 9, 2008, at 4:44 PM, vincent chu wrote: >> >>> Mike -- >>> >>> I think I''m beginning to understand -- I have a view that gets >>> called >>> when requests come in from facebook profile tabs; since fbml and >>> html >>> are so similar, I had just modified my normal view to add in a few >>> facebook tags. However, the >> facebook profile tab is treated as a >>> normal HTML view. When I installed facebooker, profile tab views are >>> now treated as facebook views, leading to the "breaking" of my >> app. >> >> I don''t follow this. Is the view for profile tabs only called from >> Facebook, or from both Facebook and non-facebook? In either case, >> Facebook templates should be .fbml.erb templates. >> >> What do you mean by "treated as facebook views" ? >> >>> >>> >>> I''d really rather not treat the profile tab views as facebooker >>> views >>> because the profile tab views are really only a slight >>> modification of >>> an existing view -- is there any way to turn off the filtering for >>> this single view? >> >> Can you explain what you want to happen? What filtering are you >> talking about? >> >> Mike >> >>> >>> >>> Thanks, >>> >>> Vince >>> >>> >>> On Thu, Oct 9, 2008 at 1:25 PM, Mike >> Mangino >> <mmangino at elevatedrails.com >>>> wrote: >>>> >>>> On Oct 9, 2008, at 4:04 PM, vincent chu wrote: >>>> >>>>> Hi all -- >>>>> >>>>> I''m adding a facebook plugin to an existing website and would >> like >>>>> to >>>>> use data stored in existing models to display content on a >> facebook >>>>> application. I would like the rest of the site to run normally >>>>> (i.e., >>>>> in NON-facebook mode), but I would like to define several views >>>>> which >>>>> the site would handle using facebooker / >> facebooker_authentication. >>>>> >>>>> Here''s my conundrum (and apologies if this is a really simple >>>>> question): how do I configure my site so that facebooker will only >>>>> handle certain views? If I install facebooker, then my site is >>>>> >> broken >>>>> because the installation make the site handle all views as >> facebook >>>>> views. >>>>> >>>> >>>> What do you mean the site is broken? For non-facebook requests the >>>> normal >>>> process should be followed. If a request comes from Facebook, it >>>> will try to >>>> render the .fbml.erb template instead. >>>> >>>> Mike >>>> >>>> >>>>> Thanks, >>>>> >>>>> Vince >>>>> >>>>> -- >>>>> Vincent Chu >>>>> Department of Applied Physics >>>>> Geballe Laboratory of Advanced Materials >>>>> McCullough Bldg. 318 >>>>> 476 Lomita Mall >>>>> Stanford, CA, 94305 >>>>> >>>>> vchu AT post.harvard.edu >>>>> vincentchu AT gmail.com >>>>> >>>>> http://www.stanford.edu/~vincentc (homepage, updated >> sporadically) >>>>> >>>>> Consider this: >>>>> "The smallest positive integer not definable in under eleven >> words." >>>>> _______________________________________________ >>>>> 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 >>>> >>> >>> >>> >>> -- >>> Vincent Chu >>> Department of Applied Physics >>> Geballe Laboratory of Advanced Materials >>> McCullough Bldg. 318 >>> 476 Lomita Mall >>> Stanford, CA, 94305 >>> >>> >> vchu AT post.harvard.edu >>> vincentchu AT gmail.com >>> >>> http://www.stanford.edu/~vincentc (homepage, updated sporadically) >>> >>> Consider this: >>> "The smallest positive integer not definable in under eleven >> words." >> >> -- >> 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 >> >> > > > > -- > Vincent Chu > Department of Applied Physics > Geballe Laboratory of Advanced Materials > McCullough Bldg. 318 > 476 Lomita Mall > Stanford, CA, 94305 > > vchu AT post.harvard.edu > vincentchu AT gmail.com > > http://www.stanford.edu/~vincentc (homepage, updated sporadically) > > Consider this: > "The smallest positive integer not definable in under eleven words." > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
David Clements
2008-Oct-13 00:41 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
The specific behavior mentioned happens because Facebooker requires the use of the rails asset_host setting. I think the specific issue you are running into is that Facebooker assumes that your callback_url will be set to mysite.com and not mysite.com/facebook I believe you can override this by setting your asset host and then facebooker won''t override it. We have this in our produciton.rb ActionController::Base.asset_host = "http://assets%d.meetingwave.com" I know it seems as though Facebooker is being invasive and changing lots of behavoir but this is one of the more invasive things, I think everything else works right out of the box. Dave On Sun, Oct 12, 2008 at 4:57 PM, Joel Nylund <jnylund at yahoo.com> wrote:> There was a patch in feb (see the mail archives) from Shawn Van Ittersum > submitted (but I dont think it ever got in cause of no test cases). > > It allowed you to put a prefix for facebook namespace (which can be a > controller if you want) > > I have been using it in production since then to achieve the effect you are > looking for. > > Not sure it will work on the current facebooker codebase, but it might be > worth a try: > > When I use that patch I set: > > callback_url: mydomain.com > and: > ENV[''FACEBOOKER_SANDBOX_NAMESPACE''] = ''/face'' > > which sets sends all facebook requests to my "face" controller. > > and in facebook I set my callback url to: > mydomain.com/face/ > > the rest of my app works normally. > > Joel > > > > On Oct 12, 2008, at 4:41 PM, vincent chu wrote: > > Hi -- >> >> Thanks for your help and sorry for being ambiguous. In greater detail: >> >> - I have a website, written in rails, that faces the outside world >> (i.e., people go to "mysite.com" without being members of facebook, or >> even interacting with facebook). This is already written and cannot >> change very much. >> >> - I''m working on a facebook app which will use data from models in >> "mysite.com"; I''d like to write a single controller that will handle >> requests coming in from facebook (from profile tab views, and from >> application canvas pages). I''ve set it up so that: >> >> callbackurl = mysite.com/facebook/ >> canvas page = apps.facebook.com/mysiteapp/ >> >> - Ideally, I''d like the rest of my site to be ignorant of the >> facebooker plugin and run as if it weren''t there (like it does now); >> I''d only want to facebooker plugin to do its magic only for those >> views that have something to do with facebook. >> >> After I installed the facebooker plugin to my site, I found that >> facebooker had altered the behavior of controllers/views that I didn''t >> want. For instance, I was using "bundle-fu" to bundle all of my >> stylesheets/javascript together on normal site views. I now find that >> my application outputs: >> >> <link href=" >> http://mysite.com/facebookfoo//stylesheets/cache/bundle.css?1223842665" >> ... >> >> instead of >> >> <link href="/stylesheets/cache/bundle.css?1223842665" ... >> >> like it did, before the facebooker plugin was installed. Seems like >> facebooker has altered the environment of the rails app -- is there >> anyway to turn this behavior off, except for controllers/views which >> actually handle requests from facebook? >> >> Thanks for all of the help, >> >> Vince >> >> >> >> >> >> >> >> On Fri, Oct 10, 2008 at 8:54 AM, William Thomas <wthomas989 at yahoo.com> >> wrote: >> >>> Agreed- not sure what is going on, here is my take >>> >>> IMO, you should keep your "normal views" (I think you mean the ones >>> you''re >>> hosting and viewing from your domain) in <action>.html.erb files , and >>> the >>> ones that facebook requests (hosted on your site but viewed from >>> facebook) >>> in <action>.fbml.erb. >>> >>> If you have similarities you should break those out into something >>> reusable >>> like a partial, a helper, or a rails-cell >>> >>> --- On Thu, 10/9/08, Mike Mangino <mmangino at elevatedrails.com> wrote: >>> >>> From: Mike Mangino <mmangino at elevatedrails.com> >>> Subject: Re: [Facebooker-talk] Mixing Facebooker into an existing site >>> To: vchu at post.harvard.edu >>> Cc: facebooker-talk at rubyforge.org >>> Date: Thursday, October 9, 2008, 4:32 PM >>> >>> On Oct 9, 2008, at 4:44 PM, vincent chu wrote: >>> >>> Mike -- >>>> >>>> I think I''m beginning to understand -- I have a view that gets called >>>> when requests come in from facebook profile tabs; since fbml and html >>>> are so similar, I had just modified my normal view to add in a few >>>> facebook tags. However, the >>>> >>> facebook profile tab is treated as a >>> >>>> normal HTML view. When I installed facebooker, profile tab views are >>>> now treated as facebook views, leading to the "breaking" of my >>>> >>> app. >>> >>> I don''t follow this. Is the view for profile tabs only called from >>> Facebook, or from both Facebook and non-facebook? In either case, >>> Facebook templates should be .fbml.erb templates. >>> >>> What do you mean by "treated as facebook views" ? >>> >>> >>>> >>>> I''d really rather not treat the profile tab views as facebooker views >>>> because the profile tab views are really only a slight modification of >>>> an existing view -- is there any way to turn off the filtering for >>>> this single view? >>>> >>> >>> Can you explain what you want to happen? What filtering are you >>> talking about? >>> >>> Mike >>> >>> >>>> >>>> Thanks, >>>> >>>> Vince >>>> >>>> >>>> On Thu, Oct 9, 2008 at 1:25 PM, Mike >>>> >>> Mangino >>> <mmangino at elevatedrails.com >>> >>>> wrote: >>>>> >>>>> On Oct 9, 2008, at 4:04 PM, vincent chu wrote: >>>>> >>>>> Hi all -- >>>>>> >>>>>> I''m adding a facebook plugin to an existing website and would >>>>>> >>>>> like >>> >>>> to >>>>>> use data stored in existing models to display content on a >>>>>> >>>>> facebook >>> >>>> application. I would like the rest of the site to run normally >>>>>> (i.e., >>>>>> in NON-facebook mode), but I would like to define several views >>>>>> which >>>>>> the site would handle using facebooker / >>>>>> >>>>> facebooker_authentication. >>> >>>> >>>>>> Here''s my conundrum (and apologies if this is a really simple >>>>>> question): how do I configure my site so that facebooker will only >>>>>> handle certain views? If I install facebooker, then my site is >>>>>> >>>>>> broken >>> >>>> because the installation make the site handle all views as >>>>>> >>>>> facebook >>> >>>> views. >>>>>> >>>>>> >>>>> What do you mean the site is broken? For non-facebook requests the >>>>> normal >>>>> process should be followed. If a request comes from Facebook, it >>>>> will try to >>>>> render the .fbml.erb template instead. >>>>> >>>>> Mike >>>>> >>>>> >>>>> Thanks, >>>>>> >>>>>> Vince >>>>>> >>>>>> -- >>>>>> Vincent Chu >>>>>> Department of Applied Physics >>>>>> Geballe Laboratory of Advanced Materials >>>>>> McCullough Bldg. 318 >>>>>> 476 Lomita Mall >>>>>> Stanford, CA, 94305 >>>>>> >>>>>> vchu AT post.harvard.edu >>>>>> vincentchu AT gmail.com >>>>>> >>>>>> http://www.stanford.edu/~vincentc<http://www.stanford.edu/%7Evincentc>(homepage, updated >>>>>> >>>>> sporadically) >>> >>>> >>>>>> Consider this: >>>>>> "The smallest positive integer not definable in under eleven >>>>>> >>>>> words." >>> >>>> _______________________________________________ >>>>>> 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 >>>>> >>>>> >>>> >>>> >>>> -- >>>> Vincent Chu >>>> Department of Applied Physics >>>> Geballe Laboratory of Advanced Materials >>>> McCullough Bldg. 318 >>>> 476 Lomita Mall >>>> Stanford, CA, 94305 >>>> >>>> >>>> vchu AT post.harvard.edu >>> >>>> vincentchu AT gmail.com >>>> >>>> http://www.stanford.edu/~vincentc <http://www.stanford.edu/%7Evincentc>(homepage, updated sporadically) >>>> >>>> Consider this: >>>> "The smallest positive integer not definable in under eleven >>>> >>> words." >>> >>> -- >>> 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 >>> >>> >>> >> >> >> -- >> Vincent Chu >> Department of Applied Physics >> Geballe Laboratory of Advanced Materials >> McCullough Bldg. 318 >> 476 Lomita Mall >> Stanford, CA, 94305 >> >> vchu AT post.harvard.edu >> vincentchu AT gmail.com >> >> http://www.stanford.edu/~vincentc <http://www.stanford.edu/%7Evincentc>(homepage, updated sporadically) >> >> Consider this: >> "The smallest positive integer not definable in under eleven words." >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081012/90e58ec3/attachment-0001.html>
vincent chu
2008-Oct-13 03:58 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
Hi David -- Thanks! This was exactly the answer I was looking for. Incidentally, one of my major concerns with using Facebooker is that I don''t quite understand all of the changes that installing facebooker would make to my existing site -- e.g., I had no idea that facebooker would change ActionController::Base.asset_host. Looking through the source code, I found the exact line where this change is made, but I wouldn''t have guessed it on my own. Is there any place in the documentation where these changes to existing behavior are noted? That would be really helpful. Cheers, Vince On Sun, Oct 12, 2008 at 5:41 PM, David Clements <digidigo at gmail.com> wrote:> The specific behavior mentioned happens because Facebooker requires the use > of the rails asset_host setting. > > I think the specific issue you are running into is that Facebooker assumes > that your callback_url will be set to mysite.com and not mysite.com/facebook > > I believe you can override this by setting your asset host and then > facebooker won''t override it. > > We have this in our produciton.rb > ActionController::Base.asset_host = "http://assets%d.meetingwave.com" > > > I know it seems as though Facebooker is being invasive and changing lots of > behavoir but this is one of the more invasive things, I think everything > else works right out of the box. > > > > Dave > > > On Sun, Oct 12, 2008 at 4:57 PM, Joel Nylund <jnylund at yahoo.com> wrote: >> >> There was a patch in feb (see the mail archives) from Shawn Van Ittersum >> submitted (but I dont think it ever got in cause of no test cases). >> >> It allowed you to put a prefix for facebook namespace (which can be a >> controller if you want) >> >> I have been using it in production since then to achieve the effect you >> are looking for. >> >> Not sure it will work on the current facebooker codebase, but it might be >> worth a try: >> >> When I use that patch I set: >> >> callback_url: mydomain.com >> and: >> ENV[''FACEBOOKER_SANDBOX_NAMESPACE''] = ''/face'' >> >> which sets sends all facebook requests to my "face" controller. >> >> and in facebook I set my callback url to: >> mydomain.com/face/ >> >> the rest of my app works normally. >> >> Joel >> >> >> On Oct 12, 2008, at 4:41 PM, vincent chu wrote: >> >>> Hi -- >>> >>> Thanks for your help and sorry for being ambiguous. In greater detail: >>> >>> - I have a website, written in rails, that faces the outside world >>> (i.e., people go to "mysite.com" without being members of facebook, or >>> even interacting with facebook). This is already written and cannot >>> change very much. >>> >>> - I''m working on a facebook app which will use data from models in >>> "mysite.com"; I''d like to write a single controller that will handle >>> requests coming in from facebook (from profile tab views, and from >>> application canvas pages). I''ve set it up so that: >>> >>> callbackurl = mysite.com/facebook/ >>> canvas page = apps.facebook.com/mysiteapp/ >>> >>> - Ideally, I''d like the rest of my site to be ignorant of the >>> facebooker plugin and run as if it weren''t there (like it does now); >>> I''d only want to facebooker plugin to do its magic only for those >>> views that have something to do with facebook. >>> >>> After I installed the facebooker plugin to my site, I found that >>> facebooker had altered the behavior of controllers/views that I didn''t >>> want. For instance, I was using "bundle-fu" to bundle all of my >>> stylesheets/javascript together on normal site views. I now find that >>> my application outputs: >>> >>> <link >>> href="http://mysite.com/facebookfoo//stylesheets/cache/bundle.css?1223842665" >>> ... >>> >>> instead of >>> >>> <link href="/stylesheets/cache/bundle.css?1223842665" ... >>> >>> like it did, before the facebooker plugin was installed. Seems like >>> facebooker has altered the environment of the rails app -- is there >>> anyway to turn this behavior off, except for controllers/views which >>> actually handle requests from facebook? >>> >>> Thanks for all of the help, >>> >>> Vince >>> >>> >>> >>> >>> >>> >>> >>> On Fri, Oct 10, 2008 at 8:54 AM, William Thomas <wthomas989 at yahoo.com> >>> wrote: >>>> >>>> Agreed- not sure what is going on, here is my take >>>> >>>> IMO, you should keep your "normal views" (I think you mean the ones >>>> you''re >>>> hosting and viewing from your domain) in <action>.html.erb files , and >>>> the >>>> ones that facebook requests (hosted on your site but viewed from >>>> facebook) >>>> in <action>.fbml.erb. >>>> >>>> If you have similarities you should break those out into something >>>> reusable >>>> like a partial, a helper, or a rails-cell >>>> >>>> --- On Thu, 10/9/08, Mike Mangino <mmangino at elevatedrails.com> wrote: >>>> >>>> From: Mike Mangino <mmangino at elevatedrails.com> >>>> Subject: Re: [Facebooker-talk] Mixing Facebooker into an existing site >>>> To: vchu at post.harvard.edu >>>> Cc: facebooker-talk at rubyforge.org >>>> Date: Thursday, October 9, 2008, 4:32 PM >>>> >>>> On Oct 9, 2008, at 4:44 PM, vincent chu wrote: >>>> >>>>> Mike -- >>>>> >>>>> I think I''m beginning to understand -- I have a view that gets called >>>>> when requests come in from facebook profile tabs; since fbml and html >>>>> are so similar, I had just modified my normal view to add in a few >>>>> facebook tags. However, the >>>> >>>> facebook profile tab is treated as a >>>>> >>>>> normal HTML view. When I installed facebooker, profile tab views are >>>>> now treated as facebook views, leading to the "breaking" of my >>>> >>>> app. >>>> >>>> I don''t follow this. Is the view for profile tabs only called from >>>> Facebook, or from both Facebook and non-facebook? In either case, >>>> Facebook templates should be .fbml.erb templates. >>>> >>>> What do you mean by "treated as facebook views" ? >>>> >>>>> >>>>> >>>>> I''d really rather not treat the profile tab views as facebooker views >>>>> because the profile tab views are really only a slight modification of >>>>> an existing view -- is there any way to turn off the filtering for >>>>> this single view? >>>> >>>> Can you explain what you want to happen? What filtering are you >>>> talking about? >>>> >>>> Mike >>>> >>>>> >>>>> >>>>> Thanks, >>>>> >>>>> Vince >>>>> >>>>> >>>>> On Thu, Oct 9, 2008 at 1:25 PM, Mike >>>> >>>> Mangino >>>> <mmangino at elevatedrails.com >>>>>> >>>>>> wrote: >>>>>> >>>>>> On Oct 9, 2008, at 4:04 PM, vincent chu wrote: >>>>>> >>>>>>> Hi all -- >>>>>>> >>>>>>> I''m adding a facebook plugin to an existing website and would >>>> >>>> like >>>>>>> >>>>>>> to >>>>>>> use data stored in existing models to display content on a >>>> >>>> facebook >>>>>>> >>>>>>> application. I would like the rest of the site to run normally >>>>>>> (i.e., >>>>>>> in NON-facebook mode), but I would like to define several views >>>>>>> which >>>>>>> the site would handle using facebooker / >>>> >>>> facebooker_authentication. >>>>>>> >>>>>>> Here''s my conundrum (and apologies if this is a really simple >>>>>>> question): how do I configure my site so that facebooker will only >>>>>>> handle certain views? If I install facebooker, then my site is >>>>>>> >>>> broken >>>>>>> >>>>>>> because the installation make the site handle all views as >>>> >>>> facebook >>>>>>> >>>>>>> views. >>>>>>> >>>>>> >>>>>> What do you mean the site is broken? For non-facebook requests the >>>>>> normal >>>>>> process should be followed. If a request comes from Facebook, it >>>>>> will try to >>>>>> render the .fbml.erb template instead. >>>>>> >>>>>> Mike >>>>>> >>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Vince >>>>>>> >>>>>>> -- >>>>>>> Vincent Chu >>>>>>> Department of Applied Physics >>>>>>> Geballe Laboratory of Advanced Materials >>>>>>> McCullough Bldg. 318 >>>>>>> 476 Lomita Mall >>>>>>> Stanford, CA, 94305 >>>>>>> >>>>>>> vchu AT post.harvard.edu >>>>>>> vincentchu AT gmail.com >>>>>>> >>>>>>> http://www.stanford.edu/~vincentc (homepage, updated >>>> >>>> sporadically) >>>>>>> >>>>>>> Consider this: >>>>>>> "The smallest positive integer not definable in under eleven >>>> >>>> words." >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Vincent Chu >>>>> Department of Applied Physics >>>>> Geballe Laboratory of Advanced Materials >>>>> McCullough Bldg. 318 >>>>> 476 Lomita Mall >>>>> Stanford, CA, 94305 >>>>> >>>>> >>>> vchu AT post.harvard.edu >>>>> >>>>> vincentchu AT gmail.com >>>>> >>>>> http://www.stanford.edu/~vincentc (homepage, updated sporadically) >>>>> >>>>> Consider this: >>>>> "The smallest positive integer not definable in under eleven >>>> >>>> words." >>>> >>>> -- >>>> 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 >>>> >>>> >>> >>> >>> >>> -- >>> Vincent Chu >>> Department of Applied Physics >>> Geballe Laboratory of Advanced Materials >>> McCullough Bldg. 318 >>> 476 Lomita Mall >>> Stanford, CA, 94305 >>> >>> vchu AT post.harvard.edu >>> vincentchu AT gmail.com >>> >>> http://www.stanford.edu/~vincentc (homepage, updated sporadically) >>> >>> Consider this: >>> "The smallest positive integer not definable in under eleven words." >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-- Vincent Chu Department of Applied Physics Geballe Laboratory of Advanced Materials McCullough Bldg. 318 476 Lomita Mall Stanford, CA, 94305 vchu AT post.harvard.edu vincentchu AT gmail.com http://www.stanford.edu/~vincentc (homepage, updated sporadically) Consider this: "The smallest positive integer not definable in under eleven words."
David Clements
2008-Oct-13 19:04 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
I don''t think we have anything like that. Most of us just read the code like you did. There are a couple of books out there right now which might give you a good sense on the scope of the plugin. http://www.pragprog.com/titles/mmfacer/developing-facebook-platform-applications-with-rails http://peepcode.com/products/rails-on-facebook Dave On Sun, Oct 12, 2008 at 9:58 PM, vincent chu <vincentchu at gmail.com> wrote:> Hi David -- > > Thanks! This was exactly the answer I was looking for. Incidentally, > one of my major concerns with using Facebooker is that I don''t quite > understand all of the changes that installing facebooker would make to > my existing site -- e.g., I had no idea that facebooker would change > ActionController::Base.asset_host. > > Looking through the source code, I found the exact line where this > change is made, but I wouldn''t have guessed it on my own. Is there any > place in the documentation where these changes to existing behavior > are noted? That would be really helpful. > > Cheers, > > Vince > > On Sun, Oct 12, 2008 at 5:41 PM, David Clements <digidigo at gmail.com> > wrote: > > The specific behavior mentioned happens because Facebooker requires the > use > > of the rails asset_host setting. > > > > I think the specific issue you are running into is that Facebooker > assumes > > that your callback_url will be set to mysite.com and not > mysite.com/facebook > > > > I believe you can override this by setting your asset host and then > > facebooker won''t override it. > > > > We have this in our produciton.rb > > ActionController::Base.asset_host = "http://assets%d.meetingwave.com" > > > > > > I know it seems as though Facebooker is being invasive and changing lots > of > > behavoir but this is one of the more invasive things, I think everything > > else works right out of the box. > > > > > > > > Dave > > > > > > On Sun, Oct 12, 2008 at 4:57 PM, Joel Nylund <jnylund at yahoo.com> wrote: > >> > >> There was a patch in feb (see the mail archives) from Shawn Van Ittersum > >> submitted (but I dont think it ever got in cause of no test cases). > >> > >> It allowed you to put a prefix for facebook namespace (which can be a > >> controller if you want) > >> > >> I have been using it in production since then to achieve the effect you > >> are looking for. > >> > >> Not sure it will work on the current facebooker codebase, but it might > be > >> worth a try: > >> > >> When I use that patch I set: > >> > >> callback_url: mydomain.com > >> and: > >> ENV[''FACEBOOKER_SANDBOX_NAMESPACE''] = ''/face'' > >> > >> which sets sends all facebook requests to my "face" controller. > >> > >> and in facebook I set my callback url to: > >> mydomain.com/face/ > >> > >> the rest of my app works normally. > >> > >> Joel > >> > >> > >> On Oct 12, 2008, at 4:41 PM, vincent chu wrote: > >> > >>> Hi -- > >>> > >>> Thanks for your help and sorry for being ambiguous. In greater detail: > >>> > >>> - I have a website, written in rails, that faces the outside world > >>> (i.e., people go to "mysite.com" without being members of facebook, or > >>> even interacting with facebook). This is already written and cannot > >>> change very much. > >>> > >>> - I''m working on a facebook app which will use data from models in > >>> "mysite.com"; I''d like to write a single controller that will handle > >>> requests coming in from facebook (from profile tab views, and from > >>> application canvas pages). I''ve set it up so that: > >>> > >>> callbackurl = mysite.com/facebook/ > >>> canvas page = apps.facebook.com/mysiteapp/ > >>> > >>> - Ideally, I''d like the rest of my site to be ignorant of the > >>> facebooker plugin and run as if it weren''t there (like it does now); > >>> I''d only want to facebooker plugin to do its magic only for those > >>> views that have something to do with facebook. > >>> > >>> After I installed the facebooker plugin to my site, I found that > >>> facebooker had altered the behavior of controllers/views that I didn''t > >>> want. For instance, I was using "bundle-fu" to bundle all of my > >>> stylesheets/javascript together on normal site views. I now find that > >>> my application outputs: > >>> > >>> <link > >>> href=" > http://mysite.com/facebookfoo//stylesheets/cache/bundle.css?1223842665" > >>> ... > >>> > >>> instead of > >>> > >>> <link href="/stylesheets/cache/bundle.css?1223842665" ... > >>> > >>> like it did, before the facebooker plugin was installed. Seems like > >>> facebooker has altered the environment of the rails app -- is there > >>> anyway to turn this behavior off, except for controllers/views which > >>> actually handle requests from facebook? > >>> > >>> Thanks for all of the help, > >>> > >>> Vince > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> On Fri, Oct 10, 2008 at 8:54 AM, William Thomas <wthomas989 at yahoo.com> > >>> wrote: > >>>> > >>>> Agreed- not sure what is going on, here is my take > >>>> > >>>> IMO, you should keep your "normal views" (I think you mean the ones > >>>> you''re > >>>> hosting and viewing from your domain) in <action>.html.erb files , and > >>>> the > >>>> ones that facebook requests (hosted on your site but viewed from > >>>> facebook) > >>>> in <action>.fbml.erb. > >>>> > >>>> If you have similarities you should break those out into something > >>>> reusable > >>>> like a partial, a helper, or a rails-cell > >>>> > >>>> --- On Thu, 10/9/08, Mike Mangino <mmangino at elevatedrails.com> wrote: > >>>> > >>>> From: Mike Mangino <mmangino at elevatedrails.com> > >>>> Subject: Re: [Facebooker-talk] Mixing Facebooker into an existing site > >>>> To: vchu at post.harvard.edu > >>>> Cc: facebooker-talk at rubyforge.org > >>>> Date: Thursday, October 9, 2008, 4:32 PM > >>>> > >>>> On Oct 9, 2008, at 4:44 PM, vincent chu wrote: > >>>> > >>>>> Mike -- > >>>>> > >>>>> I think I''m beginning to understand -- I have a view that gets called > >>>>> when requests come in from facebook profile tabs; since fbml and html > >>>>> are so similar, I had just modified my normal view to add in a few > >>>>> facebook tags. However, the > >>>> > >>>> facebook profile tab is treated as a > >>>>> > >>>>> normal HTML view. When I installed facebooker, profile tab views are > >>>>> now treated as facebook views, leading to the "breaking" of my > >>>> > >>>> app. > >>>> > >>>> I don''t follow this. Is the view for profile tabs only called from > >>>> Facebook, or from both Facebook and non-facebook? In either case, > >>>> Facebook templates should be .fbml.erb templates. > >>>> > >>>> What do you mean by "treated as facebook views" ? > >>>> > >>>>> > >>>>> > >>>>> I''d really rather not treat the profile tab views as facebooker views > >>>>> because the profile tab views are really only a slight modification > of > >>>>> an existing view -- is there any way to turn off the filtering for > >>>>> this single view? > >>>> > >>>> Can you explain what you want to happen? What filtering are you > >>>> talking about? > >>>> > >>>> Mike > >>>> > >>>>> > >>>>> > >>>>> Thanks, > >>>>> > >>>>> Vince > >>>>> > >>>>> > >>>>> On Thu, Oct 9, 2008 at 1:25 PM, Mike > >>>> > >>>> Mangino > >>>> <mmangino at elevatedrails.com > >>>>>> > >>>>>> wrote: > >>>>>> > >>>>>> On Oct 9, 2008, at 4:04 PM, vincent chu wrote: > >>>>>> > >>>>>>> Hi all -- > >>>>>>> > >>>>>>> I''m adding a facebook plugin to an existing website and would > >>>> > >>>> like > >>>>>>> > >>>>>>> to > >>>>>>> use data stored in existing models to display content on a > >>>> > >>>> facebook > >>>>>>> > >>>>>>> application. I would like the rest of the site to run normally > >>>>>>> (i.e., > >>>>>>> in NON-facebook mode), but I would like to define several views > >>>>>>> which > >>>>>>> the site would handle using facebooker / > >>>> > >>>> facebooker_authentication. > >>>>>>> > >>>>>>> Here''s my conundrum (and apologies if this is a really simple > >>>>>>> question): how do I configure my site so that facebooker will only > >>>>>>> handle certain views? If I install facebooker, then my site is > >>>>>>> > >>>> broken > >>>>>>> > >>>>>>> because the installation make the site handle all views as > >>>> > >>>> facebook > >>>>>>> > >>>>>>> views. > >>>>>>> > >>>>>> > >>>>>> What do you mean the site is broken? For non-facebook requests the > >>>>>> normal > >>>>>> process should be followed. If a request comes from Facebook, it > >>>>>> will try to > >>>>>> render the .fbml.erb template instead. > >>>>>> > >>>>>> Mike > >>>>>> > >>>>>> > >>>>>>> Thanks, > >>>>>>> > >>>>>>> Vince > >>>>>>> > >>>>>>> -- > >>>>>>> Vincent Chu > >>>>>>> Department of Applied Physics > >>>>>>> Geballe Laboratory of Advanced Materials > >>>>>>> McCullough Bldg. 318 > >>>>>>> 476 Lomita Mall > >>>>>>> Stanford, CA, 94305 > >>>>>>> > >>>>>>> vchu AT post.harvard.edu > >>>>>>> vincentchu AT gmail.com > >>>>>>> > >>>>>>> http://www.stanford.edu/~vincentc<http://www.stanford.edu/%7Evincentc>(homepage, updated > >>>> > >>>> sporadically) > >>>>>>> > >>>>>>> Consider this: > >>>>>>> "The smallest positive integer not definable in under eleven > >>>> > >>>> words." > >>>>>>> > >>>>>>> _______________________________________________ > >>>>>>> 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 > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> Vincent Chu > >>>>> Department of Applied Physics > >>>>> Geballe Laboratory of Advanced Materials > >>>>> McCullough Bldg. 318 > >>>>> 476 Lomita Mall > >>>>> Stanford, CA, 94305 > >>>>> > >>>>> > >>>> vchu AT post.harvard.edu > >>>>> > >>>>> vincentchu AT gmail.com > >>>>> > >>>>> http://www.stanford.edu/~vincentc<http://www.stanford.edu/%7Evincentc>(homepage, updated sporadically) > >>>>> > >>>>> Consider this: > >>>>> "The smallest positive integer not definable in under eleven > >>>> > >>>> words." > >>>> > >>>> -- > >>>> 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 > >>>> > >>>> > >>> > >>> > >>> > >>> -- > >>> Vincent Chu > >>> Department of Applied Physics > >>> Geballe Laboratory of Advanced Materials > >>> McCullough Bldg. 318 > >>> 476 Lomita Mall > >>> Stanford, CA, 94305 > >>> > >>> vchu AT post.harvard.edu > >>> vincentchu AT gmail.com > >>> > >>> http://www.stanford.edu/~vincentc<http://www.stanford.edu/%7Evincentc>(homepage, updated sporadically) > >>> > >>> Consider this: > >>> "The smallest positive integer not definable in under eleven words." > >>> _______________________________________________ > >>> Facebooker-talk mailing list > >>> Facebooker-talk at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/facebooker-talk > >> > >> _______________________________________________ > >> Facebooker-talk mailing list > >> Facebooker-talk at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > > > -- > Vincent Chu > Department of Applied Physics > Geballe Laboratory of Advanced Materials > McCullough Bldg. 318 > 476 Lomita Mall > Stanford, CA, 94305 > > vchu AT post.harvard.edu > vincentchu AT gmail.com > > http://www.stanford.edu/~vincentc <http://www.stanford.edu/%7Evincentc>(homepage, updated sporadically) > > Consider this: > "The smallest positive integer not definable in under eleven words." >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081013/52c4b92a/attachment-0001.html>
Mike Mangino
2008-Oct-13 19:39 UTC
[Facebooker-talk] Mixing Facebooker into an existing site
I agree that we need much better documentation than we currently have. I would love to have some help with that. If anyone is interested, let me know. I will help as much as possible. Mike On Oct 13, 2008, at 3:04 PM, David Clements wrote:> I don''t think we have anything like that. Most of us just read the > code like you did. > > There are a couple of books out there right now which might give you > a good sense on the scope of the plugin. > > http://www.pragprog.com/titles/mmfacer/developing-facebook-platform-applications-with-rails > > http://peepcode.com/products/rails-on-facebook > > > Dave > > > On Sun, Oct 12, 2008 at 9:58 PM, vincent chu <vincentchu at gmail.com> > wrote: > Hi David -- > > Thanks! This was exactly the answer I was looking for. Incidentally, > one of my major concerns with using Facebooker is that I don''t quite > understand all of the changes that installing facebooker would make to > my existing site -- e.g., I had no idea that facebooker would change > ActionController::Base.asset_host. > > Looking through the source code, I found the exact line where this > change is made, but I wouldn''t have guessed it on my own. Is there any > place in the documentation where these changes to existing behavior > are noted? That would be really helpful. > > Cheers, > > Vince > > On Sun, Oct 12, 2008 at 5:41 PM, David Clements <digidigo at gmail.com> > wrote: > > The specific behavior mentioned happens because Facebooker > requires the use > > of the rails asset_host setting. > > > > I think the specific issue you are running into is that Facebooker > assumes > > that your callback_url will be set to mysite.com and not > mysite.com/facebook > > > > I believe you can override this by setting your asset host and then > > facebooker won''t override it. > > > > We have this in our produciton.rb > > ActionController::Base.asset_host = "http://assets > %d.meetingwave.com" > > > > > > I know it seems as though Facebooker is being invasive and > changing lots of > > behavoir but this is one of the more invasive things, I think > everything > > else works right out of the box. > > > > > > > > Dave > > > > > > On Sun, Oct 12, 2008 at 4:57 PM, Joel Nylund <jnylund at yahoo.com> > wrote: > >> > >> There was a patch in feb (see the mail archives) from Shawn Van > Ittersum > >> submitted (but I dont think it ever got in cause of no test cases). > >> > >> It allowed you to put a prefix for facebook namespace (which can > be a > >> controller if you want) > >> > >> I have been using it in production since then to achieve the > effect you > >> are looking for. > >> > >> Not sure it will work on the current facebooker codebase, but it > might be > >> worth a try: > >> > >> When I use that patch I set: > >> > >> callback_url: mydomain.com > >> and: > >> ENV[''FACEBOOKER_SANDBOX_NAMESPACE''] = ''/face'' > >> > >> which sets sends all facebook requests to my "face" controller. > >> > >> and in facebook I set my callback url to: > >> mydomain.com/face/ > >> > >> the rest of my app works normally. > >> > >> Joel > >> > >> > >> On Oct 12, 2008, at 4:41 PM, vincent chu wrote: > >> > >>> Hi -- > >>> > >>> Thanks for your help and sorry for being ambiguous. In greater > detail: > >>> > >>> - I have a website, written in rails, that faces the outside world > >>> (i.e., people go to "mysite.com" without being members of > facebook, or > >>> even interacting with facebook). This is already written and > cannot > >>> change very much. > >>> > >>> - I''m working on a facebook app which will use data from models in > >>> "mysite.com"; I''d like to write a single controller that will > handle > >>> requests coming in from facebook (from profile tab views, and from > >>> application canvas pages). I''ve set it up so that: > >>> > >>> callbackurl = mysite.com/facebook/ > >>> canvas page = apps.facebook.com/mysiteapp/ > >>> > >>> - Ideally, I''d like the rest of my site to be ignorant of the > >>> facebooker plugin and run as if it weren''t there (like it does > now); > >>> I''d only want to facebooker plugin to do its magic only for those > >>> views that have something to do with facebook. > >>> > >>> After I installed the facebooker plugin to my site, I found that > >>> facebooker had altered the behavior of controllers/views that I > didn''t > >>> want. For instance, I was using "bundle-fu" to bundle all of my > >>> stylesheets/javascript together on normal site views. I now find > that > >>> my application outputs: > >>> > >>> <link > >>> href="http://mysite.com/facebookfoo//stylesheets/cache/bundle.css?1223842665 > " > >>> ... > >>> > >>> instead of > >>> > >>> <link href="/stylesheets/cache/bundle.css?1223842665" ... > >>> > >>> like it did, before the facebooker plugin was installed. Seems > like > >>> facebooker has altered the environment of the rails app -- is > there > >>> anyway to turn this behavior off, except for controllers/views > which > >>> actually handle requests from facebook? > >>> > >>> Thanks for all of the help, > >>> > >>> Vince > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> On Fri, Oct 10, 2008 at 8:54 AM, William Thomas <wthomas989 at yahoo.com > > > >>> wrote: > >>>> > >>>> Agreed- not sure what is going on, here is my take > >>>> > >>>> IMO, you should keep your "normal views" (I think you mean the > ones > >>>> you''re > >>>> hosting and viewing from your domain) in <action>.html.erb > files , and > >>>> the > >>>> ones that facebook requests (hosted on your site but viewed from > >>>> facebook) > >>>> in <action>.fbml.erb. > >>>> > >>>> If you have similarities you should break those out into > something > >>>> reusable > >>>> like a partial, a helper, or a rails-cell > >>>> > >>>> --- On Thu, 10/9/08, Mike Mangino <mmangino at elevatedrails.com> > wrote: > >>>> > >>>> From: Mike Mangino <mmangino at elevatedrails.com> > >>>> Subject: Re: [Facebooker-talk] Mixing Facebooker into an > existing site > >>>> To: vchu at post.harvard.edu > >>>> Cc: facebooker-talk at rubyforge.org > >>>> Date: Thursday, October 9, 2008, 4:32 PM > >>>> > >>>> On Oct 9, 2008, at 4:44 PM, vincent chu wrote: > >>>> > >>>>> Mike -- > >>>>> > >>>>> I think I''m beginning to understand -- I have a view that gets > called > >>>>> when requests come in from facebook profile tabs; since fbml > and html > >>>>> are so similar, I had just modified my normal view to add in a > few > >>>>> facebook tags. However, the > >>>> > >>>> facebook profile tab is treated as a > >>>>> > >>>>> normal HTML view. When I installed facebooker, profile tab > views are > >>>>> now treated as facebook views, leading to the "breaking" of my > >>>> > >>>> app. > >>>> > >>>> I don''t follow this. Is the view for profile tabs only called > from > >>>> Facebook, or from both Facebook and non-facebook? In either case, > >>>> Facebook templates should be .fbml.erb templates. > >>>> > >>>> What do you mean by "treated as facebook views" ? > >>>> > >>>>> > >>>>> > >>>>> I''d really rather not treat the profile tab views as > facebooker views > >>>>> because the profile tab views are really only a slight > modification of > >>>>> an existing view -- is there any way to turn off the filtering > for > >>>>> this single view? > >>>> > >>>> Can you explain what you want to happen? What filtering are you > >>>> talking about? > >>>> > >>>> Mike > >>>> > >>>>> > >>>>> > >>>>> Thanks, > >>>>> > >>>>> Vince > >>>>> > >>>>> > >>>>> On Thu, Oct 9, 2008 at 1:25 PM, Mike > >>>> > >>>> Mangino > >>>> <mmangino at elevatedrails.com > >>>>>> > >>>>>> wrote: > >>>>>> > >>>>>> On Oct 9, 2008, at 4:04 PM, vincent chu wrote: > >>>>>> > >>>>>>> Hi all -- > >>>>>>> > >>>>>>> I''m adding a facebook plugin to an existing website and would > >>>> > >>>> like > >>>>>>> > >>>>>>> to > >>>>>>> use data stored in existing models to display content on a > >>>> > >>>> facebook > >>>>>>> > >>>>>>> application. I would like the rest of the site to run normally > >>>>>>> (i.e., > >>>>>>> in NON-facebook mode), but I would like to define several > views > >>>>>>> which > >>>>>>> the site would handle using facebooker / > >>>> > >>>> facebooker_authentication. > >>>>>>> > >>>>>>> Here''s my conundrum (and apologies if this is a really simple > >>>>>>> question): how do I configure my site so that facebooker > will only > >>>>>>> handle certain views? If I install facebooker, then my site > is > >>>>>>> > >>>> broken > >>>>>>> > >>>>>>> because the installation make the site handle all views as > >>>> > >>>> facebook > >>>>>>> > >>>>>>> views. > >>>>>>> > >>>>>> > >>>>>> What do you mean the site is broken? For non-facebook > requests the > >>>>>> normal > >>>>>> process should be followed. If a request comes from Facebook, > it > >>>>>> will try to > >>>>>> render the .fbml.erb template instead. > >>>>>> > >>>>>> Mike > >>>>>> > >>>>>> > >>>>>>> Thanks, > >>>>>>> > >>>>>>> Vince > >>>>>>> > >>>>>>> -- > >>>>>>> Vincent Chu > >>>>>>> Department of Applied Physics > >>>>>>> Geballe Laboratory of Advanced Materials > >>>>>>> McCullough Bldg. 318 > >>>>>>> 476 Lomita Mall > >>>>>>> Stanford, CA, 94305 > >>>>>>> > >>>>>>> vchu AT post.harvard.edu > >>>>>>> vincentchu AT gmail.com > >>>>>>> > >>>>>>> http://www.stanford.edu/~vincentc (homepage, updated > >>>> > >>>> sporadically) > >>>>>>> > >>>>>>> Consider this: > >>>>>>> "The smallest positive integer not definable in under eleven > >>>> > >>>> words." > >>>>>>> > >>>>>>> _______________________________________________ > >>>>>>> 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 > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> Vincent Chu > >>>>> Department of Applied Physics > >>>>> Geballe Laboratory of Advanced Materials > >>>>> McCullough Bldg. 318 > >>>>> 476 Lomita Mall > >>>>> Stanford, CA, 94305 > >>>>> > >>>>> > >>>> vchu AT post.harvard.edu > >>>>> > >>>>> vincentchu AT gmail.com > >>>>> > >>>>> http://www.stanford.edu/~vincentc (homepage, updated > sporadically) > >>>>> > >>>>> Consider this: > >>>>> "The smallest positive integer not definable in under eleven > >>>> > >>>> words." > >>>> > >>>> -- > >>>> 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 > >>>> > >>>> > >>> > >>> > >>> > >>> -- > >>> Vincent Chu > >>> Department of Applied Physics > >>> Geballe Laboratory of Advanced Materials > >>> McCullough Bldg. 318 > >>> 476 Lomita Mall > >>> Stanford, CA, 94305 > >>> > >>> vchu AT post.harvard.edu > >>> vincentchu AT gmail.com > >>> > >>> http://www.stanford.edu/~vincentc (homepage, updated sporadically) > >>> > >>> Consider this: > >>> "The smallest positive integer not definable in under eleven > words." > >>> _______________________________________________ > >>> Facebooker-talk mailing list > >>> Facebooker-talk at rubyforge.org > >>> http://rubyforge.org/mailman/listinfo/facebooker-talk > >> > >> _______________________________________________ > >> Facebooker-talk mailing list > >> Facebooker-talk at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > > > -- > Vincent Chu > Department of Applied Physics > Geballe Laboratory of Advanced Materials > McCullough Bldg. 318 > 476 Lomita Mall > Stanford, CA, 94305 > > vchu AT post.harvard.edu > vincentchu AT gmail.com > > http://www.stanford.edu/~vincentc (homepage, updated sporadically) > > Consider this: > "The smallest positive integer not definable in under eleven words." > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com