hernandes
hernandes

Reputation: 391

Provided og:image is not big enough in Facebook linter

I properly set og:image on my website, the facebook linter sees it (facebook debugger) however, it says the image should be at least 200x200, which it is not the case, my image is 250x250 image.

What could be causing the issue? Could this have anything to do with Cloudfront?

Edit: I got around it by switching from this image to another image which is a 
jpg image, but still I couldn't find the cause for the problem since the image
looks fine.

Upvotes: 19

Views: 16303

Answers (5)

ecairol
ecairol

Reputation: 6533

Converting the same image from JPG to PNG did the work for me.

Upvotes: 0

Pavan Mehta
Pavan Mehta

Reputation: 17

I was having a space in my image path of my image.

Like my image path was http://example.com/jodha akbar/image.jpg

If you observe above. The jodha akbar directory is having space.

And Facebook was not picking up the path due this special character may be.

I added a PHP str_replace function. And it worked for me.

str_replace(" ","%20",$image_path)

Upvotes: 0

hendr1x
hendr1x

Reputation: 1501

This was happening to me. I was only using the meta og:image tag. I added the following in the head

<link rel="image_src" type="image/jpeg" href="img_path" />

and it fixed the problem for me.

Upvotes: 27

user1657882
user1657882

Reputation: 19

I have experienced same error with my custom Web server ServeRick, the solution unexpectedly was to send Content-Length header with images.. without this header facebook didn't accept any of my og:image links

Upvotes: 0

Jeremy Schultz
Jeremy Schultz

Reputation: 677

The thread here is pretty helpful: og:image Open Graph Warnings image size

Generally, FB's parser prefers images that are (1) measured in multiples of 100 and (2) square format.

Upvotes: 5

Related Questions