Topic-icon Best practice to migrate Facebook Likes from http:// to https://

Active Subscriptions:

None
8 years 8 months ago - 8 years 8 months ago #62711 by rzorn
Hello,

On the https site I know I can add a shortcode
{SCOpenGraph url=http://example.com/some-page-path}
and this fills the
<meta og:url >
with the http address. Then using the Scraping Console I can update and regain the likes as documented on Stack .

Is there a better (and possibly easier than handling each page manually) way?
Last edit: 8 years 8 months ago by rzorn.
The topic has been locked.
Support Specialist
Generally, you shouldn't need to handle each page manually. JFBConnect will automatically add the og:url tag to each page, and there's quite a bit of work to make sure that the same URL is used across all the various ways that Joomla can create URLs to the page. The biggest issue here is that Facebook thinks each URL is unique, which means your Like count *could* be spread across many different URLs for the same page. JFBConnect tries to canonicalize on one URL. There are times when this isn't exactly the URL you want, but it's usually good enough and prevents links to the same article using a menu item or a blog view or other ways that generate different URLs to share the same.

So, with that said, you really shouldn't need to set the og:url tag unless you're moving content around and knowingly changing the URL structure. In that case, you do need to do it manually, which is why we give the ability to do so. You shouldn't need to do that on every page of your site though.

I hope that helps explain, but if you feel you have to be setting it for all pages, let us know the reason and we can help provide some better ideas if possible.

Thanks,
Alex
The topic has been locked.
Support Specialist
Oh.. actually, I just read the title. I apologize for missing your purpose.

There's a setting in the JFBConnect -> Configuration for "Force Scheme". Set that to https and it will automatically update all the og:url's to have https :) The note above about splitting your like's still applies.. old likes on the http URLs will remain there and new likes will be for the https URL. That's how Facebook does it and we have no control.

Thanks,
Alex
The topic has been locked.