Moving from Http to Https lost my Facebook likes

Posted in: Newspaper
Post count: 23

Hello,

I added an SSL certificate to my website and the url change wiped all of my FB likes. Can you please tell me how I would indicate a canonical url within the theme.

Here are the FB developer instructions I found – https://developers.facebook.com/docs/plugins/faqs#moving-urls

Post count: 23

Here’s the instructions from Facebook, but I have no idea where in the theme to input it. Please help!

Add an og:url tag to the new URL which points at the old URL (Preferred)
In your new URL, you should include a link to the old URL. For example, if your new URL was https://example.com/new-url, and the old URL was https://example.com/old-url, you should include this snippet in the new-url:

<meta property=”og:url” content=”https://example.com/old-url&#8221; />
Using this method tells the crawler that the canonical URL is at the old location, and it will use that to generate the number of likes and shares on the page. Any new likes and shares will continue to aggregate on the old URL as well.

This also requires that the old URL still renders a document with Open Graph tags and returns a HTTP 200 response, at least when loaded by Facebook’s crawler. If you want other clients to redirect when they visit the URL, you must send your 301 HTTP response to all non-Facebook crawler clients. The old URL should contain its own og:url tag that points to itself.

You can learn how to recognize Facebook’s crawler in our Sharing Best Practices Guide.

This method will work with rel=canonical as well, but og:url is preferred.

Redirect Facebook’s crawler to the old URL
Another method to accomplish this is to redirect Facebook’s crawler to the old URL any time it visits the new URL. As with the method described above, the old URL must be a valid document with Open Graph headers. And if you want to include a redirect at the old URL, Facebook’s crawler must not redirect when it visits the old URL.

Post count: 20688

Hi,

Meta’s can be entered in the theme header file if you would like to try that, between the head tags
https://www.screencast.com/t/6o06m6du
I vaguely remember other users who lost the likes after changing the website URL, they were unsuccessful. Maybe you can follow that guide and achieve it. Or maybe something like this
https://really-simple-ssl.com/knowledge-base/how-to-recover-facebook-likes-after-moving-to-httpsssl/

Thanks

Post count: 23

I uploaded the plugin and it’s working great. However, now when I try to share posts on Facebook it doesn’t fetch the preview picture or preview text. I only get something that looks like this.

https://www.screencast.com/t/qEAPSPCRIl

Any idea why?

Post count: 23

It does, however, fetch previews for posts that I created before I installed the plugin

Post count: 23
Post count: 20688

It seems that for this post Facebook sees the needed meta
https://www.screencast.com/t/sOfVZFHbDG
For the other one it does not – https://www.screencast.com/t/KqgXOPyWz
Also when Facebook tries to scan the page it fails
https://www.screencast.com/t/MtxPkPiGfKaf
That means that no meta tags will be picked up. You can test for yourself with the tool
https://developers.facebook.com/tools/debug/og/object/

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.