Viewing 9 replies - 16 through 24 (of 24 total)
  • If you don’t want to use that plug-in above like me you can just edit your themes header.php file below the <header>..

    <?php
    if ( has_post_thumbnail())
         {
         $fb_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
    }
    ?>
    <meta property="og:image" content="<?php echo $fb_image[0];?>" />

    scanning your url here tells facebook to update the catch!

    Thanks for trying to help everybody.Ive bought the PRO version of SSBA but hasnt fixed this.

    Coolbandit, the above code doesn’t work unfortunately. Thanks for trying. I believe its because Im using another plugin called WP eStore whereby my images in the gallery become 150×150. I was reading on Facebook you need in excess of 200×200 which may be why this aint working, I have tried adding a big version of my post image but thats not ideal and not in accordance with my website design. Inpracticle.

    kphebus, I have tried installing the above but still no go. Shows the same picture. WHat do you mean assigning images fixes it? Do I need to do that for each individual post? Some instructions would be great.

    Does the plugin author have any idea? Really need to get to the bottom of this

    blackwolfman, what is the problem exactly? Does it share the wrong image? No image? If you put the url in the scraper here Do you get any errors? what is showing up under the OG image? I am no expert but I did manage to get it working for my site so maybe I can help.

    Blackwolfman I may have a solution to your problem. you can upload two images and add a css class for the bigger image that you don’t want to be visible and facebook scraperwill still see it.
    .fb_image
    {
    visibility:hidden;
    display:none;
    }
    I tested this and facebook found the image after i scraped the page twice. you could probably get away with just using display:none; and not visibility:hidden; It is not the best solution but it is a solution. I am not sure if the image is still being downloaded through the broswer of the page when this is set or not but either way one extra image shouldn’t be to bad.

    Another untested not as good of an idea I had would be to use a .png image with transparency to make up the difference in size you need. This is not really a good idea, just brainstorming.

    One last thing.. couldn’t you just use the bigger 200x200px image and resize it for the page using the mage width and height attribute?

    <img src='https://Acrossfrommarty.com/acrossfrommarty/images/Nintendo/nintendo.png' width='400px' height='280'>

    You can edit the height and width attributes to anything you like. Ideally you want them to be similar to the original image size. Bigger could look distorted and smaller is wasting banwidth. In your case it would not be wasting. Those are my ideas.

    also it my code in post 17 of this page, it looks like there is a space where there shouldn’t be one. Sorry about that but I don’t think it matters but :

    if ( has_post_thumbnail())

    should be

    if (has_post_thumbnail())
    `

    Hi everyone,
    I’m using travlify theme which allows me to choose a special image for each post to be showed but FB is not getting it! It’s not showing the right image when sharing!

    I also tried the FB debugging tool, and so far in the preview before posting it shows any random picture of the articule, not even the one I set up in my post as the Highlighted Image. And worse, when finally posting on FB It shows the image of the Header of my Website!!!
    You can check: https://rutasdanzantes.com/2015/02/viajar-de-mochilera-yo-sola/

    Can anyone explain please the steps of how I should proceed to fix this?
    How to use Facebook Open Graph, Google+ and Twitter Card tags plugin?

    thank you!!

    Hello Again,
    I just set up an image for my post using the “Facebook Open Graph, Google+ and Twitter Card tags” plugin, but now Facebook shows the first image included in my post, not the one that I specified in the “Facebook Open Graph, Google+ and Twitter Card tags” field. Can anyone tell me why this could be?

    many thanks!!

    It gives me this error:

    Error: Facebook Open Graph Tags cache NOT updated/purged.
    Facebook returned: Object at URL ‘https://rutasdanzantes.com/2015/02/viajar-de-mochilera-yo-sola/&#8217; of type ‘article’ is invalid because it specifies multiple ‘og:url’ values: https://rutasdanzantes.com/2015/02/viajar-de-mochilera-yo-sola/, https://rutasdanzantes.com/2015/02/viajar-de-mochilera-yo-sola/.

    Any one else with same problem?
    Any help?

    I had that issue when I had the jetpack plugin activated on my site. Jetpack somewhere creates its own OG tags. I just deactivated it because I didn’t use it. If you are using it maybe you can just deactivate that part of the plugin. This could possibly be your problem. If not maybe the problem is originating with a different plugin.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Facebook not showing the right image’ is closed to new replies.