title: Facebook Graph API...how to get started?
body: <p>Hi I'm trying to get a JSON file about the list of the friends of Bret Taylor ("btaylor" is a profile of Facebook used for practice). I am reading the Graph API official guide (on FB website) and I am undesrtanding that for this request I need an authorization token code.</p>
  
  <p>I've found an access token code from the link </p>
  
  <pre><code>https://graph.facebook.com/oauth/access_token?
       client_id=YOUR_APP_ID&amp;client_secret=YOUR_APP_SECRET&amp;
       grant_type=client_credentials
  </code></pre>
  
  <p>where I've wrote my aps id and secret code but if I try to open the following URL using the access token code </p>
  
  <pre><code>https://graph.facebook.com/btaylor/friends?access_token=MY_TOKE_AUTH_CODE
  </code></pre>
  
  <p>I get the following error message:</p>
  
  <pre><code>{
     "error": {
        "message": "(#604) Can't lookup all friends of 220439. Can only lookup for the logged in user (0), or friends of the logged in user with the appropriate permission",
        "type": "OAuthException"
     }
  }
  </code></pre>
  
  <p>the token code is something like <code>access_token=112701417077438|GnwE4LeR_f_3r-mmxoi79ukgEFd</code></p>
  
  <p>Where is the problem? With Google I've found some tutorial with long php pages but following the official guide I can't understand how to use all of this code...on the official guide everything appear extrimely short and easy...</p>