Skip to content

Instantly share code, notes, and snippets.

@insekticid
Last active June 17, 2016 07:43
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 insekticid/de6c62e47062412d83c64a25b7eac003 to your computer and use it in GitHub Desktop.
Save insekticid/de6c62e47062412d83c64a25b7eac003 to your computer and use it in GitHub Desktop.

There is no way, how to automatically delete all of my uploaded mobile photos from Facebook

You have to go throught of all your uploaded pictures and delete them one by one.

I managed simple solution how to delete them automatically

  1. install google chrome
  2. add jquery injector extension into chrome https://chrome.google.com/webstore/detail/jquery-injector/indebdooekgjhkncmgbkeopjebofdoid
  3. log into your facebook.com account
  4. open your profile - photos - albums - mobile uploads
  5. open chrome developer tools (ctrl+shit+j) and navigate to tab console
  6. insert this code $('[data-tooltip-content="Edit or Remove"] i').click(); into console and press enter
  7. it will iterate hrought all actually loaded images and will load popup that contains delete link (you have to wait some time ~ 1minute - you can see loading progress in the network tab)
  8. insert this code setInterval(function () {$('[data-action-type="delete_photo"] span:eq(1)').click();setTimeout(function () {$('[role="dialog"] button[type="submit"]').click() }, 1000);}, 4000); into console and press enter
  9. make and drink your favourite coffee :) and wait some time (you will see confirmation popups showing)
  10. you are done :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment