Hi All,

waiting for this new feature: http://drupal.org/node/1413544 (site-wide universal LIKE box).

As a workaround, in the meantime, I resolved creating a simple standard Drupal block, and put inside the default Facebook "like" code:
<div class="fb-like" data-href="http://www.my-site.it" data-send="true" data-width="600" data-show-faces="false" data-action="recommend"></div>

I activate this block in all my site, positioning it in the header region.

The problem is that this block appear only in node pages, where another "like" button created with this module is present.

Is there a way to activate this module facebook js on EVERY PAGE? This way my block will be visible always.

At the moment I resolved removing the following lines from this module fb_social_page_alter function:

// If their is no fb plugin enabled on this page, do not load fb script then
  /*
  if (! $_fb_script_init) {
    return;
  }
  */

but please suggest me a more clean solution

Thank you!

MXT

Comments

mxt’s picture

I think a more elegant solutions is to initialize the $_fb_script_init variable in all my site using a custom module with a hook_init() implementation:

function mymodule_init() {
  global $_fb_script_init;
  $_fb_script_init = TRUE;
}

Do you think this can be a good solutions?

thank you very much

Zeotyn’s picture

Version: 7.x-2.0-beta4 » 7.x-2.x-dev

Hi,

i have the same problem and i didnt find a solution for this. Can somebody help me to fix it?

LG