title: Getting friends list using facebook api's
body: <p>I have the following command which will allow me to post a message on the logged in users facebook wall:</p>
  
  <pre><code>$facebook-&gt;api("/$uid/feed", "POST",  array('message' =&gt; 'Hello! I\'m using the FB Graph API!'));
  </code></pre>
  
  <p>i.e. using the url <code>https://graph.facebook.com/&lt;user id goes here&gt;/feed</code></p>
  
  <p>But what command do I need to enter to get a list of the logged in users friends?</p>
  
  <p>The url I need to use is <code>https://graph.facebook.com/me/friends</code>, but I am not sure how to edit the below command to get the friends list:</p>
  
  <pre><code>$facebook-&gt;api("/$uid/feed", "POST",  array('message' =&gt; 'Hello! I\'m using the FB Graph API!'));
  </code></pre>
  
  <p>am I supposed to do something like this (which is a complete guess)</p>
  
  <pre><code>$facebook-&gt;api("/$uid/friends", "GET",  array('access_token' =&gt; 'token value goes here'));
  </code></pre>
  
  <p>Or am I supposed to do something else to get the friends list?</p>