How to post a link to an image on Facebook using the graphical API

I am trying to send an image to the feed using the graphics API, but this does not work if my image URL does not have an image file extension, for example .png (I have a URL for png without a .png file extension, since the image dynamically created on the server)

It seems to work when I manually post a link on my Facebook wall. Facebook wraps the URL as follows: http://external.ak.fbcdn.net/safe_image.php?d=AQAsdfyQsdfXvV5h59OP&w=90&h=90&url= "my image url"

Does anyone know how I can post the URL of an image in the image field of a feed message?

+4
source share
1 answer

Facebook uploads and caches any image posted on the wall. It then spreads to their CDN (Content Delivery Network).

The reason is simple: boot time. If someone sends an image from a slow server to FB, this may slow down Facebook. Therefore, they copy it all.

So,

  • Facebook may still have an old copy. Try it with fresh URLs.
  • can facebook access the url or just your user?
0
source

Source: https://habr.com/ru/post/1389664/


All Articles