Skip to content

πŸ‘₯ Automate bulk inviting Facebook friends to groups β€” batch processing, smart delays, multi-language. Python + Selenium.

License

Notifications You must be signed in to change notification settings

SoCloseSociety/FacebookInviteFriendToGroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Facebook Group Invite Bot

Automate bulk inviting of Facebook friends to groups β€” batch processing with smart delays.

License: MIT Python 3.8+ Platform Selenium GitHub Stars Issues Forks

Quick Start β€’ Features β€’ Configuration β€’ FAQ β€’ Contributing


What is Facebook Group Invite Bot?

Facebook Group Invite Bot is a free, open-source Facebook automation tool built with Python and Selenium. It automates the tedious process of inviting your Facebook friends to join a group. Instead of clicking through hundreds of friends one by one, this bot handles it in configurable batches with smart delays.

The bot opens Chrome, lets you log in manually, then automatically selects and invites friends in random batches β€” mimicking human behavior to reduce detection.

Who is this for?

  • Community Managers growing their Facebook group membership
  • Marketing Professionals building engaged communities
  • Event Organizers inviting friends to event-related groups
  • Startup Founders bootstrapping their community
  • Social Media Managers handling multiple group campaigns
  • Content Creators expanding their audience reach

Key Features

  • Batch Processing - Invite friends in configurable random batches (5-10 per batch)
  • Multi-Language - Supports French and English Facebook UI
  • Smart Delays - Randomized timing between batches to avoid detection
  • Graceful Shutdown - Press Ctrl+C to stop cleanly at any time
  • Structured Logging - Timestamped logs for monitoring and debugging
  • Headless Mode - Run without a visible browser window
  • Input Validation - Validates group URLs before starting
  • Configurable Limits - Set maximum number of invitations per session
  • Cross-Platform - Works on Windows, macOS, and Linux
  • Free & Open Source - MIT license, no API key required

Quick Start

Prerequisites

Requirement Details
Python Version 3.8 or higher (Download)
Google Chrome Latest version (Download)
Facebook Account A valid Facebook account with group invite permissions

Installation

# 1. Clone the repository
git clone https://github.com/SoCloseSociety/FacebookInviteFriendToGroup.git
cd FacebookInviteFriendToGroup

# 2. (Recommended) Create a virtual environment
python -m venv venv

# Activate it:
# Windows:
venv\Scripts\activate
# macOS / Linux:
source venv/bin/activate

# 3. Install dependencies
pip install -r requirements.txt

Usage

python main.py

The bot will:

  1. Open Chrome and navigate to Facebook
  2. Wait for you to log in manually
  3. Navigate to the specified group
  4. Start inviting friends in batches

All CLI Options

python main.py --help
Option Description Default
--group-url URL Facebook group URL (interactive)
--lang {fr,en} Facebook UI language fr
--batch-min N Min friends per batch 5
--batch-max N Max friends per batch 10
--max-invites N Stop after N total invites (0 = unlimited) 0
--headless Run Chrome without visible window Off
-v, --verbose Enable debug logging Off

Examples

# French Facebook, default settings
python main.py --group-url "https://www.facebook.com/groups/mygroup"

# English Facebook, batches of 3-7, max 50 invites
python main.py --group-url "https://www.facebook.com/groups/mygroup" \
               --lang en --batch-min 3 --batch-max 7 --max-invites 50

# Verbose mode for debugging
python main.py -v

How It Works

Facebook Group URL
        β”‚
        β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  1. Open Chrome         β”‚
β”‚  2. Manual Login        β”‚
β”‚  3. Navigate to Group   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  4. Click "Invite"      β”‚
β”‚  5. Select Random Batch β”‚
β”‚  6. Send Invitations    β”‚
β”‚  7. Wait (random delay) β”‚
β”‚  8. Repeat until done   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Configuration

All settings are controlled via CLI arguments. See the CLI Options table above.


Project Structure

FacebookInviteFriendToGroup/
β”œβ”€β”€ main.py              # Main automation script
β”œβ”€β”€ requirements.txt     # Python dependencies
β”œβ”€β”€ setup.sh             # Quick installer script
β”œβ”€β”€ assets/
β”‚   └── banner.svg       # Project banner
β”œβ”€β”€ LICENSE              # MIT License
β”œβ”€β”€ README.md            # This file
β”œβ”€β”€ CONTRIBUTING.md      # Contribution guidelines
└── .gitignore           # Git ignore rules

Troubleshooting

Chrome driver issues

The bot uses webdriver-manager to automatically download the correct ChromeDriver. If you encounter issues:

pip install --upgrade webdriver-manager

Elements not found

Facebook occasionally updates its UI. If the bot can't find buttons:

  1. Check the Issues page for known problems
  2. Try switching language with --lang en or --lang fr
  3. Open a new issue with the error message

Script stops immediately

Ensure the group URL format is: https://www.facebook.com/groups/...

Permission denied

Make sure you are a member of the group with invite permissions.


FAQ

Q: Is this free? A: Yes. Facebook Group Invite Bot is 100% free and open source under the MIT license.

Q: Do I need a Facebook API key? A: No. This tool uses browser automation (Selenium), so no API key or developer account is needed.

Q: How many friends can I invite? A: There is no hard limit in the tool. Use --max-invites to set your own limit. Be mindful of Facebook's usage policies.

Q: Does it work with Facebook Pages? A: No. This tool is designed for Facebook Groups only.

Q: Can I run it without opening a browser? A: Yes. Use --headless mode: python main.py --headless

Q: Does it work on Mac / Linux? A: Yes. The bot is fully cross-platform and works on Windows, macOS, and Linux.


Alternatives Comparison

Feature Facebook Group Invite Bot Manual Inviting Facebook Ads
Price Free Free $5-50/day
Bulk invite Yes (batches) No N/A
Configurable batches Yes N/A N/A
Open source Yes N/A No
API key required No No Yes
Cross-platform Yes Yes Web only
Headless mode Yes N/A N/A

Contributing

Contributions are welcome! Please read the Contributing Guide before submitting a pull request.


License

This project is licensed under the MIT License.


Disclaimer

This tool is provided for educational and personal use purposes only. Use it responsibly and in compliance with Facebook's Terms of Service. The authors are not responsible for any misuse or consequences arising from the use of this software.


If this project helps you, please give it a star!
It helps others discover this tool.

Star this repo


Built with purpose by SoClose β€” Digital Innovation Through Automation & AI
Website β€’ LinkedIn β€’ Twitter β€’ Contact

About

πŸ‘₯ Automate bulk inviting Facebook friends to groups β€” batch processing, smart delays, multi-language. Python + Selenium.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •