hard2crack / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

Problem in getting session key using auth_getsession #337

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create Facebook application and get its api key and secret.
2. Use api key and secret to use any of the FacebookJsonRestClient.
3. Run your servlet to get auth token.
4. Call client.auth_getSession(token).

What is the expected output? What do you see instead?

I should get the session key but I get a RuntimeException as follows:

java.lang.RuntimeException: java.net.ConnectException: Connection timed out: 
connect
    at com.google.code.facebookapi.BasicClientHelper.runtimeException(BasicClientHelper.java:123)
    at com.google.code.facebookapi.ExtensibleClient.callMethod(ExtensibleClient.java:538)
    at com.google.code.facebookapi.ExtensibleClient.callMethod(ExtensibleClient.java:460)
    at com.google.code.facebookapi.ExtensibleClient.auth_getSession(ExtensibleClient.java:326)
    at com.google.code.facebookapi.ExtensibleClient.auth_getSession(ExtensibleClient.java:317)
    at com.google.code.facebookapi.SpecificReturnTypeAdapter.auth_getSession(SpecificReturnTypeAdapter.java:81)
    at com.facebook.ex.FacebookAuth.doGet(FacebookAuth.java:76)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:717)

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by shreyara...@gmail.com on 7 Oct 2010 at 1:05

GoogleCodeExporter commented 8 years ago
I am facing the same issue... Please help if you got the solution. Reploy at 
jainaditi1@gmail.com

Original comment by jainadi...@gmail.com on 22 Oct 2010 at 11:44

GoogleCodeExporter commented 8 years ago
I am using windows. My collegues using mac - the same jar working for them. But 
not for me at all.. please help

Original comment by jainadi...@gmail.com on 22 Oct 2010 at 11:49