1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Facebook won't show up any image

Discussion in 'Troubleshooting and Problems' started by Marco Famà, Jun 20, 2012.

  1. Marco Famà

    Marco Famà Active Member

    Dear all,
    I'm experiencing a strange problem on Facebook when posting this exact URL
    on my fanpage wall.

    In fact, although the HTML code returned looks correct

        <meta property="og:image" content="http://timelapseitalia.com/wp-content/uploads/TLI-Logo-72dpi-Trasparente-Tagline-nera-100px-quadri-Facebook-XenForo.png" />
    and the image path is fine, Facebook won't simply associate any image to the post.

    Anyone knows why?

    Thanks a ton

    P.S. Don't know if it's a XenForo bug.. sorry for maybe misunderstaning..
  2. Chris D

    Chris D XenForo Developer Staff Member

    I don't think this will be a XenForo bug as the image is working - and actually XenForo has nothing to do with the process.

    As long as the meta properties are there, Facebook will read them.

    I've just ran the Facebook OG debugger: https://developers.facebook.com/tools/debug/og/object?q=http://timelapseitalia.com/forum/

    It seems to be loading the image fine.

    What I have found previously is that Facebook heavily caches open graph resources such as images. I once changed the og image on my site and it took several weeks before it was correct. And the caching is all on their side, as clearing the browser cache didn't work.

    What you might want to try is to change the path to the image or upload a new image, and then update the template in XenForo with the new URL to the image. This should cause Facebook to start using the correct one.

    EDIT: Just noticed this in the debugger:

    Tiny og:image
    All the images referenced by og:image must be at least 200px in both dimensions. Please check all the images with tag og:image in the given url and ensure that it meets the minimum specification.

    You might need to increase the size of the image to 200px x 200px - but I suspect it might not be that as the default image is smaller.

    I definitely think changing the path would be best.
    Learner, Jake Bunce and Marco Famà like this.
  3. Marco Famà

    Marco Famà Active Member

  4. Chris D

    Chris D XenForo Developer Staff Member

    Yeah sure.

    My board is down right now, so I can't check the right template for you, but I can tell you how to find it.

    Just go to Admin CP > Appearance > Search Templates and in the second larger box, search for og:image

    I think it's something like META_HEAD or something like that.
    Learner, Jake Bunce and Marco Famà like this.
  5. Marco Famà

    Marco Famà Active Member

    Awesome, it works!
    Love this, thanks a ton mate!
    Yorick likes this.
  6. Chris D

    Chris D XenForo Developer Staff Member

    No problem :)

    If you ever change the image, I'd suggest to avoid the caching issue to re-upload it with a different URL and then change the URL in the template again. Facebook will have no choice but to go and fetch the file again.

Share This Page