Display your facebook status on a Drupal site

So things are getting out of hand with all the crazy web 2.0/social networking sites popping up but if you've got a facebook account chances are you haven't tired of the ability to post your status whenever you want.

Something I noticed recently is that your facebook status is published as an RSS feed from your profile (go to your profile, then click on 'see all' in your mini-feed, then filter to 'status stories.').

What this means is that you can grab that feed and display it on your Drupal website using the feed aggregator module!  Nice!! :)

Okay, so now that you've got your feed URL from facebook (copy the linked blue rss logo as shown above), enable the aggregator module and add the feed to your aggregator.  For my personal site at http://www.qasim.ca I chose to only display the latest status for obvious reasons.

Now, the aggregator module automatically makes a block for each feed you throw into the aggregator - so all you have to do is edit the block, set the number of feed items to show and then publish the block wherever you want!

Notes:

With Facebook getting more

With Facebook getting more and more populary, this is definitely a nice add on.

I've got your feed url,

I've got your feed url, thanks for sharing.

good to know, thanks :)

good to know, thanks :)

I originally tried this with

I originally tried this with aggregator.module, but because of the issues you have encountered (and several more) I created the Facebook Status module a few months ago.

It provides for one (and only one, at this point) Facebook user per site, as it was written to meet my needs for my single-user blog site.

It uses PHP5's simpleXML interface to fetch and parse the feed, and stores the data in the cache table.

I am likely to rewrite it to use a cron hook and store the data in the profile table, which will open the door to supporting multiple users per site. In that case I'll likely produce a block that can be placed on pages in Ken Rickard's mysite personalization module and on user profile pages.

I created a similar function

I created a similar function in PHP but it works without having Drupal installed. You can download it here:

http://www.blakebrannon.com/2007/11/18/stats2site-add-facebook-status-to-your-website/