08 August 2007

Twitter2Facebook

One of these days, I promise I'm going to write about something other than my Greasemonkey scripts. Today, however, will not be one of these days.

I recently subscribed to Twitter, which is a social networking site dedicated entirely to tell your friends what you're doing. Well, I decided it would be great if I could keep my Facebook status set to my Twitter status. I thought this would be a good idea because I can set my twitter status from just about anywhere (even Facebook). I began to search and found a couple programs (e.g. this really nice ruby script) that could be run in the background on your computer and would do exactly this. The only problem with them was that they all would log you out of another facebook login. This is fine if I'm not actually on my computer, but if I'm on my computer using Facebook, I wouldn't want this.

So I decided to write another Greasemonkey script for Facebook that would do it in your browser, with your already logged-in facebook session.

This script will check your Twitter status every time you go to the Facebook homepage, and if it's different than your Facebook status, it will update your facebook status with your current twitter status.

I hope you enjoy it.

2 comments:

grum said...

I love it!

one request - ignore twitter posts starting with @

Anonymous said...

Hey, your Script is great! And I have a question if you could make a little change in the code for me. It would be nice if my status message in facebook would begin with "doing: ". So for example the twitter-status "I watch tv" would be in Facebook "doing: I watch tv" so that it looks in my Facebook-profile: "Thorsten is doing: I watch tv"

Would be great if you could send me this code to th.ostern //at// gmail.com

Have a nice day
Thorsten

PS I want this change because in german it's mostly impossible to write sentences with "Thorsten is..." which make sense.