Monday, August 17, 2009

Getting Facebook into Twitter

Facebook status updates and Twitter have a lot in common. They're both microblogging platforms that let me casually stalk my friends and find out all kinds of stuff about what they're doing that I wouldn't normally know.

I wanted to have a unified view, so whenever I use a Twitter client, I can see all my Facebook Friend's update. But there's a twist - I didn't want all my Facebook friends. Some of my friends use Twitter to update their Facebook status with the Twitter app (like I do), and I didn't want to get duplicates.

You can see on the right how it works. Here's how I did it:
  1. Get the URL to your Facebook Friend's status feed
  2. Feed it into a private Twitter account (in my case friends) with a name of "Facebook" and a profile icon that is the Facebook logo via TwitterFeed.
  3. Follow friends in twitter
Voila, I now get Facebook and Twitter together in any Twitter client.

Ok, here's the trick - step 1 is really hard.

Step 1 - Getting your Facebook Friends Status URL

First, I want to say "Thank You!" to Kristi Barrow's blog post about Facebook and RSS feeds. This step entirely comes from the information provided in her post and the comments. Without the information there, I never would have figured this out.

In order to create an RSS feed for a single group of your Facebook friends, you will need three internal Facebook IDs.
  • Your facebook ID
  • Your friends' key
  • Your friend's group number

Facebook ID and Friends' Key

You can get these three pieces of information from two facebook links. The first link comes from one of your applications. I use the "links" application, but any application with the "Subscribe to ... -> My Friends Links" can be used.

So, first select "Links" from the "Applications" menu as shown on the left. This will bring you to a page that shows your friends' links - as shown on the right.

If you right-click on the "My Friends Links" RSS feed, and copy the URL, it should be something like this:

http://www.facebook.com/feeds/share_friends_posts.php?id=xxxxxxxxx&key=yyyyyyyyy&format=rss20

Your Facebook ID is xxxxxxxxx
Your Friends' Key is yyyyyyyyy

Your friend's group number

In order to find your friend's group number, you should click on "Friends" at the top of the facebook page, and then select the friend list that you want from the menu on the left.

If you look at the URL in your browser it should look something like:

http://www.facebook.com/home.php#/friends/?filter=flp_zzzzzzzzzzzz

Putting it All Together

Ok, now we have three pieces of data:
  • Your Facebook ID is xxxxxxxxx
  • Your Friends' Key is yyyyyyyyy
  • Your Facebook Friend's Group ID zzzzzzzzzzzz
Now, lets put it all together into a URL that gets you a feed of your friend's status:
http://www.facebook.com/feeds/friends_status.php?id=xxxxxxxxx&key=yyyyyyyyyy&format=rss20&flid=zzzzzzzzzzzz
If you want all of your friend's statuses, just leave off the flid=zzzzzzzzzzzz portion of the URL.

Get a new Twitter Account

Ok, sign out of twitter, and create a new account - I call mine friends. You can see a picture of the twitter account settings that I use to the left. I describe each of the settings below:
  1. Twitter Username - the username you will follow - as you can see it is friends - you can pick anything you want, it really doesn't matter.

  2. Profile Name - I chose "Facebook" because it means that any time this user tweets, it shows up as coming from "Facebook" in my feed.

  3. Profile Email - You can use a trick that I use all the time with gmail, which is that you can create a new email address by using <your-username>+<anystring>@gmail.com to create a new email address. It will get delivered to your regular gmail account.

  4. Picture - I use the facebook icon as the picture for the account - again, this just helps show the icon in my feed when I get an update

  5. Protect My Tweets - It is really important that you check this box. The reason its important is because under facebook, statuses are not open to all. If you don't check this box, your friends' statuses will become viewable to everyone in the world. Protect your friends - check this box.

Feed your account with TwitterFeed

TwitterFeed is a tool that allows you to post the contents of one or more RSS feeds to Twitter. Head on over to twitterfeed.com, and get an account (you can either use OpenID, or sign up there).

You'll be taken to your "Feed Dashboard", where you should select "Add a Feed".

The URL for the feed will be the URL you created above, the twitter account should be your new twitter account.

I also have my facebook notifications fed into this twitter account, so I get messages like "So-and-so just commented on your status."

Follow Your New Account

Ok, go back to twitter, and log out of your new account. Then you'll need to follow your new account from your regular account. Once you do this (you'll have to grant permission to follow), you're all set.

Any twitter client (including the twitter website), will now have your facebook friends' statuses and notifications.

Tuesday, August 11, 2009

Riding on the Assabet River Rail Trail

Connor biking on the ARRTConnor's been riding his bike a lot lately, and he recently graduated away from training wheels.

We've been riding around the neighborhood quite a bit, but there's lots of traffic and lots of hills. I remember reading about the Assabet River Rail Trail a while ago, and had seen parts of it where it crossed various streets in town, but had never been on it.

ARRT going under the highwayThe trail is planned to run from Marlborough to Acton - passing through Hudson, Maynard and Stow. Only the Marlborough and Hudson parts are finished right now, but its still 6 miles of paved trail.

We took off from Marlborough center and started toward Hudson, thinking we'd make it only a mile or two before turning around. But we ended up going all the way to Hudson center before turning around - 4.5 miles - or 9 miles round trip.

Flowers on the ARRTIt was really amazing that such a beautiful area was hidden right through town - and so few people know about it. It even goes right under the highway. Anyone who lives near the ARRT should go and use it - walk, bike, take your dog for a walk or anything.

It was a really beautiful ride. I can't wait until we can go again. Next time we'll probably ride right from the house instead of driving to get there.

They're going to start construction again in 2013 - a long way off, but it will make a great ride all the way from Marlborough to Acton - much better than on a bunch of hilly roads.