Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allensarkisyan/9a1e4fba2b3456b5a90f to your computer and use it in GitHub Desktop.
Save allensarkisyan/9a1e4fba2b3456b5a90f to your computer and use it in GitHub Desktop.
Delete all Spotify music.listens actions
FB.api('me/music.listens', function (response) {
function callback (rr) { console.log(rr); }
for (var i in response.data) {
if (response.data.hasOwnProperty(i)) {
console.log(response.data[i].id);
FB.api('/' + response.data[i].id, 'DELETE', callback);
}
}
console.log(response);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment