Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SocketException timed out when calling Facebook graph API

 
Ray Clark
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
C++ Redhat Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ray Clark
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic