For actions like "Add a status", the content of Sender username is sent to _facebook_status_user_load(). If the field is left blank, the active user is supposed to be loaded. But sending a blank value to user_load(), which is what _facebook_status_user_load() does, results in the loading of the anonymous user, uid 0. To fix, something along these lines should be added in fbss_rules_add_action():
$settings['sender'] = !empty($settings['sender']) ? $settings['sender'] : $GLOBALS['user']->uid;
Comments
Comment #1
icecreamyou commentedCommitted fix to dev, thanks!