Instagram Deeplink
Installation
npm i instagram-deeplink
Usage
- Add this middleware:
app;
- Chill 😎.
You can skip first argument to make middleware work from root path
How it works
Content type | User visits | iOS | Others |
---|---|---|---|
Profile | https://your_host.com/insta/username | instagram://user?username=username | https://instagram.com/username |
Post | https://your_host.com/insta/p/B6f78z7jr42/ | instagram://media?id=B6f78z7jr42 | https://instagram.com/p/B6f78z7jr42/ |
Hashtag | https://your_host.com/insta/explore/tags/js/ | instagram://tag?name=js | https://instagram.com/explore/tags/js/ |
Location | https://your_host.com/insta/explore/locations/213174824/ | instagram://location?id=213174824 | https://instagram.com/explore/locations/213174824/ |
Example
Simple example is provided in /service
folder.
;; const app = ;app;app;