Skip to content

Instantly share code, notes, and snippets.

@TechnotronicOz
Created January 23, 2014 16:51
Show Gist options
  • Select an option

  • Save TechnotronicOz/8582247 to your computer and use it in GitHub Desktop.

Select an option

Save TechnotronicOz/8582247 to your computer and use it in GitHub Desktop.
getAlbums: function() {
var albums = [];
FB.api('/me/albums?fields=id,name', function(response) {
for ( var i = 0; i < response.data.length; i++ ) {
albums.push({ albumName: response.data[i] });
console.log(response.data[i]);
}
});
console.log('albums', albums);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment