diff --git a/fboauth.module b/fboauth.module
index 0ef4138..ddaced5 100644
--- a/fboauth.module
+++ b/fboauth.module
@@ -424,7 +424,7 @@ function theme_fboauth_action__connect($variables) {
   $link['attributes']['rel'] = 'nofollow';
   $attributes = isset($link['attributes']) ? drupal_attributes($link['attributes']) : '';
   $title = isset($link['title']) ? check_plain($link['title']) : '';
-  $src = ($GLOBALS['is_https'] ? 'https' : 'http') . '://www.facebook.com/images/fbconnect/login-buttons/connect_light_medium_short.gif';
+  $src = '//www.facebook.com/images/fbconnect/login-buttons/connect_light_medium_short.gif';
   return '<a ' . $attributes . ' href="' . $url . '"><img src="' . $src . '" alt="' . $title . '" /></a>';
 }
 
