Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Node instagram search example (including getting an access token)
const Instagram = require('instagram-node-lib')
Instagram.set('client_id', 'xxx')
Instagram.set('client_secret', 'xxx')
// to get an access_token
let url = Instagram.oauth.authorization_url({
redirect_uri: 'http://mysite.com'
})
url = url.replace('response_type=code', 'response_type=token')
console.log(url)
// after you've got one...
Instagram.set('access_token', 'xxx')
Instagram.tags.recent({
name: "seattle",
complete: (data) => {
console.log(data)
},
error: console.log
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.