Skip to content

wahengchang/instagram-oauth-nodejs-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published