I tried to log in to my Facebook account with these lines, which I read from the answer to an already published question, but I can not log in anyway! I am looking for some tips to fix 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 do not want to use the Facebook API!
java login facebook jsoup
Amanda Nov 08 '13 at 4:43
source share