I use the following simple code to copy images from their URLs to my localhost/server; however it doesn't work when I use it with Facebook Graph API. For example:
$url="http://graph.facebook.com/4/picture?type=large";
copy($url,"newImageName.jpg");
Notes: No errors were shown. The image doesn't be uploaded.
How can I solve this issue?