Support » Plugin: Facebook » How do I remove Facebook SDK from website footer?

Viewing 6 replies - 1 through 6 (of 6 total)
  • mattkelly


    Can you disable the other plugin?

    We’ll look into the best way of supporting this.

    Actually, I have it in a custom javascript that loads all social network scripts without hampering or blocking the page loading. This improves page speed dramatically. 🙂

    Hopefully, you will offer an option to exclude inserting the FB script. Until, then I will keep the plugin disabled and watch out for the update.

    Thanks for the awesome features in the plugin though… Great work! 🙂

    Plugin Author Niall Kennedy


    The Facebook JavaScript SDK is enqueued with the handle “fb-connect.” If your custom code references the same handle you should not have problems.

    If you are inserting this code directly through your theme and believe you’ve properly initialized the SDK you can remove fb_js_sdk_setup from the wp_head action.

    Thanks for your reply. I tried adding the following in my theme’s function file, but it is not removing the FB JS SDK.

    remove_action('wp_head', 'fb_js_sdk_setup');
    wp_deregister_script( 'fb-connect' );

    Please correct me if I am doing something wrong.

    Plugin Author Niall Kennedy


    You’ll want to remove the action after init but before wp_head, not during theme setup. Add a new function in your theme file and tie it to init with a priority of 11.

    Thanks Niall!

    I created the following function and it removed the FB JS SDK from my footer. 🙂

    function my_fbjs_unregister() {
      remove_action('wp_head', 'fb_js_sdk_setup');
    add_action( 'init', 'my_fbjs_unregister', 11 );
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I remove Facebook SDK from website footer?’ is closed to new replies.