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