Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.3 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.3 KB

instagram-oauth-nodejs-server

It is a template is ready to use, setting up a Node.js server for Intagram-API OAuth purpose.

Blog

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

instaggram

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