{"id":18264076,"url":"https://github.com/biggaji/insta-webhook","last_synced_at":"2025-10-29T19:36:06.093Z","repository":{"id":212002557,"uuid":"730433279","full_name":"biggaji/insta-webhook","owner":"biggaji","description":"A flexible and easy-to-use Node.js boilerplate for implementing Instagram webhook functionality.","archived":false,"fork":false,"pushed_at":"2024-03-29T14:06:37.000Z","size":64,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T19:47:27.214Z","etag":null,"topics":["graphapi","instagram","instagram-api","instagram-webhook","meta","webhook"],"latest_commit_sha":null,"homepage":"","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/biggaji.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":"2023-12-11T23:10:36.000Z","updated_at":"2023-12-12T10:49:35.000Z","dependencies_parsed_at":"2023-12-12T03:23:55.618Z","dependency_job_id":"f5a7cae8-dc64-4b48-8e05-42faa8825c43","html_url":"https://github.com/biggaji/insta-webhook","commit_stats":null,"previous_names":["biggaji/insta-webhook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biggaji%2Finsta-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biggaji%2Finsta-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biggaji%2Finsta-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biggaji%2Finsta-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biggaji","download_url":"https://codeload.github.com/biggaji/insta-webhook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247956098,"owners_count":21024514,"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":["graphapi","instagram","instagram-api","instagram-webhook","meta","webhook"],"created_at":"2024-11-05T11:13:38.911Z","updated_at":"2025-10-29T19:36:01.053Z","avatar_url":"https://github.com/biggaji.png","language":"JavaScript","readme":"# Instagram Webhook Boilerplate\n\n![Node.js](https://img.shields.io/badge/Node.js-v20.x-green.svg)\n![License](https://img.shields.io/badge/License-MIT-blue.svg)\n\nA flexible and easy-to-use Node.js boilerplate for implementing Instagram webhook functionality.\n\n## Features\n\n- **Instagram Verification:** Handles verification requests to ensure the webhook is properly set up.\n- **Payload Verification:** Compares the received signature with the locally generated HMAC signature for\n  payload integrity.\n- **Flexible Structure:** Easily customizable and extendable for your specific use cases.\n- **Tested:** Includes a comprehensive test suite using Chai and Supertest.\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n  - [Configuration](#configuration)\n- [Usage](#usage)\n- [Testing](#testing)\n- [References](#references)\n\n## Getting Started\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) (v14.x recommended)\n- [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)\n\n### Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/biggaji/insta-webhook.git\n```\n\nInstall dependencies:\n\nUsing `npm`\n\n```bash\ncd insta-webhook\nnpm install\n```\n\nUsing `yarn`\n\n```bash\ncd insta-webhook\nyarn\n```\n\n### Configuration\n\nCreate a `.env` file in the root directory and configure the following variables:\n\n```\nMETA_HUB_VERIFY_TOKEN=\nMETA_APP_SECRET=\n```\n\nReplace `META_HUB_VERIFY_TOKEN` and `META_APP_SECRET` with your actual Instagram Hub Verify Token and App Secret.\n\n### Usage\n\n#### Verifying Requests\n\nIt perfectly handles Instagram verification requests sent by Meta GraphAPI to verify your webhook endpoint.\nThe endpoint `/meta/webhook/verify_request` handles that. You can modify the API path to suit your use case.\nCheck the `index.js` file for code implementation.\n\n#### Handling Instagram Webhook Events\n\nInstagram webhook events are sent to this path `/meta/webhook/instagram`. Be sure to modify the logic to\nimplement your desired business logic in the `index.js` file. For now it only verifies the webhook sha256\nsignature, saving you the time for writing the logic to verify and compare signatures. Check the `index.js`\nfile for code implementation.\n\n### Testing\n\nRun the test suite using the following command:\n\n```bash\nnpm test\n```\n\n### References\n\n[Meta Webhook](https://developers.facebook.com/docs/graph-api/webhooks/getting-started)\n\n[Set Up Webhooks for Instagram](https://developers.facebook.com/docs/instagram-api/guides/webhooks)\n\n[Instagram Object Reference](https://developers.facebook.com/docs/graph-api/webhooks/reference/instagram/v12.0)\n\nThank you and Happy coding!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiggaji%2Finsta-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiggaji%2Finsta-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiggaji%2Finsta-webhook/lists"}