Adding a Chat box on Last.fm is easier than you think. Here’s a quick hack.
As shown before, it’s relatively easy to embed a chat box on twitter.
Doing the same for last.fm is trivial. First, we need to add omniauth_lastfm in the Gemfile of our Sinatra app.
We need to add also the require in the app file:
Now we have to define the OAuth callback for Lastfm:
And the qop.js is:
That’s all. Give it a spin if you’d like, but remember that it’s alpha code.
Here’s the Chrome extension: Chat on Last.fm