I have the following JS snippet:
$('.profile-link').each(function(){
link = $(this)
FB.api(link.attr('data-uid'), function(response) {
link.text(response.name)
});
})
And I have like 20 links of the class 'profile-link', the above code seems to work only for the first 3-4 links. So, my guess is that Facebook has a limit on number of API requests per second, is that right? If not, then how to solve the above problem?