I want to fetch facebook profile picture programmatically and then load it as texture in our engine. Since our engine supports only several picture formats (bmp, tga, png) I want to fetch picture from facebook in png format.
Now I see that there are two formats of profile pictures, gif for those who have not uploaded picture and jpg for those who have.
Thanks in advance.
You have your answer there – Facebook only returns GIF or JPG images via the API – you’ll need to convert them in your own code if you can’t store JPG