Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Thumbnails Issue Traced to safe_image.php

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.

like image 865
talkinggoat Avatar asked Nov 10 '11 18:11

talkinggoat


2 Answers

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.

like image 96
StefanoP Avatar answered Nov 18 '22 09:11

StefanoP


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.

like image 43
Mahendran Sakkarai Avatar answered Nov 18 '22 08:11

Mahendran Sakkarai