{"id":13473397,"url":"https://github.com/olegakbarov/facebook-messenger-devkit","last_synced_at":"2025-03-22T15:30:41.527Z","repository":{"id":102334609,"uuid":"62446888","full_name":"olegakbarov/facebook-messenger-devkit","owner":"olegakbarov","description":"Node.js setup for rapid development for Facebook Messenger Platform ","archived":false,"fork":false,"pushed_at":"2017-03-07T12:34:55.000Z","size":117,"stargazers_count":48,"open_issues_count":0,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-02-13T07:39:29.743Z","etag":null,"topics":["bot","facebook-messenger","heroku","nodejs","webhook"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olegakbarov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-07-02T11:02:07.000Z","updated_at":"2024-07-31T16:56:17.886Z","dependencies_parsed_at":null,"dependency_job_id":"15df37dd-5a29-4431-a77d-daae3a5533fc","html_url":"https://github.com/olegakbarov/facebook-messenger-devkit","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/olegakbarov%2Ffacebook-messenger-devkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegakbarov%2Ffacebook-messenger-devkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegakbarov%2Ffacebook-messenger-devkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegakbarov%2Ffacebook-messenger-devkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olegakbarov","download_url":"https://codeload.github.com/olegakbarov/facebook-messenger-devkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244978395,"owners_count":20541848,"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","heroku","nodejs","webhook"],"created_at":"2024-07-31T16:01:03.281Z","updated_at":"2025-03-22T15:30:41.244Z","avatar_url":"https://github.com/olegakbarov.png","language":"JavaScript","funding_links":[],"categories":["Example projects","Chatbot tools"],"sub_categories":["Messaging services"],"readme":"![DevKit](https://raw.githubusercontent.com/olegakbarov/facebook-messenger-devkit/master/logo.png)\n\n# Facebook Messenger DevKit\n\n##### What?\n\nSetup for rapid development of bots for Facebook Messenger.\n\n##### What's the trick?\n\nFacebook Messenger works via `https`, so the possibilities of local development are limited. In case you iterate fast you need to constantly redeploy your app to remote https-powered server (like Heroku, for example).\n\n##### How DevKit works?\n\nDevKit requires you to set up your app with webhook handler once. After that you have access to the stream of events via `eventsource`. There're two files: `server.js` is meant to be spinned on the remote https-powered server, while `index.js` ought to be run locally and include your bot's logic.\n\n##### What about production?\n\nYou'd better get rid of `eventsource` proxy in production. It's trival task and it's up on you.\n\n# Step-by-step tutorial\n\n1. Create app on Facebook\n\n2. Add the Validation Token and remember it as `MESSENGER_VALIDATION_TOKEN` for step 5\n\n3. [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n4. Go to your Facebook app settings and navigate to `Webhook` tab. Add your newly created Heroku app as webhook.\n\n5. Set up `MESSENGER_VALIDATION_TOKEN` in Heroku Dashboard under Settings tab (you need to click 'Reveal Config Vars')\n\n6. Get the app url and add it to `index.js` as `HEROKU_APP_URL`\n\n7. Read the [Messenger Platfrom](https://developers.facebook.com/products/messenger/) docs and go build something cool!\n\n# Project Roadmap\n\n1. Better docs\n\n2. Reusable factory functions for common tasks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegakbarov%2Ffacebook-messenger-devkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folegakbarov%2Ffacebook-messenger-devkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegakbarov%2Ffacebook-messenger-devkit/lists"}