Title: Serving Social Media JSs through HTTPS
Last modified: August 31, 2016

---

# Serving Social Media JSs through HTTPS

 *  Resolved [viperouge](https://wordpress.org/support/users/viperouge/)
 * (@viperouge)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/serving-social-media-jss-through-https/)
 * Hi There,
 * I recently added SSL to my website and I get the Mixed Content error from the
   Javascripts that come from NGFB plugin.
 * here’s a link to a page on my website: [https://www.getyuve.com/blog/mocha-protein-frappuccino-smoothie/](https://www.getyuve.com/blog/mocha-protein-frappuccino-smoothie/)
 * The following files should be served over HTTPS:
    sdk.js widgets.js pinit.js
 * Is there any way to change the urls so that it is served through HTTPS?
 * Thanks !
 * [https://wordpress.org/plugins/nextgen-facebook/](https://wordpress.org/plugins/nextgen-facebook/)

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

 *  Plugin Author [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/serving-social-media-jss-through-https/#post-6964380)
 * When using HTTPS, the following URLs should be HTTPS as well:
 *     ```
       <!-- ngfb header javascript begin -->
       <script type="text/javascript" id="fb-script-header">ngfb_insert_js( "fb-script-header", "http://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3&appId=1447903715506854" );</script>
       <script type="text/javascript" id="twitter-script-header">ngfb_insert_js( "twitter-script-header", "http://platform.twitter.com/widgets.js" );</script>
       <!-- ngfb header javascript end -->
       ```
   
 * Are you using a caching plugin? If so, try disabling it and see if those URLs
   correct themselves. If they do, then perhaps your caching plugin does not take
   into account HTTP vs HTTPS.
 * NGFB checks the `$_SERVER['HTTPS']` variable to know if HTTPS is being used or
   not. As far as I know, this variable is supported by all web servers.
 * js.
 *  Plugin Author [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/serving-social-media-jss-through-https/#post-6964525)
 * Any progress on this?
 * js.
 *  Thread Starter [viperouge](https://wordpress.org/support/users/viperouge/)
 * (@viperouge)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/serving-social-media-jss-through-https/#post-6964528)
 * Thank you for your answer.
 * It must be the caching (I use W3 total cache), however I wasn’t able to fix it
   by tweaking the cache plugin settings.. I’m still trying to figure it out 🙂
 *  Plugin Author [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/serving-social-media-jss-through-https/#post-6964546)
 * Ah – that would explain it – W3TC is the only plugin I know with consistent bugs
   in it’s handing of the WP object cache, webpage fragment cache, etc., etc., etc.
   If you’re using the “fragment cache” feature, try turning it off.
 * js.
 *  Thread Starter [viperouge](https://wordpress.org/support/users/viperouge/)
 * (@viperouge)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/serving-social-media-jss-through-https/#post-6964548)
 * Thanks for the followup!
    I just checked and I think I do not have fragment cache
   active.
 * Any other ideas? 🙂
 *  Plugin Author [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/serving-social-media-jss-through-https/#post-6964549)
 * Disable W3TC and see if that fixes the issue.
 * js.

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

The topic ‘Serving Social Media JSs through HTTPS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-facebook_f2c17e.svg)
 * [NextGEN Facebook](https://wordpress.org/plugins/nextgen-facebook/)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-facebook/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-facebook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-facebook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-facebook/reviews/)

## Tags

 * [js](https://wordpress.org/support/topic-tag/js/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 6 replies
 * 2 participants
 * Last reply from: [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/serving-social-media-jss-through-https/#post-6964549)
 * Status: resolved