WordPress.org

Support

Support » Plugins and Hacks » FB is not defined

FB is not defined

Viewing 2 replies - 1 through 2 (of 2 total)
  • But none of the notifications from this plugin are triggering

    I’m having the same problem. What is happening is you are loading the Facebook SDK asynchronously (which is the proper way), but this plugin is calling it before it initializes.

    The quick and dirty fix would be to go into the plugin and edit ultimate-facebook-comments-email-notify.php and on line 81 (inside that <script> opening, add the code:

    setTimeout(function(){

    and then right before the </script> around line 118 add the code:

    }, 3000);

    Basically this delays the load of this FB call by 3 seconds which is plenty of time for the asynch FB to init. It is not a good way to fix it, but will stop the JS error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘FB is not defined’ is closed to new replies.