Wrong Description on Facebook Share (7 posts)

  1. pichichi010
    Posted 4 years ago #


    Recently when yuo share my page on facebook the description shows part of the page's body; why is this happening

    here is my page


  2. Michael
    Forum Moderator
    Posted 4 years ago #

    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 http://pastebin.com/ and post the link to it here so someone can check it.

  3. pichichi010
    Posted 4 years ago #

    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.

  4. pichichi010
    Posted 4 years ago #

    <iframe src="http://pastebin.com/embed_iframe.php?i=w9RBpEvU" style="border:none;width:100%"></iframe>

  5. Michael
    Forum Moderator
    Posted 4 years ago #

    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.

  6. pichichi010
    Posted 4 years ago #

    Let me try it. I'll update

  7. pichichi010
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic