{"id":26701678,"url":"https://github.com/tarequzzaman/fastapi-messenger-bot","last_synced_at":"2026-05-01T10:31:54.703Z","repository":{"id":47532578,"uuid":"398974030","full_name":"Tarequzzaman/FastApi-Messenger-Bot","owner":"Tarequzzaman","description":"The is the base project for the Facebook Messenger bot implemetation","archived":false,"fork":false,"pushed_at":"2021-08-25T16:24:08.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T01:34:32.002Z","etag":null,"topics":["bot","chatbot","chatbot-framework","fastapi","fastapi-bot","messenger-bot","messenger-bot-fastapi","nlp","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tarequzzaman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-23T04:36:48.000Z","updated_at":"2024-07-14T14:16:28.000Z","dependencies_parsed_at":"2022-09-08T15:51:25.749Z","dependency_job_id":null,"html_url":"https://github.com/Tarequzzaman/FastApi-Messenger-Bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tarequzzaman/FastApi-Messenger-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tarequzzaman%2FFastApi-Messenger-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tarequzzaman%2FFastApi-Messenger-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tarequzzaman%2FFastApi-Messenger-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tarequzzaman%2FFastApi-Messenger-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tarequzzaman","download_url":"https://codeload.github.com/Tarequzzaman/FastApi-Messenger-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tarequzzaman%2FFastApi-Messenger-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32494270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","chatbot","chatbot-framework","fastapi","fastapi-bot","messenger-bot","messenger-bot-fastapi","nlp","python"],"created_at":"2025-03-27T01:29:49.001Z","updated_at":"2026-05-01T10:31:54.681Z","avatar_url":"https://github.com/Tarequzzaman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Facebook Messenger FastAPI\n\nCreate environments with Python3.7\n\nInstall reqiments\n\n\n  ```\n    pip install -r requirements.txt\n  ```\n\nConvert `env.example` to `.env` and fullfill the  variables \n\u003cbr\u003e\u003cbr\u003e\n`FB_APP_SECRET`=\u003cbr\u003e\n`FB_VERIFY_TOKEN`=\u003cbr\u003e\n`FB_PAGE_ACCESS_TOKEN`=\u003cbr\u003e\n\n\nfor collecting this three variable you have  to follow the boelow steps\n\n1. Visit a facebook page \n2. Visit https://developers.facebook.com/apps/?show_reminder=true\n3. If you don't have account on developers facebook then create account \n4. Create an new app on https://developers.facebook.com/apps/?show_reminder=true\n4. `FB_APP_SECRET` is find to `Dashboard`-\u003e`Setting`-\u003e`Basic` (App Secret)\n5. Click on products then setup `Messenger`\n6. You got `FB_PAGE_ACCESS_TOKEN`   from -\u003e\u003cbr\u003e\n     Go to `Access Tokens` section and click on the `Add or remove page` then click on `Generate Token` Button copy this token. \n7. `FB_VERIFY_TOKEN` is a random token more than 8 char\n8. You collected all three variable required for you project\n\n\nRun this project using: \n\n```\nuvicorn app.main:app --reload\n```\n\nFinally we run this project. But for testing the bot we need to add callback url to messenger app setting Webhooks section. One problem arise hare. For callback url you need a secure url like `https`.\n\n\nYou need to download Ngrok from   here: https://ngrok.com/download\n\nGo to the downloaded folder using teminal and type:\n```\n./ngrok http 8000\n```\n\nIt will generate 2 links one is http and another one is https. Just copy the https link.   \n\n\nNow we are ready with our https secure url. Go to the app deshboard  `Messenger` -\u003e`Setting` -\u003e`Webhook` and add the `Callback URL` as \n\n```\nhttps link from ngrok/webhook\n```\nexample: \n```\nhttps://6a42d3b4.ngrok.io/webhook\n```\n\n`Verify Token` is the same of `FB_VERIFY_TOKEN`\n\nthen click on `Varify and Save` \n\nNow you can send message from your messener to your facebook page inbox","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarequzzaman%2Ffastapi-messenger-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarequzzaman%2Ffastapi-messenger-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarequzzaman%2Ffastapi-messenger-bot/lists"}