FB Profile Pic always returned as “.jpg”?

后端 未结 3 504
遥遥无期
遥遥无期 2021-01-21 15:36

Trying to pull user images via the Facebook Social Graph.

Finding it odd that no matter what I upload the image as (gif, bmp, tiff, or jpg), my call to https://graph.fac

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-21 16:32

    Facebook doesn't save the original image that you upload. Instead it converts all uploaded images to jpgs of 4 different sizes to support all the different places where the image may be displayed.

    In case you are interested, Facebook basically has this down to a science, in fact, I've read several times that they are the largest image hosting service in the world. More details within this Facebook blog post, Facebook Photos Infrastructure

提交回复
热议问题