15 Jan
It’s been a couple of weeks since I was last in the Google’s OpenSocial API. We are in the process of porting yet another Facebook application to MySpace using OpenSocial. Fortunately we wrote the original FB App with portability in mind.

Facebook vs. OpenSocial
The Facebook API and OpenSocial API use very different models making reuse very difficult. At its core, Facebook uses a Server-side proxied web application model. The Facebook server talks to your PHP-based application (which uses XML-REST API to get info from Facebook) and displays the results. OpenSocial uses a Client-Side Javascript widget model where applications are written in Javascript and get information via a Javascript API. Any external communication is done using an AJAX-like API function but all the logic is on the client-side. As a result, the development models are very different for both!
Here are a couple of suggestions to make your Facebook applications more “portable”: