Title: OG URL problem for like count issue after HTTPS migration
Last modified: September 21, 2016

---

# OG URL problem for like count issue after HTTPS migration

 *  Resolved [rohitreubro](https://wordpress.org/support/users/rohitreubro/)
 * (@rohitreubro)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/og-url-problem-for-like-count-issue-after-https-migration/)
 * 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](https://wordpress.org/support/users/amboutwe/)
 * (@amboutwe)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/og-url-problem-for-like-count-issue-after-https-migration/#post-8208632)
 * You or your developer can use the `wpseo_opengraph_url` filter to customize this
   feature.
 *  Thread Starter [rohitreubro](https://wordpress.org/support/users/rohitreubro/)
 * (@rohitreubro)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/og-url-problem-for-like-count-issue-after-https-migration/#post-8209076)
 * 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](https://wordpress.org/support/users/donnytree/)
 * (@donnytree)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/og-url-problem-for-like-count-issue-after-https-migration/#post-8844927)
 * 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](https://wordpress.org/support/users/rohitreubro/)
   observed – but no others.
 *  Plugin Support [amboutwe](https://wordpress.org/support/users/amboutwe/)
 * (@amboutwe)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/og-url-problem-for-like-count-issue-after-https-migration/#post-8846320)
 * **[@donnytree](https://wordpress.org/support/users/donnytree/)** If you have 
   a similar issue, please [open a new request](https://wordpress.org/support/plugin/wordpress-seo#new-post).
   That way it’s easier to track issues and provide assistance. Thanks!
 *  [donnytree](https://wordpress.org/support/users/donnytree/)
 * (@donnytree)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/og-url-problem-for-like-count-issue-after-https-migration/#post-8849982)
 * 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.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [donnytree](https://wordpress.org/support/users/donnytree/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/og-url-problem-for-like-count-issue-after-https-migration/#post-8849982)
 * Status: resolved