Trying to display custom images via Facebook's Social Graph.
It is strange to find that no matter how I upload the image as (gif, bmp, tiff or jpg), my call https://graph.facebook.com/507988137/picture?type=large (my pic) always returns jpg.
Does anyone know if I'm fine, believing that his image is always "jpg"? I use php get_file_contents to pull out the images and would rather not convince them in various formats.
Facebook does not save the original image that you upload. Instead, it converts all uploaded images to jpg in 4 different sizes to support all the different places where the image can be displayed.
In case you are interested, Facebook mainly deals with science, in fact, I read several times that they are the largest image hosting service in the world. More on this blog Facebook, Facebook Photos Infrastructure
, FaceBook jpg, . , , . . -, jpg, png gif, gif - (GIF 256 , , , png. ). BMP - . BMP URL-.
make sure that you also handle the case when the gif is returned to you. This is the default profile profile for users who do not update their pic profile