I'm trying to post a photo to Facebook and it works as long as the image is in the same folder as the PHP script:
  $file= "myimage.png";
    $args = array(
        'message' => 'Photo from application',
        );
      $args[basename($file)] = '@' . realpath($file);
    $ch = curl_init();
What do I need to change to make it work for external images, e.g.:
$file= "http://www.example.com/myimage.png";
 
    