title: Getting "APINotAllowedError" when requesting medias on a private profil, even with all scopes allowed
body: <p>I'm using the PHP Instagram API <a href="https://github.com/cosenary/Instagram-PHP-API" rel="nofollow">https://github.com/cosenary/Instagram-PHP-API</a></p>
  
  <p>I would like to retrieve the feed of a user, even if he has a private profil.</p>
  
  <p>First, I'm generating the url with all the scopes granted </p>
  
  <pre><code>$instagram-&gt;getLoginUrl(array('basic','likes', 'relationships', 'comments'));
  </code></pre>
  
  <p>Then, once the user approved the application, I try to retrieve his feed</p>
  
  <pre><code>// Grab OAuth callback code
  $code = $_GET['code'];
  
  $data = $instagram-&gt;getOAuthToken($code);
  
  // Set token
  $instagram-&gt;setAccessToken($data-&gt;access_token); 
  
  
  // get medias
  $medias = $instagram-&gt;getUserMedia($data-&gt;user-&gt;id, -1);
  </code></pre>
  
  <p>I get an APINotAllowedError error</p>
  
  <pre><code>object(stdClass)#5 (1) {
    ["meta"]=&gt;
    object(stdClass)#6 (3) {
      ["error_type"]=&gt;
      string(18) "APINotAllowedError"
      ["code"]=&gt;
      int(400)
      ["error_message"]=&gt;
      string(29) "you cannot view this resource"
    }
  }
  </code></pre>
  
  <p>What am I doing wrong? Thank you very much!</p>
  
  <p><strong>UPDATE AND FIX</strong></p>
  
  <p>Ok actually it comes from the PHP library, the current getUserMedia() fails because it doesn't use the access_token provided...</p>
  
  <p>Here is the correct method</p>
  
  <pre><code>public function getUserMedia($id = 'self', $limit = 0) {
      return $this-&gt;_makeCall('users/' . $id . '/media/recent', true, array('count' =&gt; $limit));
    }
  </code></pre>
  
  <p>Thank you!</p>