Facebook的缩略图问题一脉相承safe_image.php [英] Facebook Thumbnails Issue Traced to safe_image.php

查看:840
本文介绍了Facebook的缩略图问题一脉相承safe_image.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,Facebook的safe_image.php脚本不会生成缩略图,正常。它生成一个1x1的图片,即使正确的图像在脚本中的参数挂钩。
例如:

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"

链接图像是正确的,但它仍然只是产生一个1x1的形象。

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

推荐答案

得到了同样的问题,在今天,在我的情况是一个HTTPS的问题。

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

我每天自动HTTP请求到https重定向,并且在浏览器的工作原理这一点通常情况下,FB的safe_image.php没有。如果您有这样的重定向,以及,你可能要禁用它只是你的OG:图像文件

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.

这篇关于Facebook的缩略图问题一脉相承safe_image.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆