• Resolved khizhnik

    (@khizhnik)


    I’m working on some site. We have 2 different languages served by WP Multilang and using TSF for SEO. Everething great but OpenGraph data wrong in Telegram & Skype link preview.

    Some how all site showing OG data in english (default language) and not in chosen language link.
    I have tested all social networks & messengers and problem only in this two.
    Any ideas how to fix this problem?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    Do the language links differ in only the query argument (e.g. ?lang=es instead of /lang/es/)? I suspect Telegram and Skype ignore this query argument and recall cached data from the untranslated link. However, they have no documentation on this (or link-sharing at all, actually).

    See if sharing a new page’s translated version before the non-translated version shows different results, proving this hypothesis. If so, you may want to change how translation-links are generated and report bugs with Skype and Telegram.

    If you have a link for me to inspect, I’ll gladly take a look.

    Thread Starter khizhnik

    (@khizhnik)

    Language urls are site.ru/ru/ for russian version and site.ru/ for english. Changing links to site.ru/?lang=ru not helped.

    Site link https://13chats.bkwar.ru

    New pages with only russian translations showing default title from settings in english.

    One thing that helped disable TSF for page and set og tags static for this page in functions.php but this is not a good answer.

    Thread Starter khizhnik

    (@khizhnik)

    If you need an access to the site admin area or ftp write me. I will send login details to you.
    Thanks for helping with this problem!

    Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    We’re not allowed to share (or ask for) login credentials here — nor will I accept them elsewhere, either. It’s a liability!

    In any case, could you try implementing this snippet?

    add_filter( 'wpm_alternate_links', function( $hreflangs, $url = '' ) {
    	unset( $hreflangs['x-default'] );
    	return $hreflangs;
    }, 10, 2 );

    There’s zero data available on why this behavior might be happening. Either your website is supernatural, or no one that maintains a multilingual site uses Skype or Telegram.

    The only ‘link’ to the English versions there’s available is that x-default one, which I recommended purging with the snippet — and I suspect it to be the culprit because WPM outputs that link everywhere… even on pages that don’t have an English version, so now the plugin has a known bug. That link is also entirely redundant.

    To close, I was not able to find any issue with TSF’s meta-outputting on the site. I firmly believe that this behavior should not be happening, and I recommend raising an issue with Skype and Telegram about it.

    Thread Starter khizhnik

    (@khizhnik)

    Hi!

    I’m tested snippet. Nothing has changed.
    rel=”alternate” hreflang=”x-default” was removed from source code but Skype & Telegram still show link preview in english.

    Also I disabled minify, changed - for – and no luck…

    Thread Starter khizhnik

    (@khizhnik)

    Hi @cybr !
    I fix problem with title & description.
    You were right. It was Telegram & Skype problem.
    Thanks for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘TSF wrong OG data in Telegram & Skype’ is closed to new replies.