Created
August 16, 2014 18:58
-
-
Save allensarkisyan/9a1e4fba2b3456b5a90f to your computer and use it in GitHub Desktop.
Delete all Spotify music.listens actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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