I tried to log into my Facebook account with these lines that I read from an answer to a question already posted, but I can't log in anyway! I looking for some tips to correct the code:
Connection.Response res = Jsoup.connect("https://www.facebook.com/login.php")
.data("email", "mymail", "pass", "mypas")
.method(Method.POST)
.execute();
System.out.println(res.statusCode());
Document doc = res.parse();
String sessionId = res.cookie("SESSIONID");
PS: No i don't want to use Facebook APIs!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…