βββββββββββ βββ ββββββ βββββββ ββββββββ
βββββββββββ βββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββ
βββββββββββ ββββββ ββββββ βββββββββββ
βββββββββββ ββββββ ββββββ βββββββββββ
A fast, multi-account Facebook post automation tool built with Python.
No browser needed. Cookie-based. Runs anywhere.
π Language / NgΓ΄n ngα»―:
πΊπΈ English (current) Β |Β π»π³ TiαΊΏng Viα»t β README_vi.md
Facebook Auto Share PRO is a command-line automation tool that leverages Facebook session cookies to programmatically share any public post to multiple accounts β fast, silently, and without touching a browser.
Originally built for personal growth hacking and social media campaigns, this tool is designed to be:
- π§© Modular β swap cookie files freely
- β‘ Fast β threaded per-account share requests
- π Cookie-safe β no password required, no login flow
- π₯οΈ Terminal-native β clean CLI with color output
β οΈ Disclaimer: This tool is for educational and personal use only. Usage violating Facebook's Terms of Service is solely the user's responsibility.
| Feature | Description |
|---|---|
| πͺ Cookie-based auth | No username/password required β uses session tokens |
| π₯ Multi-account | Load unlimited accounts from a single .txt file |
| π Custom share count | Set exact number of shares before auto-stopping |
| β±οΈ Adjustable delay | Fine-tune delays between shares to avoid rate limits |
| π§΅ Threaded execution | Each share runs in its own thread for speed |
| π Live status output | Real-time share count and status in terminal |
| π¨ Stylized CLI | ASCII banner + colored output via pystyle |
| π Repeat mode | Tool loops until manually exited (Ctrl+C) |
buffsharefacebook/
β
βββ main.py # Core auto share automation script
βββ requirements.txt # Python dependencies
βββ cookies.txt # Your session cookies (DO NOT COMMIT)
β
βββ README.md # English documentation (this file)
βββ README_vi.md # Vietnamese documentation
Before getting started, make sure you have:
- Python
>= 3.7β Download here - pip (comes with Python)
- Stable Internet connection
- At least one valid Facebook session cookie
requests β HTTP client for API calls
pystyle β Terminal color & styling utilities
git clone https://github.com/tanbaycu/buffsharefacebook.git
cd buffsharefacebookpip install -r requirements.txtOr install manually:
pip install requests pystyleYour cookies file is the heart of this tool. Here's how to get valid session cookies:
- Open Chrome or Firefox
- Search for and install the "Get cookies.txt" or "EditThisCookie" extension
- Log in to your Facebook secondary/clone account (never use your main account)
- Click the extension β Export cookies β Copy the
c_user,xs,datrfields - Paste the full cookie string into your
cookies.txt
- Download MonokaiToolkit Pro from your app store
- Log in with your Facebook clone account
- Navigate to Cookies section and copy the session string
Each line = one account's cookie string:
c_user=100012xxx;xs=abc123;datr=xxxx;sb=yyyy;fr=zzz... (Account 1)
c_user=100098xxx;xs=def456;datr=aaaa;sb=bbbb;fr=ccc... (Account 2)
c_user=100076xxx;xs=ghi789;datr=cccc;sb=dddd;fr=eee... (Account 3)
β οΈ No blank lines at the end of the file β they'll cause empty token slots.
The automation scripts require a Post ID (the numeric identifier of the Facebook post).
Modern Facebook URLs are highly obfuscated (e.g., share/p/... or pfbid...), making it difficult to find the ID manually.
Use the Official Extractor:
Visit Facebook Post ID Extractor β Paste your link β Get the raw numeric ID instantly.
python main.pyYou'll be prompted through a 4-step interactive setup:
[+] => Enter cookies file name: cookies.txt
[+] => Enter Post ID to Share: 1234567890123456
[+] => Enter Share Delay (seconds): 5
[+] => How many shares before stop: 50
Understanding the internals helps you use the tool effectively and troubleshoot issues:
# The tool hits Facebook's Business Manager API to extract a short-lived EAAG token
# This token is embedded in the page's raw HTML β no official API key needed
requests.get('https://business.facebook.com/content_management', headers=header_)
token = response.text.split('EAAG')[1].split('","')[0]The extracted token format: EAAG{token_string} β a Graph API access token tied to the session cookie.
# Posts to Facebook's Graph API endpoint using the extracted token
requests.post(
f'https://graph.facebook.com/me/feed'
f'?link=https://m.facebook.com/{id_share}'
f'&published=0' β shares as hidden post (no timeline spam)
f'&access_token={token}'
)published=0 means the share is submitted but not published to timeline β just counted as a share internally.
Each cookie-token pair spawns its own thread:
Account 1 βββ Thread 1 βββ share()
Account 2 βββ Thread 2 βββ share()
Account N βββ Thread N βββ share()
All threads run near-simultaneously, then time.sleep(delay) is applied per cycle.
| Parameter | Type | Recommended Value | Notes |
|---|---|---|---|
cookies file |
string | cookies.txt |
Path relative to main.py |
Post ID |
integer | 1234567890 |
Numeric post/video ID only |
Delay (sec) |
float | 3β10 |
Lower = faster but riskier |
Share limit |
integer | 20β100 |
Tool stops when reached |
β
DO β DON'T
ββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββ
Use secondary/clone accounts Use your main Facebook account
Keep cookies.txt private Commit cookies.txt to GitHub
Set delays of 3β10 seconds Set delay to 0 or 1 second
Monitor for checkpoint prompts Ignore login alerts from Facebook
Refresh cookies if they expire Reuse expired cookies
π Cookie Lifetime: Facebook session cookies typically expire after logout, password change, or long inactivity. Refresh them regularly.
π‘οΈ Add to
.gitignore:cookies.txt *.txt
| Issue | Cause | Fix |
|---|---|---|
0 live accounts detected |
All cookies expired or malformed | Re-extract cookies from browser |
| No shares being counted | Post ID is wrong or post is private | Verify the ID via traodoisub.com |
| Tool exits immediately | cookies.txt file not found |
Check the filename is exact |
| Checkpoint triggered | Shares too fast, account flagged | Increase delay to 10β15 seconds |
| Module not found error | Dependencies not installed | Run pip install -r requirements.txt |
- Rotate accounts: Use 5β10+ clone accounts for higher share counts
- Stagger delays: Use
5β8seconds to blend in with human behavior - Target public posts: Private posts cannot be shared via this method
- Monitor token validity: Re-run to refresh tokens if mid-session breaks occur
- Run off-peak hours: Facebook's rate limits are softer during low-traffic periods
Found a bug? Have questions? Want to collaborate?
This project is open-source and intended for personal and educational use only.
- β Do not redistribute for commercial purposes
- β Do not use for spam, harassment, or fraud
- β Feel free to fork, learn, and modify for personal use
Made with β€οΈ by tanbaycu
If this helped you, drop a β on the repo!
πΊπΈ English (current) Β |Β π»π³ TiαΊΏng Viα»t