I'm running my Drupal install at "http://localhost/playground6/". I've put that address into facebook's site URL for the app (screenshot). I've also entered the corresponding App ID into the modules settings page (screenshot).

The page is outputing code, but nothing is being displayed.
HTML Output (http://pastebin.com/Zajyfx0M).
Export of Like Box Preset (http://pastebin.com/mQ870Qnx).

I'm also not seeing any FB JS included in the page. My guess is that this is the culprit. I looked through the module and I should be getting ...all.js included (link) but that's not happening. The include for that file appears on lines 627 and 714 in fb_social.module.

Thoughts?

Comments

bryancasler’s picture

Issue summary: View changes

corrections

bryancasler’s picture

Issue summary: View changes

correction

bryancasler’s picture

Issue summary: View changes

added screenshots

bryancasler’s picture

Issue summary: View changes

more info

bryancasler’s picture

Category: support » bug
Priority: Normal » Critical

Since this is rending the module unusable, I am re-classifying it as Critical. After looking at it a bit more I also believe this to be a bug and no longer a mis-configuration issue.

samhassell’s picture

Status: Active » Closed (duplicate)

Hi animelion,

If you edit fb_social.module in fb_social_page_alter() and comment out

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

then the module will work correctly, albeit doing a bunch of stuff on pages that dont have fb_social plugins on them.

The real issue is that the global $_fb_script_init is not set.

This variable is set in fb_social_preprocess_fb_social_plugin(), which appears to be called AFTER the page_alter hook.

Anyway a non-contrib hacking workaround is to add a hook_init to one of your custom modules and set the variable there. The JS will load on every page then.

This is actually a duplicate of http://drupal.org/node/1431914, but feel free to reopen if you have any further trouble.

Cheers,
Sam.

bryancasler’s picture

Worked like a charm Sam. Thanks!

bryancasler’s picture

Issue summary: View changes

more info