How to set the share image when clicking the like button

Erik van der Bas picture Erik van der Bas · Jan 23, 2012 · Viewed 30.8k times · Source

I am setting up a blog and it contains a Facebook "Like" button. With this button you can like a post.

But when I like a post, a popup shows up with a randomly picked image on my website. I've looked into the meta tags for Facebook and I filled all six of them with content, but clicking the Like button still causes that same random image shows up. How can I control this image when I click the Like button?

Answer

Thomas Fellinger picture Thomas Fellinger · Jan 23, 2012

Include the following meta tag in your site:

<meta property="og:image" content="path-to/mylogo.png" />

More info about open graph images can be found here. After changing the image, Facebook needs time to update this information due to caching.

Edit: you can view and reset Facebooks cache with the developer tool debug page