title: Post photo without login
body: <p>Is it real to post photo without any login to FB account ? I read about access_token and it work pervfect with simple wall post message, but when i tey to post photo with access_token without login ti FB i get always error. Help me please.</p>
  
  <pre><code>    &lt;?php
  
      ini_set('display_errors', 'on');
      error_reporting(E_ALL);
  
      require 'facebook-php-sdk-master/src/facebook.php';
  
      $photo = 'mma.jpg'; 
      $message = 'TEST MESSAGE';
  
      $facebook = new Facebook(array(
          'appId'  =&gt; 'APP ID',
          'secret' =&gt; 'APP_SECRET',
          'fileUpload' =&gt; true,
          'cookie' =&gt; true,
      ));
  
      $loginUrl = $facebook-&gt;getLoginUrl(array(
          'canvas' =&gt; 1,
          'fbconnect' =&gt; 0,
          'scope' =&gt; 'offline_access,publish_stream,photo_upload'
      ));
  
      $user = $facebook-&gt;getUser();
      if($user){
          echo $facebook-&gt;getAccessToken();
      }
      $tokenac = $facebook-&gt;getAccessToken();
  
  
      $post =  array(
          'access_token' =&gt; "$tokenac",
          'message' =&gt; 'Test post' . date('Y-m-d H:i:s'),
  
      );
  
  
      $res = $facebook-&gt;api('/10000******8933/feed', 'POST', $post);
      echo 'ID: ',$res['id'];
  </code></pre>
  
  <p>i tried like this, but it dont work. Can anyone help please</p>
  
  <pre><code>require 'facebook-php-sdk-master/src/facebook.php'; 
  
  $photo = 'mma.jpg';
  $message = 'Nope, this message last after 10:2222 (test)'; 
  
  $facebook = new Facebook(
      array(
      'appId'  =&gt; '646351572060837',
      'secret' =&gt; 'e4215791489cce26778ed02403a04427',
      'fileUpload' =&gt; true, 
      'cookie' =&gt; true,
      )
  );
  
  $loginUrl = $facebook-&gt;getLoginUrl(
      array(
      'canvas' =&gt; 1,
      'fbconnect' =&gt; 0,
      'scope' =&gt; 'offline_access,publish_stream,photo_upload'
      )
  );
  
  
  $tokenac = $facebook-&gt;getAccessToken(); 
  
  
  $res = $facebook-&gt;api(
      '/100001776698933/photos', 'POST', 
      array(
          'access_token' =&gt; $tokenac,
          'source' =&gt; '@' . $photo,
          'message' =&gt; $message,
      )
  );
  echo 'ID: ',$res['id'];
  </code></pre>
  
  <p>always with photo get this error, 
  Fatal error: Uncaught OAuthException: A user access token is required to request this resource. thrown in base_facebook.php on line 1254</p>