Title: will this plugin bring my facebook likes to https?
Last modified: August 30, 2016

---

# will this plugin bring my facebook likes to https?

 *  Resolved [TallSam](https://wordpress.org/support/users/tallsam/)
 * (@tallsam)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/)
 * I just got a ssl certificate and noticed my https urls have no facebook likes.
   Can this plugin help with that?
 * Thanks,
    Sam
 * [https://wordpress.org/plugins/really-simple-ssl/](https://wordpress.org/plugins/really-simple-ssl/)

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

 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793152)
 * There’s been a case where Google analytics only started registering hits on the
   new website after a redirect was set to https, which this plugin does. If the
   same applies to Facebook, you can fix it by installing this plugin. If you have
   a fix, please share it here.
 *  Thread Starter [TallSam](https://wordpress.org/support/users/tallsam/)
 * (@tallsam)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793162)
 * Hi Rogier,
 * Is there anything else I need to get my site running on SSL besides installing
   your plugin, or does your plugin take care of it all?
 * For instance, right now when I create a new posts, it gets a http permalink, 
   but I think I should be creating everything with https, right?
 * Thanks,
    Sam
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793178)
 * If you install Really Simple SSL, that will be taken care of. Your new links 
   will be https, and all your existing links will be changed to https dynamically.
 *  Thread Starter [TallSam](https://wordpress.org/support/users/tallsam/)
 * (@tallsam)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793179)
 * I tried installing it but get a server error 500.
 * What do you think has gone wrong?
 * Thanks,
    Sam
 *  Thread Starter [TallSam](https://wordpress.org/support/users/tallsam/)
 * (@tallsam)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793181)
 * I found the problem, I hadn’t told wordpress that my new url was https (wordpress
   wouldn’t let me). But now I changed that in my wp_config file like this:
 * define(‘WP_HOME’,’[https://tall.life&#8217](https://tall.life&#8217););
    define(‘
   WP_SITEURL’,’[https://tall.life&#8217](https://tall.life&#8217););
 * And your plugin works now, very nice.
 * One thing I’m noticing is that I get a green lock sign in the address bar for
   pages on my site, but not for the home page: [https://tall.life](https://tall.life).
   Similarly, it doesn’t show up when I first go onto my admin, but then when I 
   add a new post, for example, it does show up.
 * Any suggestions?
 * Thanks,
    Sam
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793185)
 * Normally the plugin would handle your siteurl, but perhaps wasn’t able to change
   it due to permissions.
 * As for your green lock, on your homepage you have used an image from another 
   domain:
 * [http://www.freetravelwebsitetemplates.com/images/shim_wordpress-org.gif](http://www.freetravelwebsitetemplates.com/images/shim_wordpress-org.gif)
 * Upload it to your own site, and the url can go over ssl. Then you will have your
   green lock.
 *  Thread Starter [TallSam](https://wordpress.org/support/users/tallsam/)
 * (@tallsam)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793190)
 * I see the error in chrome debugger. I can’t figure out where that image is getting
   added though or why it is only a problem on the home page. I tried a static landing
   page and still didn’t help… Must have something to do with my theme, travel blogger.
   Any clue how I can figure out where this image is coming from?
 * What about when I first go to my admin page? No green lock, but then when I go
   to another page in my admin, I get the green lock. Thoughts?
 * I did loose my facebook likes by the way, if you have any thoughts on how to 
   get these back, please let me know.
 * A very helpful plugin you’ve create, thanks!
    Sam
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793232)
 * I expect it is a setting somewhere in your theme. If you need troubleshooting
   services, please contact me directly on my website.
 *  Thread Starter [TallSam](https://wordpress.org/support/users/tallsam/)
 * (@tallsam)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793258)
 * Hi Rogier,
 * It was my theme style sheet that was calling on that image, and when I stopped
   that, I now get the green lock, how satisfying 🙂
 * As far as the facebook likes lost, do you have any thoughts on this? I guess 
   it’s because it is a different url, but I would have thought this problem would
   be common and thus there be a common solution…
 * On a side note, I have tried to save such kind folk as yourself time by searching
   to see if my question has already been answered, but I can’t seem to figure out
   how to search one specific plugins support rather than support for all plugins.
   Got the feeling I am missing something obvious… Any suggestions?
 * Thanks,
    Sam
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793261)
 * Great you fixed the url.
 * I don’t have any insights on the Facebook link issue, maybe Facebook has to change
   the way it views http/https urls to be able to keep likes.
 *  [Michael](https://wordpress.org/support/users/michaelhpdx/)
 * (@michaelhpdx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793418)
 * I have the same issue with FB Likes. Previously, FB likes for pages came from
   [http://](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/?output_format=md){
   url} on my site; now the plugin converts all of these references to http
    - s
 * ://{url} automatically. Normally that would be cool, but some of my pages have
   thousands of likes, and they are (in effect) being reset to zero. Not good.
 * Is there a way to exclude the rewriting for specific lines that include certain
   references? I know that may sound odd, but for any previously “liked” FB references
   that were originally http, FB is going to treat the new https: address as different.
 * For example, this iframe reference using the FB plugin like was coded originally
   as:
    `<iframe src="https://www.facebook.com/plugins/like.php?href=http://www.
   dalluva.com/shop/&layout=button_count&show_faces=false&width=100&action=like&
   colorscheme=light&font=arial&locale=en_US" frameborder="0" allowTransparency="
   true" style="border:none; overflow:hidden; width:100px; height:25px;"></iframe
   >`
 * But is now:
    `<iframe src="https://www.facebook.com/plugins/like.php?href=https://
   www.dalluva.com/shop/&layout=button_count&show_faces=false&width=100&action=like&
   colorscheme=light&font=arial&locale=en_US" frameborder="0" allowTransparency="
   true" style="border:none; overflow:hidden; width:100px; height:25px;"></iframe
   >`
 * Top one shows > 900 likes, bottom one is zero. :-(.
 * I don’t want to hack the code myself, but this is going to be a big issue for
   anyone moving their site to this plugin and losing all of the FB like count (
   which really matters to some customer bases) for their pages that were previously
   http:. And no, FB isn’t going to fix this (nor do they have any kind of support
   to ignore the http/https on a link address).
 * Thanks for any suggestions.
    Michael
 *  [Michael](https://wordpress.org/support/users/michaelhpdx/)
 * (@michaelhpdx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793419)
 * Okay, after looking into this for a bit, I’ve implemented a fix that ensures 
   my fblike links point to the original http: URL which Facebook has been accruing
   likes for.
 * In class-front-end.php, I added the following code just after line 132 (with 
   plugin version 2.2.12):
 *     ```
       // temporarily fix fblike problems by moving href link back to http:
           $buffer = str_replace ( "www.facebook.com/plugins/like.php?href=https:", "www.facebook.com/plugins/like.php?href=http:", $buffer );
       ```
   
 * This is clearly just a hack and I wouldn’t recommend it; however, it would be
   good if a configuration option could be added to the plugin to “not fix fblike
   links” embedded in a page. This is a problem not unique to my situation, as I’m
   sure most folks won’t want to have their FB like counts reset just because they
   moved the site entirely over from http to https.
 * Michael
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793420)
 * Your fix would work, but I don’t want to add options, to keep the plugin fast.
 * But your fix made me think of another approach: if the plugin only replaces ‘
   space’href=http://domain, instead of href://domain, your Facebook url wouldn’t
   be replaced. I have to think about it a bit more, but this might be a simple 
   fix without the need for options.
 *  Plugin Contributor [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793422)
 * To code this into the current version of the plugin, you could also use a filter:
 *     ```
       function my_custom_http_urls($arr) {
       //first, remove the default hyperlink from the replacement array
       $remove = "http://www.your-domain.com";
       if(($key = array_search($remove, $arr)) !== false) {   unset($arr[$key]); }
   
       //re-add the link, but now only for "[space]href="http://www.your-domain.com//this way, all your links will be replaced, but not the facebook one.
       array_push($arr, ' href="http://www.your-domain.com', );
   
       return $arr; }
       add_filter("rlrsssl_replace_url_args","my_custom_http_urls");
       ```
   

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

The topic ‘will this plugin bring my facebook likes to https?’ is closed to new 
replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/will-this-plugin-bring-my-facebook-likes-to-https/#post-6793422)
 * Status: resolved