Title: http-https remover is messing up fb-sharing
Last modified: January 28, 2018

---

# http-https remover is messing up fb-sharing

 *  [geirarnesen](https://wordpress.org/support/users/geirarnesen/)
 * (@geirarnesen)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/http-https-remover-is-messing-up-fb-sharing/)
 * Excellent plugin.
    However the plugin is “messing up” the fb sharing functionality.
   The fb-sharing url in the Simplemag theme, – looks like this: [http://www.facebook.com/sharer.php?u=//www.abfotoklubb.no/kare-johansen-ble-arets-fotograf-for-2017/&t=K%C3%A5re%20Johansen%20ble%20%C3%A5rets%20fotograf%20for%202017](http://www.facebook.com/sharer.php?u=//www.abfotoklubb.no/kare-johansen-ble-arets-fotograf-for-2017/&t=K%C3%A5re%20Johansen%20ble%20%C3%A5rets%20fotograf%20for%202017)
   after subject to the http-https-remover. the u=// is invalid
 * by adding line:
    $buffer = str_replace(‘//www.facebook.com/sharer.php?u=//’.$
   _SERVER[‘HTTP_HOST’], ‘//www.facebook.com/sharer.php?u=https://’.$_SERVER[‘HTTP_HOST’],
   $buffer); on line three in the “replacement-logic”
 * I managed to get the plugin to work.

The topic ‘http-https remover is messing up fb-sharing’ is closed to new replies.

 * ![](https://ps.w.org/http-https-remover/assets/icon-256x256.jpg?rev=1515967)
 * [SSL Mixed Content Fix](https://wordpress.org/plugins/http-https-remover/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/http-https-remover/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/http-https-remover/)
 * [Active Topics](https://wordpress.org/support/plugin/http-https-remover/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/http-https-remover/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/http-https-remover/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [geirarnesen](https://wordpress.org/support/users/geirarnesen/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/http-https-remover-is-messing-up-fb-sharing/)
 * Status: not resolved