{"id":16551417,"url":"https://github.com/blackode/facebook_chatbot","last_synced_at":"2026-06-05T12:31:22.144Z","repository":{"id":83817033,"uuid":"464087120","full_name":"blackode/facebook_chatbot","owner":"blackode","description":"Mind Valley test","archived":false,"fork":false,"pushed_at":"2022-03-19T02:50:54.000Z","size":3790,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T23:59:09.283Z","etag":null,"topics":["chat-bot","elixir","facebook","facebook-api","facebook-chatbot"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/blackode.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":"2022-02-27T09:05:55.000Z","updated_at":"2022-05-04T02:56:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"99cd6639-4c00-4a01-bf1d-c01cbe9c5b3f","html_url":"https://github.com/blackode/facebook_chatbot","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/blackode%2Ffacebook_chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackode%2Ffacebook_chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackode%2Ffacebook_chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackode%2Ffacebook_chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackode","download_url":"https://codeload.github.com/blackode/facebook_chatbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241883908,"owners_count":20036663,"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":["chat-bot","elixir","facebook","facebook-api","facebook-chatbot"],"created_at":"2024-10-11T19:37:15.500Z","updated_at":"2026-06-05T12:31:22.130Z","avatar_url":"https://github.com/blackode.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome FaceBook Chat Bot\n\n![Project Out Line Image](assets/digi_coin_header.jpg)\n\n\n## Development Technologies\n\nAt the moment of developing this project, I used the following versions of\nElixir and Erlang.\n\n```elixir\niex\u003e mix hex.info\n\nHex:    1.0.1\nElixir: 1.13.0\nOTP:    24.0.4\n\nBuilt with: Elixir 1.13.0 and OTP 22.3\n```\n## Export System variables\nThe following variables are required to be exported\n\n```sh\nFACEBOOK_PAGE_ACCESS_TOKEN = \u003cpage_access_token\u003e\nFACEBOOK_WEBHOOK_VERIFY_TOKEN = \u003crandom_string used while adding webhook\u003e\n```\n\n# Running Application\n#### mix release digi_coin\n\n```\nmix deps.get\nmix release digi_coin\n```\n\nI added the releases path to `./releases` \n\nSo, we are provided with following commands.\n\n```\nRelease created at releases!\n\n    # To start your system\n    releases/bin/digi_coin start\n\nOnce the release is running:\n\n    # To connect to it remotely\n    releases/bin/digi_coin remote\n\n    # To stop it gracefully (you may also send SIGINT/SIGTERM)\n    releases/bin/digi_coin stop\n\nTo list all commands:\n\n    releases/bin/digi_coin\n\n```\n\n#### iex -S mix\n\nRunning Interactively\n\n# Receiving Updates as Webhooks\n\n## Expose a local web server to the internet\n\nThe `ngrok` will allow local webserver running to internet. So, we can use our local webserver url as webhook url at `blocknative`.\n\nrun the following command\n\n```shell\nngrok http 4000\n```\n\nYou will see the following output.\n\n```\nSession Status                online\nVersion                       2.3.40\nRegion                        United States (us)\nWeb Interface                 http://127.0.0.1:4040\nForwarding                    http://14fc-136-185-52-176.ngrok.io -\u003e http://localhost:4000\nForwarding                    https://14fc-136-185-52-176.ngrok.io -\u003e http://localhost:4000\nConnections                   ttl     opn     rt1     rt5     p50     p90\n```\n\nThe urls may look different as `ngrok` assigns random hexadecimal names to the HTTP tunnels it opens.  \nHere the url is `http://14fc-136-185-52-176.ngrok.io` which will act our webhook base.\n\nMake sure you add `http://14fc-136-185-52-176.ngrok.io/blocknative/webhook` as webhook url for `facebook`.\n\n## Project Challenges\n\n- Framing of Templates and Organizing the modules\n- Message Handler for identifying type of web hook events\n- Using docker to releases with Elixir.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackode%2Ffacebook_chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackode%2Ffacebook_chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackode%2Ffacebook_chatbot/lists"}