Facebook share dialogue box showing wrong image

So I got this issue with my latest project Rumah Lelong. It’s all good with other pages, my only problem is at the home page (index.php).

I am not sure if this is the right fix, but it works for me:

1. I check it with the linter.

2. Then noticed that it wants the open graph og:url and also mention semething wrong with og:image such as “Provided og:image is not big enough. Please use an image that’s at least 200×200 px.”. I am very sure the image is more than 200×200.

3. I changed og:image from jpg to png.

4. Then add parameter to xxx.png?a=b (just a dummy parameter so that FB will re-cache).

Then I got the right image shows up in the share dialogue box. Hope this help you too.

Prev PostAdding structured data to your content
Next Post7 online tools to start with for a new website

Leave a reply