Giter Club home page Giter Club logo

facebook-action's Introduction

๐Ÿš€ Facebook Notify for GitHub Actions

GitHub Action for sending a Facebook notification message.

facebook-message

Actions Status

Usage

Send custom message and see the custom variable as blow.

name: facebook message
on: [push]
jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    steps:

    - name: send custom message
      uses: appleboy/facebook-action@master
      with:
        fb_page_token: ${{ secrets.FB_PAGE_TOKEN }}
        fb_verify_token: ${{ secrets.FB_VERIFY_TOKEN }}
        to: ${{ secrets.FB_TO }}
        args: The ${{ github.event_name }} event triggered first step.

Remove args to send the default message.

- name: send default message
  uses: appleboy/facebook-action@master
  with:
    fb_page_token: ${{ secrets.FB_PAGE_TOKEN }}
    fb_verify_token: ${{ secrets.FB_VERIFY_TOKEN }}
    to: ${{ secrets.FB_TO }}

facebook-workflow

Input variables

Getting started with Facebook Message Platform.

  • fb_page_token: Token is the access token of the Facebook page to send messages from..
  • fb_verify_token: The token used to verify facebook.
  • to: Recipient is who the message was sent to (required).
  • app_secret: The app secret from the facebook developer portal.
  • verify: verifying webhooks on the Facebook Developer Portal.
  • images - Optional. photo message
  • audios - Optional. audio message
  • videos - Optional. video message
  • files - Optional. file message

Example

- name: send gopher image message
  uses: appleboy/facebook-action@master
  with:
    fb_page_token: ${{ secrets.FB_PAGE_TOKEN }}
    fb_verify_token: ${{ secrets.FB_VERIFY_TOKEN }}
    to: ${{ secrets.FB_TO }}
    message: send photo message
    images: "https://golang.org/doc/gopher/gophercolor.png"

Template variable

Github Variable facebook Template Variable
GITHUB_REPOSITORY repo
GITHUB_ACTOR repo.namespace
GITHUB_SHA commit.sha
GITHUB_REF commit.ref
GITHUB_WORKFLOW github.workflow
GITHUB_ACTION github.action
GITHUB_EVENT_NAME github.event.name
GITHUB_EVENT_PATH github.event.path
GITHUB_WORKSPACE github.workspace

facebook-action's People

Contributors

appleboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

facebook-action's Issues

Post to pages/groups

Could you add the ability to post to pages and groups? I'd like to use this action to notify my communities when a github release is made.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.