Skip to content

An unofficial implementation of the new instagram basic display API

Notifications You must be signed in to change notification settings

loicnestler/instagram-basic-display

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

instagram-basic-display

An unofficial implementation of the new instagram basic display API

Getting Started

View https://developers.facebook.com/docs/instagram-basic-display-api/getting-started for a quick-start tutorial on how to create an instagram app.

Example code

const ig = new InstagramBasicDisplayApi({
    appId: '12345678910',
    redirectUri: 'https://example.org/',
    appSecret: '0123456765432134567876543'
})

console.log(ig.authorizationUrl)
// -> generates a user-code after successfull authorization

const code = 'usercode...'

ig.retrieveToken(code).then(data => {
    const token = data.access_token

    ig.retrieveUserNode(token).then(data => {
        console.log(data)
    })
})

About

An unofficial implementation of the new instagram basic display API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published