A Simple TypeScript / JavaScript integration with Instagram Basic Display API
Use to integrate your app's with Instagram Basic Display API or as a hands-on guide on how to develop the integration on your own.
Check out the full documentation for instructions.
To further develop this package, fork it and checkout to your local machine.
Follow the Getting Started guide regarding:
- Setting up an App in Meta's Developer Platform.
- Setting up HTTPS and adding the redirect URI to Meta's Developer Platform.
- Adding a Token Exchange Backend for development.
- Install dependencies
Run
npm install
in the local folder of the package. - Create an
.env.local
file To easily pass the Instagram App ID and Redirect URI:
VITE_IG_APP_ID=00000 # your app id
VITE_IG_REDIRECT_URI="https://..." # your full redirect uri
- Edit
/demo/App.vue
instance options:
let ig = InstagramClient.getInstance({
// ...
tokenBackendUri: "http://localhost:8000/ig_token/",
// ...
});
In case your Token Exchange Backend is exposed in a different address.
- Run the development server using:
npm run dev
Run tests using npm run test
The documentation development server can be run with npm run docs:dev
.
All documentation site files are inside the docs
folder.
Contributions are greatly appreciated! Check out the Contributing Guide for more details.
- Documentation Site: https://niryas.github.io/social-connector/
- Repository: https://github.com/niryas/social-connector
- Getting Started Guide: https://niryas.github.io/social-connector/guide/getting-started
- Contributing Guide: https://niryas.github.io/social-connector/CONTRIBUTING
django-social-connector
(Token Exchange Backend): https://github.com/niryas/django-social-connector
The code in this project is licensed under the MIT License.