Closed GoogleCodeExporter closed 8 years ago
Complementarity:
For the step 3, I new the url is http://www.facebook.com/login.php?
Original comment by 771M.F...@gmail.com
on 1 May 2009 at 3:37
Please re-post this on the forum. HttpClient handles redirects / cookies but it
should be straightforward to replace it with HttpURLConnection etc. if you
really
want to.
Original comment by david.j....@googlemail.com
on 1 May 2009 at 8:43
Thanks. I've resolved the issue.
HTTP GET responses 5 cookies, I should call addRequestProperty(cookie, ...);,
not
setRequestProperty(cookie, ...);
Now my project works fine:)
Original comment by 771M.F...@gmail.com
on 2 May 2009 at 6:22
Hi,
I followed you posts here, but I did not understand what values to set for the
cookies on the second POST request.
is it httpURLConnection1.addRequestProperty("Cookie", "$Version=0;
test_cookie=1;
$Path=/; $Domain=.facebook.com");
I fail getting the sessionSecret after getting the cookies and posting http
POST
request to http://www.facebook.com/login.php?
I get the following Exception when calling client.auth_getSession
java.lang.RuntimeException: org.json.JSONException: JSONObject["session_key"]
not
found.
Can any one give example.
Thanks
Ohad.
Original comment by ohad.s.p...@gmail.com
on 30 May 2010 at 7:56
Original issue reported on code.google.com by
771M.F...@gmail.com
on 1 May 2009 at 3:04