You can do this with XFBML, once your configure your site for Facebook Connect. It's actually shockingly easy.
Quick rundown: First, you need to set up your site for Facebook Connect. This is easier than it sounds, and you don't have to allow Facebook logins or anything else to make this work.
First, go here: http://developers.facebook.com/setup.php . Follow the instructions. There is a file you will need to download and then upload to the web root of your own site. This is actually necessary, for cookies and such so that FB can check credentials (to obey privacy restrictions). It *must* be on your own site, same domain and such.
Now, on your own site, edit your theme's header.php file. Add this to the html tag as an attribute: xmlns:fb="http://www.facebook.com/2008/fbml" . This is necessary for IE.
Next, you need to load the Facebook Javascript. It's actually pretty tiny, since it doesn't load all the FB javascript stuff, just a small loader script that loads other scripts on an as-needed basis. So, just add this somewhere inside the body of the page (NOT in the head!). Preferably just after the opening body tag:
HTML Code:
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
Okay, now that you've got that out of the way (it's a one time step to set up for FB connect on any given site), we get to the good bits.
First, you need the API key for your app. You should have gotten it when creating the app, but if not, find your app here:
http://www.facebook.com/developers/apps.php and get the API key.
Now, add this script right before the ending </body>, probably in your footer.php. Note that you need to put in your API key AND the link to the xd_receiver.htm file that you uploaded to your web root:
HTML Code:
<script type="text/javascript">
FB_RequireFeatures(["XFBML"], function(){
FB.Facebook.init("YOUR_API_KEY_HERE", "http://EXAMPLE.COM/xd_receiver.htm");
});
</script> That needs to be at the end of the page, last thing.
Go here: http://developers.facebook.com/tools.php?fbml
Now, you're going to need your user profile ID number. It's on that tools page. Mine, for example, is 531132304.
Put this code on your page wherever you want your status. Also, yes, it will work in a Text Widget just fine.
HTML Code:
<fb:user-status uid="YOUR_PROFILE_NUMBER_HERE" linked="true"></fb:user-status>
Voila. It makes it get the status from Facebook, in real time. Note that this *will* obey Facebook privacy requirements, so if your status is not "public", then only your friends on FB (who are also logged into F
will be able to see it. "Public" is visible to anybody, including people not on Facebook.
Once you've done all this, BTW, you have full FB connect capabilities. All the XFBML you want to use is available to you now, without adding a lot of extra code. All the above was just setup except for the last step.
XFBML code: http://wiki.developers.facebook.com/index.php/XFBML
That tools page you were looking at lets you test FBML code. Just type the code into the big box on the left, then hit the button to see the resulting output on the right. Go ahead, put your user status line in there and try it, you'll see your current user status.