jobs: post-to-facebook: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2
on: push: branches: - main
That's it! With these steps, you've successfully set up auto-posting to your Facebook group using GitHub Actions.
name: Auto Post to Facebook Group
To verify that the setup is working correctly, push some code to your repository and check if an update is posted to your Facebook group. If everything is set up correctly, you should see a new post in your group with a message and a link to your repository.
- name: Post to Facebook env: FACEBOOK_APP_ID: $ secrets.FACEBOOK_APP_ID FACEBOOK_APP_SECRET: $ secrets.FACEBOOK_APP_SECRET FACEBOOK_USER_TOKEN: $ secrets.FACEBOOK_USER_TOKEN FACEBOOK_GROUP_ID: $ secrets.FACEBOOK_GROUP_ID run: | curl -X POST \ https://graph.facebook.com/v13.0/$FACEBOOK_GROUP_ID/feed \ -H 'Authorization: Bearer $FACEBOOK_USER_TOKEN' \ -H 'Content-Type: application/json' \ -d '"message": "New code pushed to repository!", "link": "https://github.com/$GITHUB_REPOSITORY"'
Create a new file in your repository's .github/workflows directory called facebook-post.yml . This file will contain the workflow that posts updates to your Facebook group:
Provides residential drug treatment services to males ages 13 to 17.
Provides outpatient drug treatment to youth ages 13 to 17.
Provides intervention services to youth ages 6 to 17 and their caregivers.
Provides intervention services to youth ages 6 to 17 and their caregivers.
Provides intervention services to youth ages 6 to 17 and their caregivers.
Provides intervention services to youth ages 13 to 17 and adults. auto post group facebook github verified
Provides intervention services to youth ages 13 to 17 and adults.
jobs: post-to-facebook: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2
on: push: branches: - main
That's it! With these steps, you've successfully set up auto-posting to your Facebook group using GitHub Actions.
name: Auto Post to Facebook Group
To verify that the setup is working correctly, push some code to your repository and check if an update is posted to your Facebook group. If everything is set up correctly, you should see a new post in your group with a message and a link to your repository.
- name: Post to Facebook env: FACEBOOK_APP_ID: $ secrets.FACEBOOK_APP_ID FACEBOOK_APP_SECRET: $ secrets.FACEBOOK_APP_SECRET FACEBOOK_USER_TOKEN: $ secrets.FACEBOOK_USER_TOKEN FACEBOOK_GROUP_ID: $ secrets.FACEBOOK_GROUP_ID run: | curl -X POST \ https://graph.facebook.com/v13.0/$FACEBOOK_GROUP_ID/feed \ -H 'Authorization: Bearer $FACEBOOK_USER_TOKEN' \ -H 'Content-Type: application/json' \ -d '"message": "New code pushed to repository!", "link": "https://github.com/$GITHUB_REPOSITORY"'
Create a new file in your repository's .github/workflows directory called facebook-post.yml . This file will contain the workflow that posts updates to your Facebook group: If everything is set up correctly, you should