Facebook profile picture is public available.
For example https://graph.facebook.com/oleg.dats/picture It's square but to small
To get larger picture https://graph.facebook.com/oleg.dats/picture?type=large But this one is not square.
Is there way to get square profile picture (200px/200px) ?
You will need to post process it yourself. The sizes are
Announced as of Wednesday, August 22, 2012,
You can query for alternate sizes via Graph API using width
and height
, for example
https://graph.facebook.com/1207059/picture?width=121&height=100
So in your case
https://graph.facebook.com/oleg.dats/picture?width=200&height=200
Or in FQL
SELECT url, real_width, real_height FROM profile_pic WHERE id=100000896260238 AND width=200 AND height=200
[Source - http://developers.facebook.com/blog/post/2012/08/22/platform-updates--operation-developer-love/]
You can use this to get the profile picture of any size:
https://graph.facebook.com/digitizor/picture?width=700&height=200
This shows the profile picture of facebook.com/digitizor in 700px by 200px
Change dimensions and facebook profile name as per your requirements
http://digitizor.com/2012/09/15/graphi-api-profile-picture/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With