Facebook login via JSoup or another browser emulator

There is already a question (here) , but my question is different.

The Facebook login form needs some request headers and hidden fields.

lsd
local
timezone
default_persistent
lgnrnd
lgnjs
qsstamp

      

where local, timezone, default_persistent

could be static values, but afaik lsd, lgnrnd, lgnjs, qsstamp

are dim fields and their values ​​change for every login visit, I guess they are there to prevent emulated logins like I do. The qsstamp field doesn't even exist on page load. The values ​​are lgnjs and qsstamp

calculated via Javascript on the facebook welcome page.

My question is: Jsoup does not emulate javascript, then how do I get the correct values ​​for these fields to get through the login of facebook?

+3


source to share





All Articles