Facebook 缩略图问题可追溯到 safe_image.php [英] Facebook Thumbnails Issue Traced to safe_image.php

查看:60
本文介绍了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.

推荐答案

我也遇到了类似的问题.我的问题是因为图像名称中有一个空格".所以它没有出现在 facebook 调试器中,也没有出现在共享中.

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.

所以我通过编码部分用连字符(-")替换空格来解决这个问题.之后我在 facebook debugger 中调试 url,它出现了.这意味着 Facebook 不会显示带有空格"的图像名称.但这背后没有合乎逻辑的原因.无论如何它会帮助某人.

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.

有关详细信息,请查看 Patrick D'appollonio.它对我有帮助.

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

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

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