{"id":19876558,"url":"https://github.com/gnuwilliam/fb-msg-bot","last_synced_at":"2026-05-14T03:34:52.973Z","repository":{"id":147996792,"uuid":"79618440","full_name":"gnuwilliam/fb-msg-bot","owner":"gnuwilliam","description":"Simple Facebook Messenger Bot built with Node.js","archived":false,"fork":false,"pushed_at":"2017-01-21T04:37:32.000Z","size":8,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-11T17:23:16.978Z","etag":null,"topics":["bot","facebook-messenger-bot","javascript","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnuwilliam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-21T02:36:03.000Z","updated_at":"2018-04-01T12:51:53.000Z","dependencies_parsed_at":"2023-05-28T05:00:30.505Z","dependency_job_id":null,"html_url":"https://github.com/gnuwilliam/fb-msg-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuwilliam%2Ffb-msg-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuwilliam%2Ffb-msg-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuwilliam%2Ffb-msg-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuwilliam%2Ffb-msg-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnuwilliam","download_url":"https://codeload.github.com/gnuwilliam/fb-msg-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241304295,"owners_count":19941101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","facebook-messenger-bot","javascript","nodejs"],"created_at":"2024-11-12T16:33:27.047Z","updated_at":"2026-05-14T03:34:47.951Z","avatar_url":"https://github.com/gnuwilliam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Facebook Messenger Bot\n\nSimple bootstrap to allow integration between Node.js and Facebook Messenger's API\n\n## Usage\n\nSimply define your VERIFY_TOKEN and PROFILE_TOKEN keys in `conf.js` and run with `npm install; npm start`\n\nSend your page a message and the bot should respond \"Hey! Welcome!\"\n\nMessenger Platform documentation: https://developers.facebook.com/docs/messenger-platform\n\n## Message methods\n\n`sendMessage`: Allow you to manually send a message to the end user. Expect `receiver` (string) and `msg` (string) as params.\n\n### Example\n\n```js\nvar messages = require('./lib/messages');\n\nmessages.sendMessage(sender, 'Hey! Welcome!');\n```\n\n---\n\n`quickReply`: Send a custom message to the user with buttons containing possible replies. Expect `receiver` (string), `msg` (string) and `options` (array) as params.\n\n### Example\n\n```js\nvar messages = require('./lib/messages'),\n    options = [\n        {\n            content_type: \"text\",\n            title: \"Red\",\n            payload: \"You chose Red!\"\n        },\n        {\n            content_type: \"text\",\n            title: \"Blue\",\n            payload: \"You chose Blue!\"\n        }\n    ];\n\nmessages.quickReply(sender, 'Favorite color?', options);\n```\n\n---\n\n`isTyping`: Send 'chat bubbles' to the end user, simulating typing. Expect `receiver` as param\n\n### Example\n\n```js\nvar messages = require('./lib/messages'),\n\nmessages.isTyping(sender);\n```\n\n## Improvements\n\n- refactor API requests repetition","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnuwilliam%2Ffb-msg-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnuwilliam%2Ffb-msg-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnuwilliam%2Ffb-msg-bot/lists"}