diff -urp /home/abulte/fbconnect/fbconnect.admin.inc ./fbconnect.admin.inc
--- /home/abulte/fbconnect/fbconnect.admin.inc	2010-08-24 14:07:15.000000000 +0000
+++ ./fbconnect.admin.inc	2010-10-22 21:31:14.000000000 +0000
@@ -105,6 +105,15 @@ function fbconnect_appearance_settings(&
     '#description' => t('Disables the option to link local account to a FB account on registration'),
   );
   
+  // ABUL : use FirstName L. instead of FirstName LastName ?
+  $form['site']['fbconnect_short_name'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Do not display last name when using fast registration'),
+    '#default_value' => variable_get('fbconnect_short_name', 0),
+    '#description' => t('Use FirstName L. instead of FirstName LastName. Only applies when fast registration is enabled.'),
+  );
+  
+  
   $form['display'] = array(
     '#title' => t('Display Settings'),
     '#type' => 'fieldset',
diff -urp /home/abulte/fbconnect/fbconnect.module ./fbconnect.module
--- /home/abulte/fbconnect/fbconnect.module	2010-10-12 15:07:18.000000000 +0000
+++ ./fbconnect.module	2010-10-22 21:45:26.000000000 +0000
@@ -348,6 +348,9 @@ function fbconnect_get_config() {
     $config['loginout_mode'] = variable_get('fbconnect_loginout_mode', 'manual');
     $config['invite_name'] = variable_get('fbconnect_invite_name', variable_get('site_name', $base_url));
     $config['fast_reg_mode'] = variable_get('fbconnect_fast_reg', NULL);
+    
+    // ABUL
+    $config['short_name'] = variable_get('fbconnect_short_name', 0);
 
     // allow third party modules to change settings
     drupal_alter('fbconnect_config', $config);
diff -urp /home/abulte/fbconnect/fbconnect.pages.inc ./fbconnect.pages.inc
--- /home/abulte/fbconnect/fbconnect.pages.inc	2010-10-14 07:34:56.000000000 +0000
+++ ./fbconnect.pages.inc	2010-10-23 10:41:15.000000000 +0000
@@ -46,7 +46,8 @@ function fbconnect_prompt_page_links() {
  */
 function fbconnect_register_page($form_state = array()) {
   $conf  = fbconnect_get_config();
-  $data  = fbconnect_get_user_info('name, email');    
+  // ABUL : get first_name and last_name
+  $data  = fbconnect_get_user_info('name, email, first_name, last_name');    
   $form  = drupal_retrieve_form('user_register', $form_state);
   $site  = $conf['invite_name'];
   
@@ -75,16 +76,26 @@ function fbconnect_register_page($form_s
   }
   $form['#redirect'] = isset($_REQUEST['destination']) ? $_REQUEST['destination'] : '';
   $form['#submit'][] = 'fbconnect_register_form_submit';  
-
   // Fast registration mode, we by pass std drupal reg form.
   if ($conf['fast_reg_mode']) {
-    $form_state['values']['name']       = $data['name'];
+    
+    // ABUL : if set in config, use FirstName L. instead of FirstName LastName
+    // if commons enabled, fill first name and last name
+    if($conf['short_name']) {
+    	$form_state['values']['name'] = $data['first_name'] . ' ' . substr($data['last_name'], 0, 1). '.'; 
+    }else{
+    	$form_state['values']['name']       = $data['name'];    
+    }
+    if(module_exists('commons')){
+    	$form_state['values']['profile_name'] = $data['first_name'];
+    	$form_state['values']['profile_last_name'] = $data['last_name'];
+    }
+    
     $form_state['values']['mail']       = $data['email'];
     $form_state['values']['pass']       = user_password();
     $form_state['values']['status']     = 1;
     $form_state['values']['fb_visible'] = 1;
     $form_state['values']['fb_avatar']  = 1;
-    
     drupal_validate_form('user_register', $form, $form_state);
     if (form_get_errors()) {
       $dest = array('query' => 'destination=fbconnect/link');
@@ -95,7 +106,6 @@ function fbconnect_register_page($form_s
     fbconnect_register_form_submit($form, $form_state);
     drupal_goto();
   }
-    
   return $form;
 }
 
