Viewing 6 replies - 1 through 6 (of 6 total)
  • there is no defined output for <meta property="og:description" content="" /> so facebook possibly grabs what it can find.

    have you edited the ‘fb og’ code by chad?

    you can paste the full code of that section into a https://pastebin.com/ and post the link to it here so someone can check it.

    Thread Starter pichichi010

    (@pichichi010)

    The whole deal of the website is for people click on the pictures and share them on facebook easy. a week ago, the site was only sharing the address.. now is grabbing that description.

    I saw that meta tag and deleted it from the header, but it stills catches that description when posting on facebook

    Ill post the current code.

    Thread Starter pichichi010

    (@pichichi010)

    <iframe src=”https://pastebin.com/embed_iframe.php?i=w9RBpEvU&#8221; style=”border:none;width:100%”></iframe>

    because your front page is a static page, you might need to add something to the code to fill a default og description in this case;

    example (first section only shown – keep the rest as it is):

    <?php if(is_single() || is_page()) { ?>
            <meta property="og:type" content="article" />
            <meta property="og:title" content="<?php single_post_title(''); ?>" />
    <?php if( is_front_page() ) { ?>
          <meta property="og:description" content="<?php bloginfo('description'); ?>" />
    <?php } ?>
            <meta property="og:url" content="<?php the_permalink(); ?>"/>
            <meta property="og:image" content="<?php if ( $thumb[0] == null ) { echo $default_img; } else { echo $thumb; } ?>" />

    or even replace
    <?php bloginfo('description'); ?>
    with a static text.

    Thread Starter pichichi010

    (@pichichi010)

    Let me try it. I’ll update

    Thread Starter pichichi010

    (@pichichi010)

    I changed it and it is the same, but I elieve it takes a while for facebook to catch the new updates, I just deleted the whole header and test the page out and shared the same.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wrong Description on Facebook Share’ is closed to new replies.