title: Get user basic information using facebook Login button plugin?
body: <p>Here I am using <strong>Facebook Login button plugin</strong> and <strong>javascript sdk</strong></p>
  
  <p>I am able to successfully login and logout by using above.</p>
  
  <p>When a first time user has gone through authentication process I need to store user basic information i.e. Facebook login name, email in my database.</p>
  
  <p>Please suggest how I can do this.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;p&gt;&lt;fb:login-button autologoutlink="true"&gt;&lt;/fb:login-button&gt;&lt;/p&gt;
  
  
      &lt;div id="fb-root"&gt;&lt;/div&gt;
      &lt;script&gt;
          window.fbAsyncInit = function () {
              FB.init({ appId: '123456', status: true, cookie: true,
                  xfbml: true
              });
          };
  
  
          (function () {
              var e = document.createElement('script');
              e.type = 'text/javascript';
              e.src = document.location.protocol +
            '//connect.facebook.net/en_US/all.js';
              e.async = true;
              document.getElementById('fb-root').appendChild(e);
          } ());
      &lt;/script&gt;
  </code></pre>