Get Facebook profile picture with URL

Facebook API 15 ต.ค. 2014

When I Want to get Facebook profile picture. I found{fb-user-id}/picture?type=square&width=200&height=200


Name Description Type
redirect The picture edge is a special case, as when requested, it will by default return the picture itself and not a JSON response. To return a JSON response, you need to set redirect=false as a request attribute. This is how to return the fields below. bool
type You use this to get a pre-specified size of picture. enum{square,small,normal,large}
height Restrict the picture height to this size in pixels. int
width Restrict the picture width to this size in pixels. When height and width are both used, the image will be scaled as close to the dimensions as possible and then cropped down. int



Just a middle-aged programmer, Can do many things but not the most.