Skip to content

stu01509/Node.js-Facebook-Anonymous-Post

Repository files navigation

Node.js-Facebook-Anonymous-Post

Simple Facebook anonymous post to fan page timeline system, Fast to submit user post content, And using Firebase authentication to identify.

Features

  • 🕑 Real time to submit user post.
  • 🖼️ Support user submit post with picture.
  • 🧖 Firebase authentication to avoid spamming.
  • 📝 Record remote user submit content, IP and User-Agent.

Install

$ git clone [email protected]:stu01509/Node.js-Facebook-Anonymous-Post.git
$ cd Node.js-Facebook-Anonymous-Post
$ npm install 

Setting

  1. Setting Facebook Graph API Access Token.

📌Note: Post to fan page require publish_pages and manage_pages permission.

  1. Open .env File.

  2. Find Facebook_Access_Token = Your_Access_Token #2

  3. Paste your Facebook Graph API Token to Replace Your Access_Token.
  1. Setting Firebase confing.

Go to Firebase cretae a new project, And add Firebase config, Then click authentication enable sign-in method.

  1. Open .env File.

  2. Find apiKey = Your_apiKey  #5;

  3. Paste your Firebase config to Replace All Value.
  1. Setting Post Tag Number.
  1. Open .env File.

  2. Find tag =  #13;

  3. Replace to Your Number.

Usage

In project directory using node index.js, The app will listen on 3000 port, Running in localhost:3000

$ node index.js

Demo

This project deploy on Azure free plan, Need a some time to wake up the app.
🌐Demo

Text Post

Text and Picture Post

License

MIT