title: How to get User info using JS SDK after they login with Facebook
body: <p>I have this in my header:</p>
  
  <pre><code>&lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Then I have the FB login button code like this:</p>
  
  <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt;&lt;script src="http://connect.facebook.net/en_US/all.js#appId=myAppId&amp;amp;xfbml=1"&gt;
  &lt;/script&gt;&lt;fb:login-button show-faces="false" perms="user_hometown,user_about_me,email,user_address"
  autologoutlink="true" width="200" max-rows="1"&gt;
  &lt;/fb:login-button&gt;
  </code></pre>
  
  <p>Then after the user logs in with the FB button, how do I make a JS call to get their name, email, photo, etc?</p>
  
  <p>I also found some code like this, but not sure where this is used:</p>
  
  <pre><code>&lt;script&gt;
    FB.init({
      appId  : 'myAppId',
      status : true, // check login status
      cookie : true, // enable cookies to allow the server to access the session
      xfbml  : true, // parse XFBML
      channelURL : 'http://www.comehike.com/channel.html', // channel.html file
      oauth  : true // enable OAuth 2.0
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>Do I need the code right above?</p>
  
  <p>Thanks!!</p>