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 All Facebook Sent Freind Requests!
Ahmad AwaisCancel 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! ✌
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!
Tuna bag
Thank you so much
NEDA
Works Beautifully! Thank you so much!
Ahmad Awais
Awesome! 💯
devil666
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
but where must I paste it in that INSPECT box?
NEDA
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!
Ahmad Awais
Thank you :)
Pawel
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
Did you access the mobile site? I just used it last month and it was working.
Ahmad Awais
I just tried and it works. `undefined` doesn’t mean anything — it means that there was no ouput.
bkabka
this doesnt work it does nothing when using this script in the console
Ahmad Awais
You must be doing it wrong then.
Leandro
I did this just now and it worked perfectly. Thank man! :D
Ahmad Awais
Awesome! 💯
ashlee
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
Ahmad Awais
Glad for you :)
ashlee
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
Woow intrestingi…It really works n a great work mann
Stine Lindberg
It’s worked I can’t believe you’ve saved my time!
Zyden Jarry
Wow it worked like a charm! thank you!!!
Natanael Baratas
Thank you genius!
Muhammad Zubair
Please Help Where To Paste The Script.?
Hina
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
Thank you
andres lara
eliminar amigos
Naz
WOW! That’s awesome bro
toufiq hassan
for windows whats the command?
Obuka Asogwa
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
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
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
it work perfectly. thanks
Cycy bliss
How do I do it?
Akshay
Great love you brother