git clone https://github.com/xHak9x/fb-auto-poster.git cd fb-auto-poster The script needs Selenium to control the browser.
In the world of social media management, automation is the holy grail. For community managers, marketers, and group admins, the ability to automatically post content to Facebook Groups saves hundreds of hours of manual labor. While Facebook’s native API has become restrictive, the open-source community on GitHub has developed powerful scripts and bots to achieve "auto post group Facebook GitHub" functionality. auto post group facebook github
name: Auto Post to Facebook Group on: schedule: - cron: '0 */6 * * *' # Runs every 6 hours workflow_dispatch: # Allows manual run git clone https://github
jobs: post: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: python-version: '3.9' - name: Install dependencies run: pip install -r requirements.txt - name: Run Facebook Poster env: FB_EMAIL: ${{ secrets.FB_EMAIL }} FB_PASS: ${{ secrets.FB_PASS }} run: python poster.py While Facebook’s native API has become restrictive, the
GitHub Actions allows you to run code for free for up to 2,000 minutes per month. Here is a basic workflow ( .github/workflows/auto_post.yml ):
FACEBOOK_EMAIL = "bot@example.com" FACEBOOK_PASS = "YourSecurePassword" GROUP_ID = "123456789" POST_INTERVAL_MINUTES = 60 # Post every hour HEADLESS_MODE = False # Set to True for server use (no visual browser) Execute the main script.