Facebook发布的图片托管在公共CDN上 [英] Facebook Post with picture hosted on public CDN

查看:101
本文介绍了Facebook发布的图片托管在公共CDN上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook似乎阻止了任何由CDN支持的图像。


  1. 这是真的吗?

  2. 有没有办法解决这个问题?

  3. 是否有文档说明了您可以在帖子的图片参数中引用什么?


解决方案


  1. 是的,Facebook阻止您在帖子,分享等中使用CDN中的图片。

  2. 是。您可以使用采用CDN映像的中间页面,并将其复制。我的脚本确实如此(见下文)

  3. 没有关于使用CDN图像的官方文档。

http://sportplatform.sportengland.org/videos/image.php?src=http://a8.sphotos.ak.fbcdn.net/hphotos-ak-snc6/602487_10150174597139971_1671360825_n基本结构是 http://sportplatform.sportengland.org/videos/image.php?src = {image url} 。您可以将图像添加到URL中,在Facebook的CDN上添加一个图像。但是,这是我创建的商业脚本,所以我不建议直接使用它。认为它更像是一个概念证明。


Facebook is seemingly blocking any image that I reference which is backed by a CDN.

  1. Is this true?
  2. Is there a way to get around this?
  3. Is there documentation out there that states what you can and can not reference in the "Picture" argument of a post?

解决方案

  1. Yes, facebook prevents you from using images from it's CDN in posts, shares etc.
  2. Yes. You can use a intermediate page that takes the CDN image and copy it on-the-fly. My script does exactly that (see below)
  3. There is no official documentation regarding the use of CDN images.

http://sportplatform.sportengland.org/videos/image.php?src=http://a8.sphotos.ak.fbcdn.net/hphotos-ak-snc6/602487_10150174597139971_1671360825_n.jpg

Basic structure is http://sportplatform.sportengland.org/videos/image.php?src={image url}. You can add an image into the URL, include one on Facebook's CDN. However, this is a commercial script that I created so I don't advise on using it directly. Think of it more like a proof of concept.

这篇关于Facebook发布的图片托管在公共CDN上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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