? .svn
? fbconnect-470702.patch
? facebook-client/.svn
? facebook-client/facebook.php
? facebook-client/facebook_desktop.php
? facebook-client/facebookapi_php5_restlib.php
? facebook-client/jsonwrapper
? images/.svn
? js/.svn
? modules/.svn
? modules/fbconnect_profile/.svn
? translations/.svn
Index: fbconnect.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fbconnect/fbconnect.module,v
retrieving revision 1.17
diff -u -p -r1.17 fbconnect.module
--- fbconnect.module	3 Jun 2009 13:51:06 -0000	1.17
+++ fbconnect.module	15 Jul 2009 22:11:38 -0000
@@ -457,7 +457,7 @@ function fbconnect_register($uid, $fbuid
  * @param Int $fbuid
  */
 function fbconnect_get_fb_avatar($fbuid) {
-  $size = 'pic_with_logo';
+  $size = 'pic_big_with_logo';
   // Get facebook user picture's url.
   $pic_url = fbconnect_get_info_from_fb($fbuid, $size);
   if ($pic_url) {
@@ -479,6 +479,8 @@ function fbconnect_get_fb_avatar($fbuid)
     $file = file_save_data($result->data, $dest, FILE_EXISTS_REPLACE);
     // Resizing
     list($width, $height) = sscanf(variable_get('user_picture_dimensions', '85x85'), '%dx%d');
+    $width = ($width > 200) ? 200 : $width;
+    $height = ($height > 600) ? 600 : $width;
     image_scale_and_crop($file, $dest, $width, $height);
 
     return $file;
@@ -515,4 +517,4 @@ function fbconnect_get_info_from_fb($fbu
       watchdog('fbconnect', 'Exception thrown while using fbconnect_get_info_from_fb : @code', array('@code' => $e->getMessage()), WATCHDOG_WARNING);
     }
   }
-}
\ No newline at end of file
+}
