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.

Cancel friend requests#

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! ✌

Founder & CEO at Langbase.com — The Composable AI Developer platform · Serverless AI Cloud · Ship agentic AI pipes, tools, and memory with BaseAI — The first Web AI Framework (free, open-source, local-first, deploys serverless, agentic pipes, tools, and memory)

Ex VP DevTools & DevRel Eng. Rapid · Google Developers Advisory Board (gDAB) founding member. 🧑‍💻 AI/ML/DevTools Angel InvestorAI/ML Advisory Board San Francisco, DevNetwork

🎩 Award-winning Open Source Engineer & Dev Advocate 🦊 Google Developers Expert Web DevRel 🚀 NASA Mars Ingenuity Helicopter mission code contributor 🏆 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer).

🌳 Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator. 📟 Teaching thousands of developers Node.js CLI Automation and VSCode.pro course. Over 142 million views, 24 yrs Blogging, 108K developers learning, 200+ FOSS.

✌️ Author of various open-source dev-tools and software libraries utilized by millions of developers worldwide WordPress Core Developer 📣 TEDx Speaker with 100+ international talks.

As quoted by: Satya Nadella · CEO of Microsoft — Awais is an awesome example for developers.
💜 Loves his wife (Maedah) ❯ Read more about Ahmad Awais.

👋… Awais is mostly active on 𝕏 @MrAhmadAwais

📨

Developers Takeaway

Stay ahead in the web dev community with Ahmad's expert insights on open-source, developer relations, dev-tools, and side-hustles. Insider-email-only-content. Don't miss out - subscirbe for a dose of professional advice and a dash of humor. No spam, pinky-promise!

✨ 172,438 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