I’m using FQL to query posts from a facebook page and sometimes randomly get an error saying: “The remote (facebook) server returned an error: (500) Internal Server Error”.
The way I handle this is by Sleeping the thread for about 3 seconds. But I was curious if there is a recommended amount of time to wait before querying with FQL if it fails the first time.
Thanks!
No hard rules on this. You can do an increasing back-off mechanism.
Until you reach a maximum of perhaps 3/4 attempts.