• Resolved rohitreubro

    (@rohitreubro)


    I am using SEO plugin for my site and earlier it was working fine, but few days ago My facebook like count is displaying zero after migrating our site from HTTP to https .
    We have discussed about this to Facebook team and they told to change OG : URL as old url then we have tried To change og : url from plugin setting in wp admin but it was not working.

    After that we have checked your Plugin core files section(class-opengraph.php) and found OG:URL is coming as our current page url. so bydefault current page url will be started with HTTPS

    So can you please help me how we can change our OG:URL from “HTTPS” to “HTTP”

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support amboutwe

    (@amboutwe)

    You or your developer can use the wpseo_opengraph_url filter to customize this feature.

    Thread Starter rohitreubro

    (@rohitreubro)

    Hi , as we told yesterday we have already got the code like : $url = apply_filters( ‘wpseo_opengraph_url’, WPSEO_Frontend::get_instance()->canonical( false ) );
    from plugin file class-opengraph.php .Since our ise migrated to https we have to replace https with http to keep old og:url for getting all previous like counts .So now we had simply given a code like $url = apply_filters( ‘wpseo_opengraph_url’, WPSEO_Frontend::get_instance()->canonical( false ) );
    $url = str_replace(“https”,”http”,$url);.

    Fortunately this solved the current problem upto 95%.Because now when we take the blog page its og url is old one .But could you please ensure this will remain there after plugin updation?Do you have any suggestion to keep this replace code even after plugin updations ?Becasue this is simply a php function which may lost after your plugin modifications..Kindly reply

    One more thing :Evnthough we have changed back to old og:url ,the like count will give old correct data only if we clicked on it atleast once .So if you know any other solution kindly help us

    donnytree

    (@donnytree)

    I did the same customization and my likes are not showing up again, it worked for the first post – after I re-liked it as @rohitreubro observed – but no others.

    Plugin Support amboutwe

    (@amboutwe)

    @donnytree If you have a similar issue, please open a new request. That way it’s easier to track issues and provide assistance. Thanks!

    donnytree

    (@donnytree)

    Hi, sorry if I confused, I have the same question. Is there anyway to update the likes without having to click on every single one, e.g. “One more thing :Evnthough we have changed back to old og:url ,the like count will give old correct data only if we clicked on it atleast once .So if you know any other solution kindly help us”

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘OG URL problem for like count issue after HTTPS migration’ is closed to new replies.