I am using the following script to download the photos.
$data = file_get_contents($photos->pic_big);
$file = fopen($image_save, 'w+');
fputs($file, $data);
fclose($file);
But I want to now download the image resized according to my use. Facebook gives an option for this.
https://graph.facebook.com/shaverm/picture?width=200&height=200
Can i replace the username with user id to get the re-sized picture? How do i write script in PHP which will download that photo to my server?