title: Facebook login via JSoup or another browser emulator
body: <p>There is already a question like this <a href="https://stackoverflow.com/questions/19851747/login-facebook-via-jsoup">(here)</a> but mine is different.</p>
  
  <p>Facebook login form needs some request headers and hidden fields as well.</p>
  
  <pre><code>lsd
  local
  timezone
  default_persistent
  lgnrnd
  lgnjs
  qsstamp
  </code></pre>
  
  <p>where <code>local, timezone, default_persistent</code> can be static values, but afaik <code>lsd, lgnrnd, lgnjs, qsstamp</code> are dymanic fields and their values change for each login visit, my guess is they have it there to prevent emulated logins like i am doing. qsstamp field does not even exist on page load. Values <code>lgnjs and qsstamp</code> are calculated via Javascript in facebook welcome page.</p>
  
  <p>My question is Jsoup does not emulate javascript, then how do i get correct values for these fields to get through login of facebook?</p>