<div dir="ltr">You could overid Facebooker.load_adapter or Facebooker::AdapterBase.facebooker_config possibly. Using the adapter will allow you to run your apps on Bebo as well.<br><br>Dave<br><br><br><div class="gmail_quote">
On Fri, Jul 18, 2008 at 5:50 PM, Toby Hede <<a href="mailto:tobyhede@info-architects.net">tobyhede@info-architects.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In my case, the FB credentials are in the database ... so the YML was<br>
not an option - but it's arguably cleaner than my ENV hackin.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
On Sat, Jul 19, 2008 at 1:41 AM, David Clements <<a href="mailto:digidigo@gmail.com">digidigo@gmail.com</a>> wrote:<br>
> We actually just added support for Bebo that should also support multiple<br>
> rails apps in one instance. I tested it once in my dev environment.<br>
><br>
> Please try this in you facebooker.yml where foo is some unique prefix for<br>
> the config:<br>
><br>
> foo_api_key: f688cbe01c465d71e4f9bed26722309a<br>
> foo_secret_key: SECRETKEY<br>
> foo_canvas_page_name: app_canvas_page_name<br>
> foo_adapter: FacebookAdapter<br>
> foo_callback_url: <a href="http://mycoolfacebookapp.com" target="_blank">http://mycoolfacebookapp.com</a><br>
><br>
> I think it requires the same callback_url as the other app, but I don't<br>
> remember if it can be different. If this gets a lot of use was can make it a<br>
> little cleaner.<br>
><br>
> Dave<br>
><br>
><br>
><br>
> On Thu, Jul 17, 2008 at 7:16 PM, Toby Hede <<a href="mailto:tobyhede@info-architects.net">tobyhede@info-architects.net</a>><br>
> wrote:<br>
>><br>
>> I am doing this by using a filter and spoofing the ENV variables. Not<br>
>> pretty but it works.<br>
>><br>
>> before_filter :authenticate<br>
>><br>
>> def authenticate<br>
>> @app = find_application<br>
>><br>
>> ENV['FACEBOOK_API_KEY'] = @app.api_key<br>
>> ENV['FACEBOOK_SECRET_KEY'] = @app.secret_key<br>
>><br>
>> ensure_application_is_installed_by_facebook_user<br>
>> end<br>
>><br>
>> On Fri, Jul 18, 2008 at 11:02 AM, Robert Matei <<a href="mailto:rmatei@gmail.com">rmatei@gmail.com</a>> wrote:<br>
>> > Hi all,<br>
>> ><br>
>> > I'm trying to do a few templatized apps. I want them to all run off the<br>
>> > same<br>
>> > Rails app, which would fetch the right 'theme' from a database based on<br>
>> > params[:fb_sig_api_key]. The themes store the config details of each<br>
>> > app, in<br>
>> > addition to specific prompts and so on.<br>
>> ><br>
>> > Presumably this would need a modified Facebooker, which can work with<br>
>> > multiple api key / secret key combos instead of a single facebooker.yml<br>
>> > file.<br>
>> ><br>
>> > I'm not sure where to start though, and I figured I'd check with people<br>
>> > who<br>
>> > know Facebooker better than I do. Any suggestions?<br>
>> ><br>
>> > Robert<br>
>> ><br>
>> > _______________________________________________<br>
>> > Facebooker-talk mailing list<br>
>> > <a href="mailto:Facebooker-talk@rubyforge.org">Facebooker-talk@rubyforge.org</a><br>
>> > <a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
>> ><br>
>> ><br>
>> _______________________________________________<br>
>> Facebooker-talk mailing list<br>
>> <a href="mailto:Facebooker-talk@rubyforge.org">Facebooker-talk@rubyforge.org</a><br>
>> <a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
><br>
><br>
_______________________________________________<br>
Facebooker-talk mailing list<br>
<a href="mailto:Facebooker-talk@rubyforge.org">Facebooker-talk@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
</div></div></blockquote></div><br></div>