https://github.com/wahengchang/instagram-oauth-nodejs-server
Node.js server for Intagram-API OAuth purpose.
https://github.com/wahengchang/instagram-oauth-nodejs-server
example instagram instagram-api nodejs oauth oauth2 tutorial
Last synced: about 1 year ago
JSON representation
Node.js server for Intagram-API OAuth purpose.
- Host: GitHub
- URL: https://github.com/wahengchang/instagram-oauth-nodejs-server
- Owner: wahengchang
- Created: 2017-04-30T09:47:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-30T10:55:35.000Z (about 9 years ago)
- Last Synced: 2025-03-22T01:38:15.657Z (about 1 year ago)
- Topics: example, instagram, instagram-api, nodejs, oauth, oauth2, tutorial
- Language: JavaScript
- Size: 4.88 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# instagram-oauth-nodejs-server
It is a template is ready to use, setting up a Node.js server for Intagram-API OAuth purpose.
[Blog](https://hackernoon.com/instagramapi-set-up-nodejs-server-to-get-access-token-in-3-step-34c66039cffc)
## Things we need
- Create an Instagram Application
- Copy Client ID and Client Secret to this project
- Prepare a domain name, where Node.js server is hosted, add it to Valid redirectURL

## Run
The Node.js server have to be run on the server where match the field `Valid redirectURL` in Intagram Configuration
Run
```
$ git clone https://github.com/wahengchang/instagram-oauth-nodejs-server
$ cd instagram-oauth-nodejs-server
$ npm isntall
```
Then set up:
- process.env.INSTANGRAM_CLIENT_ID
- process.env.INSTANGRAM_CLIENT_SECRET
- process.env.INSTANGRAM_BASE_URL
```
$ npm start
```
## Get access token
```
GET https://www.instagram.com/oauth/authorize?client_id={CLIENT_ID}&redirect_uri={http://youhost/authorize_user}&response_type=code
```
## Reference
- [https://www.instagram.com/developer/authentication](https://www.instagram.com/developer/authentication)
- [https://www.npmjs.com/package/instagram-node](https://www.npmjs.com/package/instagram-node)