Socket
Book a DemoInstallSign in
Socket

instagram-basic-display

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instagram-basic-display

> An unofficial implementation of the new instagram basic display API

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
18
-30.77%
Maintainers
1
Weekly downloads
 
Created
Source

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)
    })
})

FAQs

Package last updated on 26 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.