Skip to content

tanbaycu/buffsharefacebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—  β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  
β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•  
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•β•šβ•β•  β•šβ•β•β•šβ•β•  β•šβ•β•β•šβ•β•β•β•β•β•β•

πŸš€ Facebook Auto Share β€” PRO Edition

A fast, multi-account Facebook post automation tool built with Python.
No browser needed. Cookie-based. Runs anywhere.

Python Platform License Version Status


🌐 Language / Ngôn ngữ:
πŸ‡ΊπŸ‡Έ English (current) Β |Β  πŸ‡»πŸ‡³ TiαΊΏng Việt β†’ README_vi.md


πŸ“Œ What is This?

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 Highlights

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)

πŸ—‚οΈ Project Structure

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

βš™οΈ System Requirements

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

Required Libraries

requests   β€” HTTP client for API calls
pystyle    β€” Terminal color & styling utilities

πŸ› οΈ Installation

Step 1 β€” Clone the Repository

git clone https://github.com/tanbaycu/buffsharefacebook.git
cd buffsharefacebook

Step 2 β€” Install Dependencies

pip install -r requirements.txt

Or install manually:

pip install requests pystyle

πŸͺ Obtaining Facebook Cookies

Your cookies file is the heart of this tool. Here's how to get valid session cookies:

πŸ’» On Desktop (Browser Extension)

  1. Open Chrome or Firefox
  2. Search for and install the "Get cookies.txt" or "EditThisCookie" extension
  3. Log in to your Facebook secondary/clone account (never use your main account)
  4. Click the extension β†’ Export cookies β†’ Copy the c_user, xs, datr fields
  5. Paste the full cookie string into your cookies.txt

πŸ“± On Mobile (Android)

  1. Download MonokaiToolkit Pro from your app store
  2. Log in with your Facebook clone account
  3. Navigate to Cookies section and copy the session string

πŸ“„ cookies.txt Format

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.


πŸ” Finding the Post ID

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.


▢️ Running the Auto Share Tool

python main.py

You'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

πŸ”¬ How It Works (Technical Deep-Dive)

Understanding the internals helps you use the tool effectively and troubleshoot issues:

1. Token Extraction (get_token)

# 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.

2. Share Execution (share)

# 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.

3. Threading Model

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 Reference

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

πŸ”’ Security Best Practices

βœ… 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

πŸ”§ Troubleshooting

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

πŸ“ˆ Tips to Maximize Effectiveness

  • Rotate accounts: Use 5–10+ clone accounts for higher share counts
  • Stagger delays: Use 5–8 seconds 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

🀝 Support & Contact

Found a bug? Have questions? Want to collaborate?

Linktree


πŸ“„ License

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

Releases

No releases published

Packages

 
 
 

Languages