This is a mini project to proof that facebook messages can be handled by our server. Every person that send message to this page will be saved in our db, and then we can send them messages.
git clone https://github.com/kumangxxx/fb_messenger_wh.git
- Setup your .env
mongodb=mongodb://user:password@host:27017/db_name facebook_access_token=some-access-token LOCAL_TOKEN=some-token port=4000
- Run the service
node index.js
- Open the dashboard in /page/dashbboard
curl -X POST \
http://host:4000/api/send \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: 2d914898-366e-c81e-8d2a-97410161a828' \
-d '{
"message": "some-message-or-url",
"is_image": false,
"people" : [ "some-person-id" ]
}'
This project is still in development mode, so not every message will be handled, only messages from testers or developers will be handled.
- Rahadian Ahmad (kumangxxx@gmail.com)
- Make a pull request / merge request