I'm now working on a web application which is mostly based of facebook graph api.
I hold some data about users – actually , the possible public data available – such as name and id.
I also know that a profile picture is a part of the public data, and I wondered how I'll be able to get a direct link to a profile picture of a user only by using his id?
Thanks in advance
Best Answer
http://graph.facebook.com/" + facebookId + "/picture?type=square For instance: http://graph.facebook.com/67563683055/picture?type=square
There are also more sizes besides "square". See the docs.
Update September 2020
As Facebook have updated their docs this method is not working anymore without a token. You need to append some kind of
access_token
. You can find further information and how to do it correctly in the fb docs to the graph api of user pictureQuote of fb docs