title: querying the graph api with curl
body: <p>I want to check how to handle the <code>access_token</code>. So, I use <code>curl</code> to perform the following queries:</p>
  
  <pre><code>curl -X POST https://graph.facebook.com/oauth/access_token -d "client_id=&lt;appId&gt;&amp;client_secret=&lt;secret&gt;&amp;grant_type=client_credentials&amp;redirect_uri="
  </code></pre>
  
  <p>It returns a value for <code>access_token</code>.</p>
  
  <p>Then, I'd like to get the list of my friends:</p>
  
  <pre><code>curl -X POST https://graph.facebook.com/me/friends -d "access_token=&lt;token&gt;"
  </code></pre>
  
  <p>It returns this error:</p>
  
  <pre><code>{"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException","code":2500}}
  </code></pre>
  
  <p>Any hints ?</p>