RecentlyPlayed for Mac OS X and Facebook
So the Facebook Platform is here.
Like when the AppleTV came out, I just had to do something with it.
So this past Friday Night and Saturday Morning I developed a system to update my Facebook profile with my last 10 play songs in iTunes.
You can download it and use it for yourself at http://apps.facebook.com/recentlyplayed/.
As for how it works..
I developed a cocoa app for OS X that received notifications from iTunes when something changes. I check to see if the song is changed, if it is, it notifies our servers with the new song information and the user application token you enter when you first start the app.
From there, on the server side it grabs your token, looks up your account information and generates new FBML and sets your profile.
Theres a bit more going on there obviously, you have to add the application, then generate an “infinite session”, for more on that head over to developers.facebook.com and check it out.
If anyone has any questions about using the Facebook Platform, I devleoped a good grasp of it while doing this, so leave your question in the comments and I’ll see if I can help you out.
While to date, nothing we’ve done has been open source here, I think we’re going to release this under CC for everyone to get an idea of how it works and hopefully build your own awesome Facebook apps.
Is there a way to un-permanatly login on my profile?