I am building an off-site app hosted on my server that is using the opensocial PHP REST API to retrieve albums and photos within those albums. In order to make my app seem like it is fast while interacting with it, I grab all albums first (in one API call) and then loop over each album, sending a request to get all images for that album (one API call for each album). Then I package all that info together and return it to the user interface. This way the user does not have to wait for photos to be fetched each time they click on an album.
Now the "intermittent" problems: All last week and most of this weekend those initial API calls were returning what I wanted in a timely manner (under 10 seconds). As of Sunday and even today, the API calls are timing out after about 60 - 120 seconds. However, sometimes it works (after about 30 - 40 seconds). This is why I labelled this as intermittent.
Because I'm submitting this app in the developer contest and with the contest being over on Thursday, getting this sorted out is very important. Please help!! Also, let me know of any API limitations that I may be running into with the way I am requesting information. Although, if the limitations are in place, I do not know why they are being enforced intermittently, instead of always.