title: Using the Facebook Graph API to get a list of a user's friends
body: <p>I need to get a hold of a user of my app's list of friends to filter the users that show up in a friend picker. I know I can call the following and get the list:</p>
  
  <pre><code>https://graph.facebook.com/me/friends?access_token=&lt;access_token&gt;
  </code></pre>
  
  <p>I tried it out in the address bar with my own account and it seems to work exactly as I need it to. Problem is, I don't know how to make use of it in a js file itself. I tried calling it and getting the data out with a jquery call but it doesn't seem to return anything helpful.</p>
  
  <pre><code>$.get("https://graph.facebook.com/me/friends",
      {access_token: &lt;access_token&gt;},
      function(data){ document.write("Data Loaded: " + data);});
  </code></pre>
  
  <p>How should I be calling this in my js files and then actually make use of the information? Thanks.</p>