Facebook Thumbnails Issue Traced to safe_image.php
Asked Answered
H

5

11

For some reason, facebook's safe_image.php script isn't generating thumbnails, properly. It's generating a 1x1 image... even though the correct image is linked in the script's parameters. Example:

<img class="img" alt="" src="https://s-external.ak.fbcdn.net
/safe_image.php?d=AQBtrCt_Es_KsED0&w=90&h=90&url=http%3A%2F
%2Fwww.southlapatriots.info%2Fimages%2FScamra%2FJayCastilleCouncil2.jpg"

The linked image is correct, but it is still only generating a 1x1 image.

Hentrich answered 10/11, 2011 at 18:5 Comment(0)
N
2

Got the same problem today, in my case was an https issue.

I automatically redirect every http requests to https, and while the browser works this out normally, FB's safe_image.php doesn't. If you have such redirect as well, you may want to disable it for just your og:image file.

Newly answered 12/12, 2011 at 10:50 Comment(0)
E
2

I also get into a similar problem. My problem is because of the image name has a "space" in it. so it is not appear in the facebook debugger and also in sharing.

So i fixed the issue by replace space with hyphen("-") through coding part. After that i debug the url in facebook debugger, it appears. That means Facebook wont show the image name with "space". But there is no logical reason behind this. Anyway it will help someone.

For more information check this answer posted by Patrick D'appollonio. It helps me.

Ento answered 20/9, 2014 at 7:9 Comment(0)
M
0

Are you using any sort of gzip compression for your images? We are seeing a similar issue, but we compress our image with gzip and set the headers. Browsers are rendering fine, but Facebook is essentially displaying nothing.

Macao answered 10/11, 2011 at 18:34 Comment(1)
Jay, I just checked for compression, and i'm pretty sure it's not compressed. Deflate and Header are not enabled and Joomla is not running any type of compression.Hentrich
A
0

safe_image script code doesn't support having a % in the app's image url (which is probably why the image turns into a 1x1 transparent pixel)

so the solution is here . Try to follow the instruction in the first comment by chris

Andromada answered 10/11, 2011 at 18:48 Comment(1)
If you're referring to the comment about the time stamp, the original image doesn't have one. The original meta looks like this: <meta property="og:image" content="southlapatriots.info/images/Scamra/…> It's the safe_image.php script code that's inserting the "?"Hentrich
G
0

In my case, the directory including genuine targeted images is under ".htaccess" control, in which images being called from external server is prohibited.

Example of blocking ".htaccess" file such as:

<FilesMatch "\.(jpg)$">
SetEnvIf Referer "^http://www.mysite.jp" ref_ok
order deny,allow
deny from all
allow from env=ref_ok
</FilesMatch>
Gog answered 20/1, 2012 at 11:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.