Displaying an image instead of two using og:image

Asked

Viewed 556 times

2

I’m using tags og: Open Graph to have a snippet customized when my website link is shared, but when I paste the link to compartilhar me is given an option of images to be inserted (via selection arrows) but created only one tag <meta property="og:image" content=""> was to display only one image (the one I defined).

HTML code of the Open Graph tags.

        <meta property="og:title" content="Titulo site">
        <meta property="og:description" content="Descrição">
        <meta property="og:url" content="url">
        <meta property="og:image" content="imagem">
        <meta property="og:type" content="website">
        <meta property="og:site_name" content="Site name">

Snippets with two images (I want with only one, uncle-sam’s) inserir a descrição da imagem aqui inserir a descrição da imagem aqui Details:

  1. Images are in the same folder (and are the only files in it).
  2. The images are in a div and are the only pictures immediately filhas of this div and are irmãs.

What I’ve done to try to solve

  1. Remove unwanted image from the folder where the desired image is (uncle-sam). It did not work.
  2. Put a / closing in the tag. Didn’t work.
  • Have you tried using facebook debug? https://developers.facebook.com/tools/debug/

  • 1

    facebook caches, debug has the option to clear the cache.

  • @But he wasn’t even supposed to cache this image because I didn’t specify any time.

  • @Kaduamaral, in Debugger this way shows how the image uncle-sam in the tag og:image but in the snippet shows another image.

  • @Kaduamaral, How can I delete the cache?

  • Make the URL Ubmit and then it will show you the options, then appear two buttons, the Fetch new scrape information clears the cache. I did the test here, and only a picture of uncle Sam is showing up

Show 1 more comment

1 answer

5


This can be a facebook cache. Using Debug Tool, you can clear the cache by clicking the button Fetch new Crape information. To find out the last time the URL information was updated, you have the information Time Scraped

Ilustração - Facebook Debugger

  • 'Cause I also had an idea that that would be it. It cleans up on its own in some time?

  • 1

    So @Jorgeb. has a reply in English which says that the cache is cleared when someone likes the link and every 24 hours also says that it takes into account the "Expires" and "Cache-Control" properties of the page. I did some tests and the like option worked, but it has some links of mine that are cached on 23/4.

  • Add this information to answer as note ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.