WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Facebook Comments Email Notify
FB is not defined (3 posts)

  1. joshuaadrian
    Member
    Posted 1 year ago #

    Getting this error and not sure why 'FB is not defined'. I'm using the Facebook Comments plugin and everything is working.

    Here is a link to the site livingaveda.com

    http://wordpress.org/extend/plugins/ultimate-facebook-comments-email-notify/

  2. joshuaadrian
    Member
    Posted 1 year ago #

    But none of the notifications from this plugin are triggering

  3. GreatBlakes
    Member
    Posted 7 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic