No bug Sharing articles to social media displays incorrect information

  • Raoul Alderse Baas
  • Onderwerp Auteur
  • Offline
Meer
1 jaar 1 maand geleden - 1 jaar 1 maand geleden #2458 door Raoul Alderse Baas
Dear Support,

On 2 of our client's websites we've run into the issue that while sharing an article to social media, the wrong information is collected. And after looking into the source code I can see that the opengraph info embedded into the article is different from the one shown by the social media: (See attachments for reference).

How can we resolve this issue?

Here is the url of the page in question:
kunstmetlars.nl/?view=article&id=361:wor...r-waarneming&catid=2

Kind regards,
Damian de Geus


 

 
 
Laatst bewerkt 1 jaar 1 maand geleden doorRaoul Alderse Baas.

Graag Inloggen deelnemen aan het gesprek.

Meer
1 jaar 1 maand geleden - 1 jaar 1 maand geleden #2459 door Ruud van Lent
Hi Raoul,

So this is what happens (from the facebook share debugger):
  1. This is the URL you are sharing to facebook
  2. facebook visits that URL and finds a Canonical URL that is different from the shared URL
  3. So facebook redirets to this canoncal URL (as that is what the canonical URL does; it sets the correct URL for search engines and social media to avoid having multiple URL's pointing to the same content
  4. and last facebook get the og: tags from that redirected to URL (which in this case is the home page)

So it works 'perfect' correct.
Issue here is in your URL's > as you can see there is an issue in your menu structure what is used to build the SEF URL > your URL consists of non-SEF parts (like catid, articleid, etc.)
 
Laatst bewerkt 1 jaar 1 maand geleden doorRuud van Lent.

Graag Inloggen deelnemen aan het gesprek.