diff --git a/fb.js b/fb.js
index 01ccb10..0573110 100644
--- a/fb.js
+++ b/fb.js
@@ -35,7 +35,14 @@ FB_JS.drupalBehaviors = function(context) {
     // Render any XFBML markup that may have been added by AJAX.
     jQuery(context).each(function() {
       var elem = jQuery(this).get(0);
-      FB.XFBML.parse(elem);
+
+      try {
+        FB.XFBML.parse(elem);
+      }
+      catch (e) {
+        // It would be better to only run FB.XFBML.parse() when we know it's
+        // necessary to do so. Exceptions would then be valid.
+      }
     });
 
     FB_JS.showConnectedMarkup(Drupal.settings.fb.fbu, context);
