Followers on Twitter may have noticed that I’m now posting using a client called alanjames. This is really just Spaz but now registered at Twitter under my own name.
Here’s the how and why I’ve done that.
For some months now I’ve been using the in development versions of Spaz pulled from the GitHub repository mostly cos I like to get all the new stuff first. Recently though they’ve changed all the login code to use xAuth as it looks like Twitter will be forcing all clients to go that way sometime soon.
So when I pulled the latest code on Tuesday it wouldn’t run. It just complained that the SPAZCORE_CONSUMERKEY_TWITTER and SPAZCORE_CONSUMERSECRET_TWITTER values were empty. These are the values an app uses to identify itself with Twitter (so when it misbehaves and causes a problem for Twitter they know who to contact), and they would normally be hard coded into the application.
When you’ve got an open source app though, anyone could look in the code and take your keys and then impersonate your application, potentially making you look bad when they somehow cause the fail whale to resurface. So until that problem is solved Spaz isn’t putting their key and secret in the source code.
Fair enough, I thought, I’ll just register it myself and get my own keys. Here’s what I did.
- Go to http://dev.twitter.com/apps and register a new application. Call it what you like, set it to ‘client’ and ‘read & write’.
- On the application detail page you’ll find your consumer key and secret.
- In the Spaz source you’ll find app/auth_config_sample.js copy this to app/auth_config.js and edit it.
- Fill in the key and secret.
- Run it and it still wont work. 🙁
- Go back to your app page and notice the message at the bottom “Note: xAuth is not enabled for applications by default. Email email@example.com to request xAuth access.”
- Send them a nice email :
I have my own version of the twitter client Spaz and would like xAuth
access for it. I’ve registered it here:
I’ll keep it mostly in line with the cvs version from
http://www.getspaz.com/ so any changes you require them to make I’ll
quickly do the same.
- Wait for 4 days.
- Run it again and it works!