--- facebookshare.module.orig
+++ facebookshare.module
@@ -80,6 +80,13 @@ function facebookshare_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
 }
 
 /**
+ * Implementation of hook_footer().
+ */
+function facebookshare_footer() {
+   return theme('facebookshare_script', 'http://static.ak.fbcdn.net/connect.php/js/FB.Share');
+}
+
+/**
  * Implements hook_theme()
  */
 function facebookshare_theme($existing, $type, $theme, $path) {
@@ -96,6 +103,11 @@ function facebookshare_theme($existing, $type, $theme, $path) {
         'text' => NULL,
       ),
     ),
+    'facebookshare_script' => array(
+      'arguments' => array(
+        'script_url' => NULL,
+      ),
+    ),
   );
 }
 
@@ -121,9 +133,14 @@ function theme_facebookshare($url) {
 function theme_facebookshare_button($url, $size, $text) {
   $output = '<a name="fb_share" ' .
    'type="' . $size . '" share_url="' . $url . '">' .
-   $text . '</a>' .
-   '<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" ' .
-   'type="text/javascript"></script>';
+   $text . '</a>';
   
   return $output;
-}
\ No newline at end of file
+}
+
+/**
+ * Theme the facebook share script
+ */
+function theme_facebookshare_script($script_url) {
+  return '<script src="' . url($script_url) . '" type="text/javascript"></script>';
+}
