title: PHP - FB photo/video upload issue
body: <p>I'm working on a web site that has to upload some videos and photos on my personal FB page.</p>
  
  <p>I'm using the PHP SDK v4, and I registered my test App on FB (called CountLikes). Trying and trying again, I finally made a simple post on my wall, so at the moment I want to upload an image on my profile.</p>
  
  <p>I copied the code written here, changing filename and path: <a href="https://developers.facebook.com/docs/php/howto/uploadphoto/4.0.0" rel="nofollow">https://developers.facebook.com/docs/php/howto/uploadphoto/4.0.0</a></p>
  
  <p>I don't get any error message, but the code is not working fine. When I check on my profile I see that there is a new album called "CountLikes Album", but inside there is no photo.</p>
  
  <p>The Access Token I use has all the possible permission (I will select the right ones when I will do this upload).</p>
  
  <p>I post here the code I written (APPID, APPSECRET and TOKEN are written correctly in the original code): could you help me?</p>
  
  <pre><code>&lt;?php
  define('FACEBOOK_SDK_V4_SRC_DIR', 'Z:/Sito/FB/facebook-php-sdk-v4-4.0-dev/src/Facebook/');
  require __DIR__ . '/facebook-php-sdk-v4-4.0-dev/autoload.php';
  use Facebook\FacebookSession;
  use Facebook\FacebookRequest;
  use Facebook\GraphUser;
  use Facebook\FacebookRequestException;
  FacebookSession::setDefaultApplication('APPID','APPSECRET');
  FacebookSession::enableAppSecretProof(false);
  $session = new FacebookSession('TOKEN');
  if($session) 
  {
    try 
    {
      $response = (new FacebookRequest(
    $session, 'POST', '/me/photos', array(
      'source' =&gt; new CURLFile('Z:\Sito\FB\test.jpg', 'image/png'),
      'message' =&gt; 'User provided message'
    )
  ))-&gt;execute()-&gt;getGraphObject();
  echo "Posted with id: " . $response-&gt;getProperty('id');
    } 
     catch(FacebookRequestException $e) 
     {
  echo "Exception occured, code: " . $e-&gt;getCode();
  echo " with message: " . $e-&gt;getMessage();
  }
  }
  ?&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>