Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook connect - get profile photo in high/original resolution

Tags:

facebook

api

is there any way to get the profile photo of a users in a higher resolution than "large" which is 200x0...

https://graph.facebook.com/19292868552/picture?type=large

Thanks in advance!

like image 986
n00b Avatar asked Apr 26 '11 18:04

n00b


People also ask

How do I download original resolution pictures from Facebook?

Hover over the image until the photo's (and the Like, Comment, and Share buttons at the bottom) appear. Click the “Options” link in the bottom right corner, and then select the “Download” command. The photo should now download in the highest resolution Facebook has on their servers.

How can I view someones profile picture in better resolution?

Turns out if you right-click a profile picture and "Open Image In New Tab" and then look at it's URL, there will be a "s=48". You can change that number to whatever size you want and it will give you a version of the picture in that size.


1 Answers

I'have the same problem at the moment. My solution is to use the coverId of the profile album cover.

You can use GraphApi to get all Albums of the User

https://graph.facebook.com/%profileId%/albums

and use the coverId of the album with type 'profile' to get the profile photo

https://graph.facebook.com/%coverId%

Otherwise you can build a fql query like this

SELECT src_big FROM photo WHERE pid IN (SELECT cover_pid FROM album WHERE owner = %profileId% AND type = 'profile')

i found this in the facebook developer docs by writing the query for the answer

http://developers.facebook.com/docs/reference/fql/photo/

I hope this help you

like image 127
Peter Limbach Avatar answered Sep 18 '22 12:09

Peter Limbach