diff --git a/fbconnect.module b/fbconnect.module
index c11288f..e27d06a 100644
--- a/fbconnect.module
+++ b/fbconnect.module
@@ -558,6 +558,8 @@ function fbconnect_render_js() {
   if ($config && isset($_SESSION['fbconnect_feed'])) {
     $site = variable_get('site_name', $base_url);
     $feed = $_SESSION['fbconnect_feed'];
+    
+    $feed_js = NULL;
 
     switch ($feed['type']) {
       case 'comment' :
@@ -578,9 +580,12 @@ function fbconnect_render_js() {
             )
           ),
         );
+
         //Action links are currently not working and will be removed from above
         //properties to action links as soon as they're available
         $action_links = array();
+
+        $message = t('I posted a comment on !site_name.', array('!site_name' => variable_get('site_name', 'Drupal')));
         break;
 
       case 'node' :
@@ -601,6 +606,8 @@ function fbconnect_render_js() {
           ),
         );
         $action_links = array();
+
+        $message = t('I posted new content on !site_name.', array('!site_name' => variable_get('site_name', 'Drupal')));
         break;
 
       case 'register' :
@@ -619,6 +626,8 @@ function fbconnect_render_js() {
         //Action links are currently not working and will be removed from above
         //properties to action links as soon as they're available
         $action_links = array();
+
+        $message = t('I just became a member at !site_name!', array('!site_name' => variable_get('site_name', 'Drupal')));
         break;
     }
     
@@ -627,10 +636,21 @@ function fbconnect_render_js() {
      * for more info about used params here
      * FB.Connect.streamPublish(user_message, attachment, action_links, target_id, user_management_promt, callback, auto_publish, actor_id)
      */
-    $streamPublishArgs = array("", $feed_js, $action_links, "", t('Something to say?'), "", $autopublish);
-    drupal_add_js(array('FB.streamPublish' => $streamPublishArgs), 'setting');
 
-    unset($_SESSION['fbconnect_feed']);
+    if ($feed_js) {
+      $streamPublishArgs = array(
+        'method' => 'stream.publish',
+        'message' => $message,
+        'attachment' => $feed_js,
+        'action_links' => array(),
+        'user_message_prompt' => t('Something to say?')
+      );
+
+      drupal_add_js(array('fbconnect_stream_item' => $streamPublishArgs), 'setting');
+
+      drupal_add_js('$(document).ready(function() {FB.ui(Drupal.settings.fbconnect_stream_item);});', 'inline', 'footer');
+      unset($_SESSION['fbconnect_feed']);
+    }
   }
 }
 
@@ -994,4 +1014,4 @@ function fbconnect_content_extra_fields($type_name) {
     );
   }
   return $extra;
-}
\ No newline at end of file
+}
