• Hi, i have a site https://www.folk-estrada.hr, and in last time when i write a new post (like usually) when i wish share this post on Facebook, i dont have a photo thumbnail, just link of post … why? where is a problem? how i can fix it? Enybady know? Tnnx

Viewing 5 replies - 1 through 5 (of 5 total)
  • og:image is missing, I saw on Facebook Debugger.

    Add something like this in your header.php.

    <?php if (have_posts()):while(have_posts()):the_post(); endwhile; endif;?>
    <!-- Facebook Opengraph -->
    	<meta property="og:url" content="<?php the_permalink() ?>"/>
    <?php if (is_singular()) { ?>
    	<meta property="og:type" content="article" />
    	<meta property="og:title" content="<?php single_post_title(''); ?> - Folk Estrada" />
    	<meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?> Folk Estrada" />
    	<meta property="og:image" content="<?php $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large'); echo $thumb[0]; ?>" />
    <?php } else { ?>
    	<meta property="og:type" content="website" />
    	<meta property="og:site_name" content="Folk Estrada" />
    	<meta property="og:description" content="Folk Estrada" />
    	<meta property="og:image" content="<?php echo get_stylesheet_directory_uri(); ?>/images/folk-estrada.png" />
    <?php } ?>

    Pozdrav iz BiH.

    Thread Starter mixaelll16

    (@mixaelll16)

    hhh nadam se da ?e upaliti ?? TNX

    Thread Starter mixaelll16

    (@mixaelll16)

    its not help me … i try find problem with https://developers.facebook.com/tools/debug

    and it say ‘Error Parsing URL: Error parsing input URL, no data was scraped.’ ?

    I would suggest that you use a plugin for FB such as:

    https://www.ads-software.com/plugins/facebook/

    Or JetPack.

    I’m new to WordPress. I’m not sure if I have reached the correct place to post questions. I ran the Facebook Debugger Tool and not sure what it means. Please point me in the right direction if I have posted this question in the wrong place. Thank you.

    Errors That Must Be Fixed

    Meta Tags In Body Your page has meta tags in the body instead of the head. This may be because your HTML was malformed and they fell lower in the parse tree.
    Please fix this in order for the tags to be usable.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘NO thumbnails post at Facebook?’ is closed to new replies.