0
votes

When I Get "https://login.facebook.com" by using Chrome, the response is 302 and redirect me to http://www.facebook.com. However, when I get "https://login.facebook.com" by using HttpClient's GetMethod, it will be blocked for a long time and finally throws a Timeout Exception.

I feel really frustrating. Is the implementation of Sun JDK's SSL which HttpClient is based on not compatible with facebook's login server?

Can any one tell me what should I do to connect https://login.facebook.com by using HttpClient.

1

1 Answers

0
votes

You should use the facebook api for java for doing so. I think they block requests like yours, since they have made an api for developers to log in through.

You need to join the facebook developers group and create an application so you can get an API key. Se link below for more information.

Download it here