25 sij.

Kako sačuvati FB likes nakon migracije na novu domenu

https://searchenginewatch.com/sew/how-to/2172926/maintain-social-shares-site-migration

https://developers.facebook.com/docs/plugins/like-button

Možda i ovo dobro dođe:

Setting the URL,Title, & Image to Share

Ovo treba isprobati

http://www.brihaspatitech.com/blog/how-to-retain-facebook-likes-after-change-in-domain/

Ovdje fejsbukovci nešto o tome kažu

https://developers.facebook.com/docs/sharing/webmasters/crawler

Migrating Content/Updating URLs

If you migrate your content from one URL to another, likes and shares won’t automatically migrate. You can retain like and share counts with these two steps:

1. Exempt the Facebook crawler from your HTTP redirect

Use an HTTP 301 or 302 redirect to send people to the new URL when they visit the old URL.

The crawler still needs to be able to access the old page, so exempt the crawler’s user agent from the redirect and only send an HTTP redirect to non-Facebook crawler clients.

The HTML of the old URL should still contain Open Graph tags (including an og:url tag pointing to itself) and return an HTTP 200 response when the crawler loads it.

2. Use the old page as the canonical URL for the new page

Add this tag to the HTML of the new URL:

/ meta property=”og:url” content=”https://example.com/old-url” //

This tells our crawler that the canonical URL is at the old location, and the crawler will use it to generate the number of Likes on the page. New likes at either location will aggregate in both places.

https://searchenginewatch.com/sew/how-to/2172926/maintain-social-shares-site-migration

Odgovori

Vaša adresa e-pošte neće biti objavljena. Nužna polja su označena s *