--- fbss2fb.js	Mon Jan 19 17:26:36 1970
+++ fbss2fb.js	Mon Jan 19 17:26:36 1970
@@ -4,13 +4,13 @@
 
 Drupal.behaviors.fbss2fb = function(context) {
 	
-$(context).find('#facebook_status_replace').bind('ahah_success', function() {
- var fbss2fb_status = $(this).find('.facebook_status_text').val();
- // Get the FB dialog data from the callback page and pass it to the fb_stream module.
- // Only call the ajax request if the Facebook box is checked.
- if ($('#edit-fbss2fb-publish:checked').val() !== undefined) {
-   $.post(Drupal.settings.basePath + 'fbss2fb/js/' + fbss2fb_status, FB_Stream.stream_publish);
- }  
-});
+  $(context).find('#facebook_status_replace').bind('ahah_success', function() {
+    var fbss2fb_status = $(this).find('.facebook_status_text').val();
+    // Get the FB dialog data from the callback page and pass it to the fb_stream module.
+    // Only call the ajax request if the Facebook box is checked.
+    if ($('#edit-fbss2fb-publish:checked').val() !== undefined) {
+      $.post(Drupal.settings.basePath + 'fbss2fb/js/' + fbss2fb_status, FB_Stream.stream_publish);
+    }  
+  });
 
 }
\ No newline at end of file
--- fbss2fb.module	Mon Jan 19 17:26:36 1970
+++ fbss2fb.module	Mon Jan 19 17:26:36 1970
@@ -17,7 +17,7 @@
     'title' => 'Ajax callback for fbss2fb',
     'page callback' => 'fbss2fb_js',
     'page arguments' => array(2),
-    'access arguments' => array('access content'),
+    'access arguments' => array('update status to Facebook'),
     'type' => MENU_CALLBACK,
   );
   return $items;
@@ -38,7 +38,7 @@
   
   if ($op == 'form' && $category == 'fb_user') {
     //$account = user_load(array('uid' => arg(1)));
-    if (!user_access('update status to Facebook') && $user->uid == $account->uid)
+    if (!user_access('update status to Facebook', $account))
       return; // hide from this user
   
     $fb_user_data = _fb_user_get_config($_fb_app);
@@ -68,7 +68,7 @@
     }
     return $form;
   }
-  elseif ($op == 'update' && $category == 'fb_user') {
+  elseif ($op == 'update' && $category == 'fb_user' && isset($edit['fbss2fb_update_status'])) {
     user_save($account, array(
       'fbss2fb_update_status' => $edit['fbss2fb_update_status']));
   }
@@ -76,6 +76,7 @@
 
 /**
  * Implementation of hook_form_FORM_ID_alter().
+ * TODO: Put this on its own page.
  */
 function fbss2fb_form_facebook_status_admin_alter(&$form, $form_state) {
   // Add options for updating status to Facebook.
@@ -117,14 +118,14 @@
 }
 
 function fbss2fb_js($status) {
-	global $user;
+	//global $user;
 	//$fb_pub = drupal_get_form('fbss2fb_publish', $user);
 	//conditional to post to fb is scraped by jQuery from the checkbox instead of here
 	// additional parameters are available but may need to be passed with JS as a JS object instead of through URL args.
-  	fb_stream_publish_dialog(array('message' => $status));
-	  print drupal_json(fb_stream_get_stream_dialog_data());
-	  exit;
-  }
+	fb_stream_publish_dialog(array('message' => $status));
+  print drupal_json(fb_stream_get_stream_dialog_data());
+  exit;
+}
 
 /**
  * Gets the default value for the "Post to Facebook" checkbox on the status
--- README.txt	Mon Jan 19 17:26:36 1970
+++ README.txt	Mon Jan 19 17:26:36 1970
@@ -21,8 +21,6 @@
 You will be required to register your app (Drupal website) with Facebook.
 Instructions can be found at http://www.facebook.com/developers/.
 
-Note: FBSS 2.x Dev or current release is required.
-
 Default settings are available at admin/settings/facebook_status. Ensure users
 have permission to post to Facebook. When they first connect, they will be
 asked to authorize your Facebook application.
