Follow Your Passion

Monday, January 14, 2008

RFacebook on Bebo Plugin

Bebo has gone live! If you've been developing on Facebook you'll realize that the API's are very similar. So similar in fact that with a few tweaks you can get your RFacebook application running on Bebo. I've created a little plugin to help with that. Note: I've only tested this with RFacebook version 0.97 and Rails 1.2.5. If you have a different setup then... things might be interesting.

Here's how to get it installed:
1. First make sure RFacebook is installed. You'll also need to generate the whole facebook.yml but fill it in with your Bebo application's values instead.
2. Install the plugin like so:
script/plugin install http://svn.tierrabyte.net/plugins/rfacebook_on_bebo

3. That should do it. Everything else should pretty much work like Facebook. But take note that FBJS is not yet implemented in the Bebo API.


And like I said, this was only tested on RFacebook 0.97 and Rails 1.2.5 but it should be a good starting point if you're still trying to figure things out. Also, this will not allow you to run both a Facebook and a Bebo application within the same Rails project. But that shouldn't be too hard to implement.

One last thing. If you find this code useful, a donation of any amount to our Donate Rice Facebook Campaign (http://apps.facebook.com/donaterice) would be very much appreciated. We donated over $300 to the World Food Program in December alone. You can donate by clicking here:

Thanks! And feel free to leave any questions or comments below.