Index: fb.module
===================================================================
--- fb.module	(revision 3488)
+++ fb.module	(working copy)
@@ -58,6 +58,7 @@
 define('FB_VAR_APIKEY', 'fb_apikey');
 define('FB_VAR_USE_COOKIE', 'fb_use_cookie');
 define('FB_VAR_USE_SESSION', 'fb_use_session');
+define('FB_VAR_CURL_NOVERIFY', 'fb_curl_noverify');

 // node_access realms (belongs here?)
 define('FB_GRANT_REALM_FRIEND', 'fb_friend');
@@ -346,10 +347,12 @@
                          'cookie' => variable_get(FB_VAR_USE_COOKIE, TRUE),
                        ));

-    // Not sure if these are still needed.
-    //Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = FALSE;
-    //Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYHOST] = FALSE;
-    //Facebook::$CURL_OPTS[CURLOPT_VERBOSE] = 1;
+    // Some servers need these settings.
+    if (variable_get(FB_VAR_CURL_NOVERIFY, TRUE)) {
+      Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = FALSE;
+      Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYHOST] = FALSE;
+      //Facebook::$CURL_OPTS[CURLOPT_VERBOSE] = 1; // debug
+    }

     // Cache the result, in case we're called again.
     $cache[$fb_app->apikey] = $fb;
