title: Can i load the private photos with my webapp from facebook users?
body: <p>I have a website and use the login using facebook.
  I want to do the following:</p>
  
  <p>User comes to my web site - login with facebook - I read his facebook data and photography permits</p>
  
  <p>For example:</p>
  
  <pre><code>{
      "id": "1"
      "name": "John English"
      "first_name": "John",
      "last_name": "English"
      "link": "https://www.facebook.com/johnenglish"
      "username": "johnenglish"
      "gender": "male"
      "locale": "en_US"
       ....
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{
      "id": "2"
      "name": "John English2"
      "first_name": "John",
      "last_name": "English2"
      "link": "https://www.facebook.com/johnenglish2"
      "username": "johnenglish2"
      "gender": "male"
      "locale": "en_US"
       ....
  }
  </code></pre>
  
  <p>Both users have a private photo. Can I load the private photos from user (id: 2) with my web application using javascript? Can you give me the example?</p>
  
  <p>I've tried this:</p>
  
  <pre><code>FB.getLoginStatus(function(response) {
                  if (response.status === 'connected') {
                      var uid = response.authResponse.userID;
                      var accessToken = response.authResponse.accessToken;
  
                      FB.api('/USER-ID(USER ID 2)/photos?access_token=' + accessToken, function(response) {
  
              //A user access token is required to request this resource.
  
  
                      });
  
  
  
                  } else if (response.status === 'not_authorized') {
  
                  } else {
                  }
              });
  </code></pre>
  
  <p>Error: A user access token is required to request this resource.</p>