title: Error in the response from facebook graph API
body: <p>My code till now is this:</p>
  
  <pre><code>&lt;script&gt;
      window.fbAsyncInit = function(){
          FB.init({ appId:'my app id', status:true,  cookie:true, xfbml:true});
  
          FB.getLoginStatus(function(response){
              if (response.status != "unknown") // makes sure the user is already logged in.
              {
                  FB.api('/me', function(response) {
                  console.log(response);
                  });
              }
          });
      };
      // Load the SDK Asynchronously
      (function(d){
          var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
          js = d.createElement('script'); js.id = id; js.async = true;
          js.src = "//connect.facebook.net/en_US/all.js";
          d.getElementsByTagName('head')[0].appendChild(js);
      }(document));
  &lt;/script&gt;
  </code></pre>
  
  <p>The error that I'm getting in the console is <code>"An active access token must be used to query information about the current user."</code>
  But I have already made sure that the user is logged in as seen from the code, then where am I making a mistake?</p>
  
  <p><strong>Update:</strong> From the answers and the comments, it seems like the problem is that my website is not authorized although the user is logged in. 
  I just want to display the user's real name on the website with a welcome message. Can I use facebook graph API for this? 
  I do not want to go into authorization step since that would seem unnecessary from the user's point of view.</p>
  
  <p>I'm new to programming, javascript and facebook graph api, so please forgive any mistakes I might have made.</p>