PJR PJR - 1 year ago 101
Objective-C Question

How to get the bigger profile picture of a facebook page

I am getting an image from facebook by the URL: http://external.ak.fbcdn.net/safe_image.php?d=d282e1e7c86c9270232f97ddc737df39&w=90&h=90&url=http%3A%2F%2Fi52.tinypic.com%2F2q0ixzl.jpg

Now, I want a bigger version, like 200 by 200. Is there a URL for that? If not, how can I convert this image to a larger size?

Answer Source

Generally if you want to collect the profile pic of a user or page, the format for the icon size picture is:

http://graph.facebook.com/[page id/profile id]/picture

and for the large picture:

http://graph.facebook.com/[page id/profile id]/picture?type=large

EDIT Points to note: If the image stored on the facebook servers is less than the 200*200 dimensions, you would get the image as the highest resolution avaiable eg: 128*160. Either you can resize it using the GD library.


Facebook supports 200*600px as the highest resolution for the profile pic. It will resize an image to fit into these dimensions by maintaining the aspect ratio.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download