By John on Thursday, 31 January 2019
Posted in Technical Issues
Replies 3
Likes 0
Views 665
Votes 0
Greetings, recently we upgraded to https. Since the upgrade, Facebook likes are gone. I've done some research online and the solution is to change og:url back to the http, along with some other steps ( see here: https://developers.facebook.com/docs/plugins/faqs#moving-urls ).

I tried to find some related option in the EasyBlog -> Settings -> Social Integration but there is nothing there. Is there any method to help me get back the likes of the EasyBlog posts?
Currently we do not have handle this to load old URL from the og:url opengraph tag.

Can you try edit this file and apply this following code and see how it goes. JoomlaFolder/administrator/components/com_easyblog/includes/facebook/facebook.php

[gist type="php"]
if (stristr($url, 'https:') != false) {
$url = str_replace('https://', 'http://', $url);
}
[/gist]

You can check my attached screenshot below which line you need to put the code.
·
Thursday, 31 January 2019 10:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you. This piece of code seems to work. It does convert the og:url to http, but there are more steps to be done before the likes are back. I am currently working on that, and will come back to let you know how it goes.
·
Friday, 01 February 2019 23:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey John,

Thanks for updating us on this. Do keep us updated on this as we are curious as to what other solutions are there for sites who want to switch from http to https
·
Saturday, 02 February 2019 00:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post