I am trying to cache in the server the profile images provided by the Facebook Graph API. So far what I did unsuccessfully was getting the path of the image then calling:
$file = file_save_upload($big_pic_url, array(), $dest, FILE_EXISTS_RENAME);
NULL every time. I tried several syntax for the destination path, and also for the Pic URL path, nothing seems to work.
I am doing this the right way? Can
file_save_upload() take an external link as part of its argument?