I had read that images associated with a given URL in the Facebook open graph had to be greater than 50 x 50
However, when we ran the Facebook Object debugger - we g
I ran into the same problem. I did not perform exhaustive testing, so I can't say exactly what the requirements are to get the images to show up. I can say that I switched my images to being >200x>200 (specifically 350x350) and they showed up after that.
I had same issue which did my head in. I'm using wordpress site so I had to drop the www
. Check in your wordpress admin > settings >general
for your site address / wordpress address etc.. This overcomes other URL errors.
As for the image issue, all I can say is that putting this in my header file worked for me.
I added this below.
<html prefix="og: http://ogp.me/ns#">
<head>
<meta property="og:image" content="http://yourwebsite.com/images/yourimage.jpg"/>
<meta property="og:image:width" content="500" />
<meta property="og:image:height" content="500" />
<meta property="og:title" content="your website page title"/>
<meta property="og:url" content="http://yourwebsite.com"/>
<meta property="og:site_name" content="site name and content etc"/>
<meta property="og:description"content="description of site" />
<meta property="og:type" content="Website"/>
IN wordpress, I did leave the
<title><?php wp_title( '|', true, 'right' ); ?></title>
in there.
Also as suggested in other posts in my instance this code:
<link rel="image_src" href="http://URL-TO-YOUR-IMAGE" / >
made it NON WORKING. Removing it fixed it instantly.
I used a 500 x 500 image. Good Luck.. hopefully I save someone else's pain.
The docs have been updated again!
og:image can now be as big as you like - whoop
They have recommended the following:
Also don't forget you can add multiple og:images and let the user choose which picture they want to use.
Just follow these rules:
Adhering to the above principles, the preferred image has a width of 1500px, and a height of 786px (which preserves the 1.91:1 aspect ratio).
Source: Facebook: Sharing Best Practices
If you even informing an image larger than 200x200 (as new documentation) the Debuger still accuse the image is not big enough, the solution is to add the meta tag below with the image dimensions:
Example:
<meta property="og:image:width" content="500" />
<meta property="og:image:height" content="500" />
Use images that are at least 1200 x 630 pixels for the best display on high resolution devices. At the minimum, you should use images that are 600 x 315 pixels to display link page posts with larger images.
Reference: https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#images