Last night I got some inspiration, and started taking a look at the Facebook Connect API. It didn't look too hard to deal with, and other than a couple of brain cramps on my part (quickly solved with help from the Smalltalk IRC channel), I got a basic interface created. Right now I can make API calls manually; I still have to actually create something useful to work with :)
Here's what I have so far, as the most basic way to make an API call:
url := 'http://api.facebook.com/restserver.php'.
parms := OrderedCollection new.
parms add: 'method' -> method.
parms add: 'api_key' -> apiKey.
parms add: 'v' -> '1.0'.
^FacebookAPI new
executeAPIWithParameters: parms
withKey: apiKey
withSecret: secret
To work with it, you'll need to go get an API key (along with a secret key) from Facebook. From There, it's all pretty simple. I've published it into the public repository - don't expect much yet, I put the barebones interface there as a starting point.
Technorati Tags:
social media, facebook