title: Steps to access basic information from facebook to my website?
body: <p>I am successfull to get "userID" and "access token" but unable to get name and other basic details at my destination page.
  How can i get that?
  Here is my code.</p>
  
  <pre><code>&lt;div id="fb-root"&gt;
  &lt;/div&gt;
  
  &lt;script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  
      FB.init({ appId: '225565837521406', status: true, cookie: true, xfbml: true, oauth: true });
  
     // FB.login({ scope: 'name,email,user_birthday'});
  
  
      FB.getLoginStatus(function(response) {
                if (response.status === 'connected') 
                {
                  var theSession=response.session;
                  var theSession = eval('(' + theSession + ')');
                  var name=response.name;
                  var name=eval('(' + name + ')');
                  var uid = response.authResponse.userID;
                  var accessToken = response.authResponse.accessToken;
                  var email=response.authResponse.email;
  //                alert("Name: " +name+ " UserID: " +uid+ " Access Token: " +accessToken);
                  document.getElementById("fb-root").innerHTML="Name: " +name+ "&lt;br /&gt;UserID: " +uid+ "&lt;br /&gt;Access Token: " +accessToken+ "&lt;br /&gt;Email: " +email+ "&lt;br /&gt;Session: " +theSession;
                } 
                else if (response.status === 'not_authorized') 
                {
                  alert("Not Authorized..");
                } 
                else 
                {
                  alert("nothing..");
                }
  
              });
  
  &lt;/script&gt;
  </code></pre>