Closed zimnyd closed 7 years ago
humm interesting case. normally, when switching to httpS you redirect all traffic targetted to http to the new httpS. This because otherwise google will 'punish' you for having duplicate content.
So the likes on the http version will not increase (as Facebook will also be redirected)
You're right. I received a lot of likes on posts before I changed the domain to httpS. Now all likes goes to httpS page. So now I would like to be able to sum up old and new likes. Facebook have all information. All I need is grab them.
@zimnyd, I don't think we want to fetch share counts for both http
and https
urls out-of-box, but you could patch _loadCount method so it fetches counts for both urls.
Hi, following a discussion on my own forum for a user in a 'similar case' (not migrating from http to https, but migrating to different domain name) we found the following solution that might work for you as well:
it is in paragraph '2. Use the old page as the canonical URL for the new page'
https://developers.facebook.com/docs/sharing/webmasters/crawler/
Some time ago I added ssl protocol to the page. After this change all the likes are "0", That's normal, but I would like to get the sum of likes from the old "http: //" address and the new "https: //" Example for this address I have 1955 likes for http and 13 likes for https. I would like to display 1968.