Skip to content

Instantly share code, notes, and snippets.

@maxbye3
Last active December 29, 2015 13:39
Show Gist options
  • Save maxbye3/7678571 to your computer and use it in GitHub Desktop.
Save maxbye3/7678571 to your computer and use it in GitHub Desktop.
FB.api('/me/friends', function(response) {
for (var i=0;i<5;i++)
{
//stuff you want to happen after getting data goes here
$('.container').append('<br>'+response.data[i].name+'<br>');
}
}); //FB.api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment