wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes SocketException timed out when calling Facebook graph API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "SocketException timed out when calling Facebook graph API" Watch "SocketException timed out when calling Facebook graph API" New topic
Author

SocketException timed out when calling Facebook graph API

Ray Clark
Ranch Hand

Joined: Aug 16, 2012
Posts: 55
When calling Facebook the call works sometimes and then the same call will fail with a SocketException timed out, and then work on the next call. I've tried closing the connection when the SocketException happens but nothing seems to work, any advice would be greatly appreciated.

Thanks, Here's the code:

Luan Cestari
Ranch Hand

Joined: Feb 07, 2010
Posts: 163

As far I remember, there is a limit of number of calls you can make during a period of time. After that the provider can ignore your calls. I remember very well this in Twitter. Check this out in the facebook documentation.


Please, visit me for some cool tech post at www.ourdailycodes.com
Ray Clark
Ranch Hand

Joined: Aug 16, 2012
Posts: 55
Thank you. I don't think that rate limiting is the problem. I switched to the Spring Social API and now it is running fine.

Hopefully my Architect will let me use the Spring Social API lol.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SocketException timed out when calling Facebook graph API