Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Post with picture hosted on public 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?
like image 500
Nix Avatar asked Nov 14 '22 10:11

Nix


1 Answers

  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.

like image 141
Niraj Shah Avatar answered Dec 25 '22 15:12

Niraj Shah