I have a routine for browsing the last 50 posts:
FB.api('/me/friends?limit=10', function(response) {
var friend_data = response.data;
for(var i = 0; i < friend_data.length; i++) {
FB.api({
method: 'fql.query',
query: 'SELECT post_id, source_id, message FROM stream WHERE source_id = ' + friend_data[i].id + ' LIMIT 50'
},
function(posts){
console.log(posts);
}
});
}
});
It works fine until I get this error message:
"error_code":"613"
"error_msg":"Calls to stream have exceeded the rate of 600 calls per 600 seconds."
Of course, there is a block of queries, limited to 600 requests every 6 minutes. I may not be doing the math correctly, but this routine generates 1 request to fetch 10 friends and 10 other stream requests, right?
Is there anything that can be done to work around this problem?