title: How To Create A Webpage With Facebook Login And Get The Access Token?
body: <p>I want to build a website that enable facebook user login and then show their friends' profile pictures. </p>
  
  <p>There are so many resources to look up, Javascript SDK, PHP SDK, OAuth 2.0, I'm just confused about how to implement my application in an easy way.</p>
  
  <p>I want to do it this way:</p>
  
  <ol>
  <li>user log in to Facebook on my website. (  use social plugin to create the login page? or what?  )</li>
  <li>when successfully logged in, get access token of the user. </li>
  <li>use
  <a href="https://graph.facebook.com/userid/friends?access_token=" rel="nofollow">https://graph.facebook.com/userid/friends?access_token=</a>...
  to get user's friends' IDs</li>
  <li>use <a href="https://graph.facebook.com/userid/picture" rel="nofollow">https://graph.facebook.com/userid/picture</a>
  to get pictures and then display.</li>
  </ol>
  
  <p>Can anyone tell me is it possible to realize it in this way? Hopefully you can give some specified codes, especially in step (1) and (2). </p>
  
  <p>Thanks very much!!!</p>