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