Title: Facebook share count lost after migration to https
Last modified: September 1, 2016

---

# Facebook share count lost after migration to https

 *  [quantumsmoke](https://wordpress.org/support/users/quantumsmoke/)
 * (@quantumsmoke)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/facebook-share-cont-lost-after-migration-to-https/)
 * After migrating to https protocol, the Genesis Simple Share plugin lost the Facebook
   counts. I think it’s because of the way the sharrre php code in the plugin is
   prefixing the url.
 * In a previous support topic, Nick Cernis mentioned that the plugin pulls directly
   from the Facebook API which makes sense. The issue seems to be that Facebook 
   differentiates between http and https when searching for counts.
 * Examples:
    1. The old site url which used to show the correct FB counts is not
   working: Test url: `https://api.facebook.com/method/links.getStats?urls=http://
   finishyourthesis.com/thesis-writing-time&format=json`
 * Result: `[{"url":"http:\/\/finishyourthesis.com\/thesis-writing-time","normalized_url":"
   http:\/\/www.finishyourthesis.com\/thesis-writing-time","share_count":0,"like_count":
   0,"comment_count":0,"total_count":0,"click_count":0,"comments_fbid":null,"commentsbox_count":
   0}]`
 * 2. The same article with the newly prefixed https protocal doesn’t pull the counts
   either:
 * Test url: `https://api.facebook.com/method/links.getStats?urls=https://finishyourthesis.
   com/thesis-writing-time&format=json`
 * Result: `[{"url":"https:\/\/finishyourthesis.com\/thesis-writing-time","normalized_url":"
   https:\/\/www.finishyourthesis.com\/thesis-writing-time","share_count":0,"like_count":
   0,"comment_count":0,"total_count":0,"click_count":0,"comments_fbid":null,"commentsbox_count":
   0}]`
 * If however, the prefix is removed from the FB pull url, the counts show up:
 * Test: `https://api.facebook.com/method/links.getStats?urls=finishyourthesis.com/
   thesis-writing-time&format=json`
 * Result: `[{"url":"finishyourthesis.com\/thesis-writing-time","normalized_url":"
   http:\/\/www.finishyourthesis.com\/thesis-writing-time","share_count":1540,"like_count":
   2023,"comment_count":465,"total_count":4028,"click_count":0,"comments_fbid":null,"
   commentsbox_count":0}`
 * How can we get the plugin to pull the FB counts correctly with the new https 
   prefix?
 * Thanks in advance for any help.
 * [https://wordpress.org/plugins/genesis-simple-share/](https://wordpress.org/plugins/genesis-simple-share/)

Viewing 1 replies (of 1 total)

 *  [Nick C](https://wordpress.org/support/users/modernnerd/)
 * (@modernnerd)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/facebook-share-cont-lost-after-migration-to-https/#post-7612783)
 * Hi, quantumsmoke!
 * Thanks very much for this feedback. We have an [open issue](https://github.com/copyblogger/genesis-simple-share/issues/76)
   to count `https` and `http` links that are otherwise identical as one URL, but
   I can’t yet confirm if or when this might be added.
 * If you fancy modifying the source yourself or contributing a fix, counting multiple
   URLs likely requires one request for both URL variants, like this:
 * [https://api.facebook.com/method/links.getStats?urls=http://example.com,https://example.com&format=json](https://api.facebook.com/method/links.getStats?urls=http://example.com,https://example.com&format=json)
 * The response includes stats for each address: [http://d.pr/i/16lsl](http://d.pr/i/16lsl).
   That will give you the chance to combine a count for both, rather than getting
   the http/https stats only, or the http stats you saw from the protocol-less URL
   structure.

Viewing 1 replies (of 1 total)

The topic ‘Facebook share count lost after migration to https’ is closed to new 
replies.

 * ![](https://ps.w.org/genesis-simple-share/assets/icon.svg?rev=3358434)
 * [Genesis Simple Share](https://wordpress.org/plugins/genesis-simple-share/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-simple-share/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-simple-share/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-simple-share/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-simple-share/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-simple-share/reviews/)

## Tags

 * [Facebook Shares](https://wordpress.org/support/topic-tag/facebook-shares/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nick C](https://wordpress.org/support/users/modernnerd/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/facebook-share-cont-lost-after-migration-to-https/#post-7612783)
 * Status: not resolved