I've looking at the theme functions but haven't been able to get them to display the status for a specific user. When I'm logged in it shows my status where I want in my theme. For anonymous users, it shows "Anonymous does not have a status." It seems like the $account variable is where you specify a user but I don't know what to put there. I've tried the user id and the actual username but neither worked.

CommentFileSizeAuthor
#1 fbss_block_config_special.png24.71 KBicecreamyou

Comments

icecreamyou’s picture

Status: Active » Fixed
StatusFileSize
new24.71 KB

If you literally want it in your theme, you'll need something like this:

//User ID of the user whose status should be shown.
$uid = 1;
//Get the most recent non-blank status on the relevant user's own profile.
$statuses = facebook_status_get_status($uid, $uid);
//$statuses is an array of statuses, but we only want the first one.
$status = $statuses[0];
//Theme the status appropriately.
echo theme('facebook_status_item', $status);

You could also paste that into a custom block with the PHP input format enabled, or (much easier) do it with the Views module.

However, FBSS provides an easy way to do this through the site interface: you just have to specify the name of a user in a setting in the configuration of the default Facebook-style Statuses block (see attachment).

butler360’s picture

Works great, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.