Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15163

    Hi guys,

    we are using Shoutbox for the Company Website but some images are not being sent to facebook once we share a post.

    business-bestseller.com is the page. The posts you can reach in the tabbed content > magazin are not getting an image on facebook. but the abstracts custom post type does get an image.

    By any means, I know how people can demand too much since I am a support staff myself for other tf authors – but I am stuck on this one. If anybody knows a possible solution I would be thankful!

    I tried plugins and I tried adding this portion manually to the head: http://pastie.org/4433288 but while the output is correct it does not seem to work on fb :/

    Thanks for anything you can do for me!

    All the best,

    Mel

    #86486

    Hi Mel,

    I briefly looked at your code and I think the problem is that there are multiple conflicting directives as well as invalid meta syntax in some of them that could be confusing Facebook. Below is what is on a single page,

    <meta name=”googlebot” content=”index,noarchive,follow,noodp” />

    <meta name=”robots” content=”all,index,follow” />

    <meta name=”msnbot” content=”all,index,follow” />

    <meta name=”robots” content=”index, follow” />

    <meta name=’robots’ content=’noindex,nofollow’ />

    Msn and google will read regular robots meta tags as well, and the last directive is to not index and not follow any links on the page. I am not sure how Facebook spider handles such issues, whether they ignore everything after the first or ignore all before last. Google is a much bigger issue with the code below than facebook. I have a feeling that the SEO features in multiple plugins are activated. Please try to use only one.

    1) Take a look here. https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.business-bestseller.com%2Fmagazin%2Feine-zerbrochene-gitarre-oder-die-macht-des-kunden-im-internetzeitalter%2F%23.UCUU-E3iZEI (i entered your url) and you will see what the error is (see step 2 below),.. you can also enter the url in the textbox on top of page and compare the pages which send images to facebook vs. pages that don’t send. (everything in red is an error on that page)

    2) See the proper format (please pay attention to single , double quotes and link format hxxp://www.one.com/image.jpg (good) (invalid) when used inside a meta tag.

    3) Please see here as to how facebook wants your tags to look like (ignore the first HTML tag, your’s is correct as is -> <html dir=”ltr” lang=”de-DE”>) it does not apply to html5. this is a very important page and should be understood in order to get the most out of facebook. (https://developers.facebook.com/docs/opengraphprotocol/)

    <meta property="og:image" content="<img width="620" height="200" src="http://www.business-bestseller.com/wp-content/uploads/2012/07/Dave-Carroll.jpg" class="attachment-page wp-post-image" alt="Dave-Carroll" title="Dave-Carroll" />"/>
    <link rel="image_src" href="<img width="620" height="200" src="http://www.business-bestseller.com/wp-content/uploads/2012/07/Dave-Carroll.jpg" class="attachment-page wp-post-image" alt="Dave-Carroll" title="Dave-Carroll" />" / >

    The above is completely invalid.

    This below should work, and needs to be modified to reflect the business logic and structure of your website.

    <meta property="fb:admins" content="00000000"/>
    <meta property="og:type" content="<?php if (is_single() || is_page()) { echo "article"; } else { echo "website";} ?>" />
    <meta property="og:url" content="<?php the_permalink(); ?>"/>
    <meta property="og:site_name" content="<?php bloginfo('name'); ?>"/>
    <?php if ( (is_home()) || (is_front_page()) ) { ?>
    <meta property="og:description" content="Blue Peak Digital build effective web presences for political campaigns, organizations, and companies."/>
    <?php } elseif (is_single() || is_page() ) { ?>
    <meta property="og:description" content="<?php the_excerpt_rss(); ?>" />
    <?php } ?>
    <?php } if (is_single() ) { ?>
    <meta property="og:image" content="<?php echo wp_get_attachment_thumb_url( get_post_thumbnail_id( $post->ID ) ) ?>" />
    <?php else { ?>
    <meta property="og:image" content="<?php bloginfo('template_url'); ?>/images/fbpreviewimage.png" />
    <?php } ?>

    Good Luck,

    Nick

    #86487

    Nick,

    thank you a thousand times for the amount of thought and time you put into my request and for going deeper into my mess. Everything works perfectly now!

    Kriesi sure has awesome staff!

    Here, take this beautiful Panda-Coffee as my sign of gratefulness:

    gourmet-coffee-foam-3.jpg

    Cheers!

    Mel

    #86488

    Hi Mel,

    I will tag your response for Nick so he too can appreciate the beautiful Panda coffee :)

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Sharing on Facebook does not fetch image’ is closed to new replies.