Facebook doesn’t offer a built-in “accept all” or “reject all” button for friend requests, but you can clear your entire pending list in just a few minutes using the browser’s developer tools. This guide shows you a safe, manual method that works on the desktop site—no third-party extensions or risky scripts required.
What You’ll Need
- A computer with a modern browser (Chrome, Firefox, Edge, or Safari).
- Access to your Facebook account on the desktop website (not the mobile app).
- Your list of pending friend requests—this method processes them one by one, but quickly.
Step-by-Step
- Open your friend requests page. Log in to Facebook on your computer, then click your profile picture in the top right. From the dropdown, select Friends. On the left sidebar, click Friend Requests. You’ll see a list of incoming requests under “Received Requests.”
- Open the browser’s developer console. Right-click anywhere on the page and select Inspect (or press
Ctrl+Shift+Ion Windows/Linux,Cmd+Option+Ion Mac). A panel will open at the side or bottom of the screen. - Go to the Console tab. In the developer panel, click the Console tab. This is where you’ll paste a small snippet of JavaScript.
- Paste the script for accepting all requests. Copy the following code exactly, then paste it into the console and press
Enter:// Accept all visible friend requests const buttons = [...document.querySelectorAll('div[aria-label="Confirm"]')]; buttons.forEach(btn => btn.click()); console.log(`Clicked ${buttons.length} confirm buttons.`);This clicks every “Confirm” button currently visible on the page. If you want to reject all requests instead, replace
ConfirmwithDeletein the selector (the button that appears when you hover over a request). - Wait a moment, then scroll down. Facebook loads requests in batches. After the script runs, scroll to the bottom of the list to load more requests. Repeat step 4 until no new requests appear.
- Check the results. After processing all batches, your pending list should be empty. You can verify by refreshing the page—it should show “No pending requests” or a similar message.
Common Mistakes
- Using the wrong button label. The script looks for buttons with the exact text “Confirm” or “Delete.” If Facebook changes the wording, the script won’t work. Always check the aria-label in the HTML if it fails.
- Running the script on the wrong page. You must be on the Friend Requests page, not your general Friends list. The script only targets visible request buttons.
- Clicking too fast. Facebook may throttle if you click dozens of buttons in a split second. If you see a warning or the buttons don’t respond, wait a few seconds and try again.
- Forgetting to scroll. The script only affects requests currently in the DOM. If you don’t scroll, you’ll miss most of them.
Tips
- Test with one button first. Before running the full script, manually click one “Confirm” button to ensure you’re targeting the right element.
- Use a delay for large lists. If you have hundreds of requests, add a small delay between clicks to avoid overwhelming Facebook. Modify the script like this:
const buttons = [...document.querySelectorAll('div[aria-label="Confirm"]')]; buttons.forEach((btn, i) => setTimeout(() => btn.click(), i * 500));This clicks one button every half second.
- Know the difference between Accept and Reject. Rejecting a request removes it without notifying the sender, but you can’t undo it. Accepting adds the person to your friends list instantly.
- Use the mobile app for a few requests. If you only have a handful, the app’s manual buttons are fine. The script is best for clearing a large backlog.
Troubleshooting
The script runs but nothing happens. First, check that you’re on the correct page and that the request list is loaded. Then inspect a request button: right-click it, select Inspect, and look for the aria-label attribute. If it’s not “Confirm” or “Delete,” update the script accordingly.
Facebook shows a “You’re doing this too fast” error. This is rate-limiting. Stop clicking, wait 10–15 minutes, then resume with the delayed version of the script.
The console says “Cannot read properties of undefined”. This usually means the selector didn’t match any elements. Double-check the spelling of the aria-label and ensure the page has loaded fully.
Some requests remain after running the script. Facebook may have hidden requests behind a “See More” link. Click that link first, then re-run the script.
Frequently Asked Questions
Is this method safe? Will Facebook ban me?
Using the browser console to click buttons is generally safe, but it’s against Facebook’s terms to automate actions. For a one-time cleanup, the risk is low. However, if you have hundreds of requests, consider doing it manually to avoid any flags.
Can I accept all requests from the mobile app?
No, the mobile app doesn’t allow console access. You need a desktop browser. Alternatively, you can use the mobile site (m.facebook.com) in a browser with developer tools, but it’s clunky.
What if I accidentally accept a request I didn’t want?
You can unfriend that person immediately by going to their profile and clicking Friends → Unfriend. They won’t be notified that you unfriended them.
Does rejecting a request notify the sender?
No, Facebook does not notify the person when you reject their friend request. They simply won’t see you in their suggestions anymore.
Can I undo a rejected request?
No, once you reject a request, it’s gone. The person would have to send you a new request, which you can then accept.
Why doesn’t Facebook have a native “accept all” button?
Facebook likely avoids this to prevent accidental mass-accepting of spam or unwanted accounts. The manual method above is the standard workaround.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Recover Photos from a Water Damaged iPhone 6s
- Computer on a Stick: Plain English Definition9.26 yd³
- How to Backup Android Contacts to PC
- How to Log Out of Discord on Desktop & Mobile
- Repair Disk Errors Windows 11: Step-by-Step
- Avoid Highways in Google Maps: Step-by-Step