问题
I check my url because facebook don't use the image that I set on og:image
url fb check
My image is: 639x649px 486kb But fb use this picture: 300x443px 97kb
The warning said:
og:image should be larger: Provided og:image is not big enough. Please use an image that's at least 200x200 and preferably 1500x1500. (Maximum image size is 5MB.) Image 'url from image, size: 300x443px 97kb' will be used instead.
But when I try to create an image 1500x1500px, upload to server, refresh, and check again the link on top, the results are the same.
回答1:
My experience with Facebook made me doubt that computers are deterministic machines :)
Sometimes it will accept image of any size (between 200 and 1500px), sometimes complain that image is too small (og:image should be larger) even if image is squared and bigger than minimum size (e.g. 400x400px). I had situations where the same link showed all 3 og:images in linter and in FB status field, then suddenly 2 weeks later stopped working and started showing only one image while trying to share it in FB status field (linter still showed all 3 images), and vice versa. Sometimes FB seems to have problems with different domains (e.g. page is on www.example.com and og:image on www.picdumpexamplesite.com), sometimes it doesn't mind...
IMHO it's heavily broken, and the best you can do is:
- make images squared, rounded to "hundreds", e.g. size 300x300px
- host them on the same server (same domain name)
- use jpg
- avoid any "strange" chars in filename (I use only letters and numbers)
- pray that something of the above works :)
回答2:
Here's my tale of woe, hopefully it helps someone else.
I was getting similar warnings:
Provided og:image is not big enough. Please use an image that's at
least 200x200 px.
but this was only occurring on some pages of our website and not others. Which was strange, since the CMS we use consistently puts a 427px x 307px
image on every page, and uses the URL to this image as the og:image
tag.
After trying the hints above, I ended up comparing the JPG files on the pages that worked vs. the JPG files on the pages that didn't work and found those that didn't work had EXIF metadata in them. I removed the metadata in Photoshop, updated the webpages and resubmitted the pages to the Facebook Debugger and it worked.
tl;dr - Remove EXIF data from og:image.
回答3:
I had
<meta property="og:type" content="website" />
in the meta tags.
Removed that line and it worked.
Current tags now look like this:
<meta property="og:title" content="Title Here" />
<meta property="og:url" content="http://www.mysite.com" />
<meta property="og:image" content="http://www.mysite.com/images/myimage.jpg"/>
回答4:
Facebook will often clear the image size error on the second scrape of the URL, in my experience. It gives the error on the first scrape of images of any size. The problem I have is that it ends up using the image and cropping it arbitrarily into 2:1 for use in page posts.
回答5:
I was getting the same error, but I also didn't have an og:description
. Once I added a description, the image worked.
回答6:
I tried many of the suggestions on this post and others to no avail. The solution (which I have not seen elsewhere) was to add the correct prefix to the <head>
element which I had previously omitted entirely.
<head prefix="og: http://ogp.me/ns#">
I'm uncertain if that actually fixed the problem for good or if it has forced the debugger into properly re-scanning the image. Hopefully this solution will help someone else.
回答7:
I found by adding the following additional tags worked for me ...
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="1280" />
<meta property="og:image:height" content="855" />
as mentioned in post Facebook linter reports og:image is too small, when it is larger than the image it choose instead
回答8:
I think SeeBeen is right. I've found that Facebook prefers numbers rounded to the hundreds, and doesn't seem to care so much whether the images are square.
For instance, it will properly select an image that is 700x300, rather than one that is 610x281 (these are actual examples from my tests). I was having an issue where the og:image was 610x281, and FB would choose the 300x600 banner ads from our sidebar instead, completely ignoring the og:image. When I changed the raw image file to 700x300, it worked fine.
I imagine this will change soon, but for now (March 2013) it seems to work.
回答9:
Idea about 100 rounding and square is not true. I don't know where did you get that. Look at this web. Try to debug the URL http://www.stipendije.ba/novost/1969
It might also be up to "strong" colors, huge contrast and strange characters.
回答10:
I have solved this by using the Facebook URL Debugger to force the refresh of the cache of the canonical URL. This was the trick. I was trying to refresh a URL that was not the exact canonical URL (it was missing the trailing forward slash). Once I fetched the new meta data of the correct URL everything was resolving and displaying correctly.
回答11:
I recently had similar problems. As a rule of thumb, use JPG instead PNG files.
The problem with PNG files is the transparent background. They cannot properly calculate the height and weight.
It's a pity that it is not specified on the documentation...
来源:https://stackoverflow.com/questions/15421521/ogimage-open-graph-warnings-image-size