Title: Feature Request: Option to use https vs http in og:url
Last modified: August 31, 2016

---

# Feature Request: Option to use https vs http in og:url

 *  [davide101](https://wordpress.org/support/users/davide101/)
 * (@davide101)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/feature-request-option-to-use-https-vs-http-in-ogurl/)
 * First, thank you for the fantastic plugin!
 * We switched on SSL last year. In order to keep all of our old likes and share
   count consistent, we forked the plugin and set it to continue to use http:// 
   for the og:url field rather than the [https://](https://wordpress.org/support/topic/feature-request-option-to-use-https-vs-http-in-ogurl/?output_format=md).
   This has enabled us to keep our share counts accurate for all of our posts.
 * I imagine as more sites switch to SSL, they will encounter this issue. It would
   be awesome if you could help provide a solution, especially for those who aren’t
   comfortable with coding as our team is.
 * My proposal is to have a setting that allows you to actively select either http://
   or https:// for the Facebook URLs rather than using the permalink.
 * You can read more about this issue here:
    [http://stackoverflow.com/questions/10543089/having-facebook-likes-accumulate-over-https-and-http](http://stackoverflow.com/questions/10543089/having-facebook-likes-accumulate-over-https-and-http)
 * Thanks for your consideration and for sharing this plugin with the public!
 * [https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/](https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/)

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

 *  [Tobias Jordans](https://wordpress.org/support/users/tobias/)
 * (@tobias)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/feature-request-option-to-use-https-vs-http-in-ogurl/#post-7308899)
 * I have the same issue. The plugin seems to not respect the URL that was configured
   in wordpress (which includes https) but instead it only uses http.
 * I worked around it by removing the og:url so FB uses the current url, which is
   OK but not the the proper way …
 * Unfortunatelly I dont see a clear error in the code. Line 256:
 *     ```
       $fb_url=((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];  //Not really canonical but will work for now
       ```
   
 * In my wp-config I say
 *     ```
       // https://managewp.com/wordpress-ssl-settings-and-how-to-resolve-mixed-content-warnings
       define('FORCE_SSL_ADMIN', true);
   
       // http://wordpress.org/support/topic/force-ssl-admin-has-a-redirect-loop?replies=4
       if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
         $_SERVER['HTTPS']='on';
       ```
   
 * So the code by the plugin should be “on”, so it should be https =(.
 *  Thread Starter [davide101](https://wordpress.org/support/users/davide101/)
 * (@davide101)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/feature-request-option-to-use-https-vs-http-in-ogurl/#post-7308903)
 * Hi Tobias, I believe I’m having the opposite issue (at least when I forked it
   6 months ago). The plugin is respecting my website’s use of https:// whereas 
   I want it to use http:// instead.
 *  [Tobias Jordans](https://wordpress.org/support/users/tobias/)
 * (@tobias)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/feature-request-option-to-use-https-vs-http-in-ogurl/#post-7308961)
 * I found the problem for my issue:
 * I run a wordpress multisite and switched to httpS a few month ago. Via the network
   administration I can change some of the urls like the wp_options.home to https,
   but not the wp_options.site_url or wp_options.fileupload_url (this one might 
   be unused/depricated anyways).
 * I changed all those URLs inside the DB directly (to httpS). Afterwards the plugin
   worked correctly.
 * Tobias

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

The topic ‘Feature Request: Option to use https vs http in og:url’ is closed to 
new replies.

 * ![](https://ps.w.org/wonderm00ns-simple-facebook-open-graph-tags/assets/icon-
   256x256.gif?rev=2891184)
 * [Open Graph and Twitter Card Tags](https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/)
 * [Active Topics](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Jordans](https://wordpress.org/support/users/tobias/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/feature-request-option-to-use-https-vs-http-in-ogurl/#post-7308961)
 * Status: not resolved