In order to use the Facbook PHP API to update a user's status and post feed stories you must have the user acknowledge an acceptance of status_update and offline_access extended permissions. See
http://wiki.developers.facebook.com/index.php/Extended_permissions for more information on Facebook extended permisssions.
The current list of extended permissions are email, offline_access, status_update, photo_upload, create_listing, create_event, rsvp_event, sms, video_upload, create_note, share_item.
There are two html buttons in the demo that launch the extended permissions dialog.
The following PHP code will check a user's 'status_update' extended permission state.
$user->fbc_getExtendedPermission('status_update');
c
If a user does not have the extended permission set, you would call the following javascript function to launch the dialog ...
FB.Connect.showPermissionDialog('status_update', function(accepted) { window.location.reload(); } );
c
Once the permission has been accepted, this javascript function will reload the page to ensure the correct user state is being used by your application.