Skip to content

sudsj/slots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test

Run using node app.js

Verifying :

Try : curl -X GET "localhost:1337/webhook?hub.verify_token=iKCjToP5gL&hub.challenge=CHALLENGE_ACCEPTED&hub.mode=subscribe"

https://fbslots.herokuapp.com/

curl -X GET "https://fbslots.herokuapp.com/webhook?hub.verify_token=iKCjToP5gL&hub.challenge=CHALLENGE_ACCEPTED&hub.mode=subscribe"

Sending a message :

Make a POST request on localhost:1337/webhook. With this application/json content :

{ "object":"page", "entry":[ { "id":"page12345", "time":1458692752478, "messaging":[ { "sender":{ "id":"sender5432" }, "recipient":{ "id":"page12345" }, "message":{ "mid":"m_1457764197618:41d102a3e1ae206a38", "text":"hello, world!", "reply_to": { "mid":"m_1fTq8oLumEyIp3Q2MR-aY7IfLZDamVrALniheU" } } } ] } ] }

Creating local postgres

I'm following this https://stackabuse.com/adding-a-postgresql-database-to-a-node-js-app-on-heroku/

Error FAQ

If you get the error, "Error: Cannot find module 'request'", run npm install request --save

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors