After enabled FBConnect module, the GMap module's google map maker does not show up.

After disabled FBConnect module, the GMap module's google map maker show up fine.

Is it the FBConnect Javascript has some problem, so the GMap javascript cannot run?

Comments

gweiner’s picture

We are having the same problem with this module stopping markers from rendering. The only ways we have fixed other FB problems caused by javascript errors is by targeting pages to load without the fb js file in our admin theme.

Miles Ulrich’s picture

Grabbing changes from the 6.x module seems to have fixed this problem on our site (as well as the breaking of other drag & drop functionality). The changes from 6.x are around the inclusion of FeatureLoader.js

In fbconnect.module:

function fbconnect_footer() {
  /* THIS IS THE OLD CODE
  if (!fbconnect_get_fbuid()) {
    return drupal_get_form('fbconnect_autoconnect_form');
  }
   */
  $fb_js_url = 'http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php';
  $footer = '<script type="text/javascript" src="'. $fb_js_url .'"></script>';
  // Display the autoconnect form.
  if (!fbconnect_get_fbuid()) {
    $footer .= drupal_get_form('fbconnect_autoconnect_form');
  }
  return $footer;
}

and...

function _fbconnect_render_js() {
  global $base_url;
  global $user;
  $url = drupal_to_js($base_url);
  // NO LONGER NEEDED: drupal_add_js(drupal_get_path('module', 'fbconnect') .'/js/FeatureLoader.js', 'module', 'footer');
  drupal_add_js(drupal_get_path('module', 'fbconnect') .'/js/fbconnect.js', 'module', 'footer');
vectoroc’s picture

Status: Active » Closed (fixed)