mckelvey / instagram-node-lib

The Instagram Node Lib is a helper library for node that makes communicating with the Instagram API easy.
http://david.mckelveycreative.com/
Other
303 stars 49 forks source link

How do you use this on localhost? I get cors issues. #46

Closed rublev closed 7 years ago

rublev commented 7 years ago

I get the following error in my console on localhost when trying to get data for my user Instagram.users.self():

image

michaeleekk commented 7 years ago

I think this library is supposed to run on the nodejs side instead of in the browser. I found this one for browser quite nice: https://github.com/stevenschobert/instafeed.js

mckelvey commented 7 years ago

Thanks @michaeleekk — yes indeed, instagram-node-lib is designed to be used with node.js in a server environment.