I switch from http
to https
two months ago, and now lost all my 'Likes'.
Even when I use facebook debug tool it now has the same count between the http://
and https://
Anyone knows whether it is a facebook bug? or is there a workaround solution to retrieve my old 'Like' count?
Typically Facebook likes are linked to a URL. Even a single character change will lose Facebook likes.
Here is a link on Facebook
https://developers.facebook.com/docs/plugins/faqs#moving-urls
Go to the bottom of the page and find this section How do I move a page to a different URL? - can I migrate the number of likes to the new page location?
<meta property="og:url" content="https://example.com/old-url" />
You will need to instruct the facebook crawler to re-scrape your url for the changes to take effect:
https://developers.facebook.com/tools/debug/sharing
That should be a solution to your problem.
The steps that should be followed in order not to lose Facebook likes when migrating HTTP to HTTPS are:
1. Use 301 Redirect on web page for HTTP to HTTPS.
2. Add og:url tag on the HEAD section for http://www.example.com
<meta property="og:url" content="http://www.example.com" />
3. Modify Facebook code to count HTTPS likes on page:
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.example.com&width&layout=box_count&action=like&show_faces=false&share=true&height=65" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
or
<div class="fb-like" data-href="https://www.example.com" data-layout="standard"
data-action="like" data-show-faces="true"</div>
4. Go to Sharing Debugger on Facebook website.
You must be log on Facebook in order to use it.
Enter https://www.example.com and press Debug button.
5. If no other likes are on the HTTPS version of the page, the following info appears:
Press Fetch new information button.
6. If by any chance there are any likes for the HTTPS version of the page or the Facebook crawler already visited your page, the following info appears:
Press Scrape Again button.
7. Refresh your web page and the Facebook likes should be present.
More information about how the Facebook crawler works can be found at:
https://developers.facebook.com/docs/sharing/webmasters/crawler
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With