Ahmad Awais

NAVIGATE


SHARE


Cancel All Facebook Sent Freind Requests!

Ahmad AwaisAhmad Awais

More often than not you find someone interesting and send them a friend request but don’t get a response. That sucks. Well, getting to undo these sent friend requests sucks more.

So, here’s an easy way to do it. It worked till 2018-05-21

➑ Step#1: Go to this link on Facebook (it’s a mobile site link).

https://m.facebook.com/friends/center/requests/outgoing/#friends_center_main

➑ Step#2: Scroll to the very end till all requests you sent are loaded.

➑ Step#3: Open Chrome Inspector/DevTools by right-clicking on the page anywhere and selecting Inspect or just press ⌘ + βŒ₯ + J on Mac for Chrome.

➑ Step#4: Paste the following script and press enter :) β€” and you’re done.

javascript: var inputs = document.getElementsByClassName('_54k8 _56bs _56bt');
for (var i = 0; i < inputs.length; i++) {
    inputs[i].click();
}

All it does is click on all the Undo buttons for you.
Peace! ✌

Helping businesses understand developers. Head of Developer Relations RapidAPI.

πŸ“Ÿ Edutainer at Node.js CLI Automation course (100 videos Β· 22 Projects) & VSCode.pro course (over 20K devs). 🎩 Award-winning Open Source Engineer & Dev Advocate 🦊 Google Developers Expert Web DevRel πŸš€ Mars Ingenuity Helicopter code contributor πŸ† 8th GitHub Stars Award recipient 🌳 Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator.

✌️ Author of various open-source dev-tools and software libraries used by millions of developers worldwide ⓦ WordPress Core Developer πŸ“£ TEDx Speaker with 100+ international talks.

πŸ”₯ Satya Nadella Β· CEO of Microsoft, said β€” Awais is an awesome example for developers.
πŸ™Œ Leading developers and publishing technical content for over a decade πŸ’œ Loves his wife (Maedah) ❯ Read more about Ahmad Awais.

πŸ‘‹β€¦ Awais is mostly active on Twitter @MrAhmadAwais

πŸ“¨

Developers Takeaway

Takeaway my professional opinion on open-source, developer relations, growing your business with family, and everything in between! Delivered to your inbox a couple of times every year. I'm even funny at times. I hate spam β€” pinky-promise!

πŸ‘¨β€πŸ’»πŸ‘©β€πŸ’» 118,947 Developers Already Subscribed
Comments 33
  • Tuna bag
    Posted on

    Tuna bag Tuna bag

    Reply Author

    Thank you so much


  • NEDA
    Posted on

    NEDA NEDA

    Reply Author

    Works Beautifully! Thank you so much!


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Awesome! πŸ’―


      • devil666
        Posted on

        devil666 devil666

        Reply Author

        but if i want to undo this how can i do that ? vice versa

        mean i want to add them all again at once how can i do that
        please give me script for that….


      • Thuy
        Posted on

        Thuy Thuy

        Reply Author

        but where must I paste it in that INSPECT box?


  • NEDA
    Posted on

    NEDA NEDA

    Reply Author

    Just read a little more about you and I thnk its SO cool you and your wife are a team and work together. #GoalsAF! Keep killing it you guys, love conquers all!


  • Pawel
    Posted on

    Pawel Pawel

    Reply Author

    Unfortunately this method doesn’t work anymore
    I worked well for the last 2 or 3 years but this year everyone got message “undefined”
    Any idea how to work out this?


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Did you access the mobile site? I just used it last month and it was working.


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      I just tried and it works. `undefined` doesn’t mean anything β€” it means that there was no ouput.


  • bkabka
    Posted on

    bkabka bkabka

    Reply Author

    this doesnt work it does nothing when using this script in the console


  • Leandro
    Posted on

    Leandro Leandro

    Reply Author

    I did this just now and it worked perfectly. Thank man! :D


  • ashlee
    Posted on

    ashlee ashlee

    Reply Author

    OMG IT ACTUALLY FREAKING WORKED!!!!! ive been trying to figure this out foreverrrrrr!! everyones biggest mistake is not going to the mobile site. omg im tickled right how lol


  • ashlee
    Posted on

    ashlee ashlee

    Reply Author

    i just wanted to note in case it may be helpful to someone, but i had to scroll to the bottom of my requests, then type in the code. at first it was only deleting the loaded sent requests, so once i scrolled down to the bottom (1000 people took about 3 minutes) it then deleted them all no problem.


  • Scaria
    Posted on

    Scaria Scaria

    Reply Author

    Woow intrestingi…It really works n a great work mann


  • Stine Lindberg
    Posted on

    Stine Lindberg Stine Lindberg

    Reply Author

    It’s worked I can’t believe you’ve saved my time!


  • Zyden Jarry
    Posted on

    Zyden Jarry Zyden Jarry

    Reply Author

    Wow it worked like a charm! thank you!!!


  • Natanael Baratas
    Posted on

    Natanael Baratas Natanael Baratas

    Reply Author

    Thank you genius!


  • Muhammad Zubair
    Posted on

    Muhammad Zubair Muhammad Zubair

    Reply Author

    Please Help Where To Paste The Script.?


    • Hina
      Posted on

      Hina Hina

      Reply Author

      Sir i want to ask a question
      I and my friend allow all to send friend request but we are unable to add each other it is bcz we have accidentally deleted requests of each other now there is no option to add how can we be friends on Facebook??


  • nisansala
    Posted on

    nisansala nisansala

    Reply Author

    Thank you


  • andres lara
    Posted on

    andres lara andres lara

    Reply Author

    eliminar amigos


  • Naz
    Posted on

    Naz Naz

    Reply Author

    WOW! That’s awesome bro


  • toufiq hassan
    Posted on

    toufiq hassan toufiq hassan

    Reply Author

    for windows whats the command?


  • Obuka Asogwa
    Posted on

    Obuka Asogwa Obuka Asogwa

    Reply Author

    Please what of how to unfriend in active friends. The solutions I saw over the internet doesn’t work for me. Maybe I have over 4 thousand friends. Please any help??


  • Tugut
    Posted on

    Tugut Tugut

    Reply Author

    Wow it is working. by right clicking you just need to click on inspect and then select console then simply paste the string given in this article (in step# 4). press enter. boom. you are done. magic. Thank You. got rid of big headache.


  • Manjeet
    Posted on

    Manjeet Manjeet

    Reply Author

    Little modification to delete a lot of them
    const deleteRequestsTillBottom =()=>{
    const deleteAllRequests =()=>{
    javascript: var inputs = document.getElementsByClassName(‘_54k8 _56bs _56bt’);
    for (var i = 0; i {
    window.scrollBy(0, 1000);
    deleteAllRequests();
    }, 5000)
    }


  • kiki
    Posted on

    kiki kiki

    Reply Author

    it work perfectly. thanks


  • Cycy bliss
    Posted on

    Cycy bliss Cycy bliss

    Reply Author

    How do I do it?


  • Akshay
    Posted on

    Akshay Akshay

    Reply Author

    Great love you brother