Open ilyanoskov opened 7 years ago
@ilyanoskov Any luck?
Did it work? I'm happy to try to help. Also, make sure to never paste your API keys in public. Always store them in your bash or some hidden file within your directory. I prefer the former method and accessing them via the node process object. You can read more about how to do it here: https://medium.com/@rafaelvidaurre/managing-environment-variables-in-node-js-2cb45a55195f @ilyanoskov
You can check this library: https://github.com/venits/instagram-web-oauth It is the easiest way of getting access_token from Instagram right now.
I have been trying to use this instagram library and I have not had much success yet. I am a beginning Javascript developer and I was trying to write a simple client-side application that would authorize a user through your library and display user's full name in console. For example I would write something like this in console :
node app.js (my instagram name)
and it would return
full name is FULLNAME.
How could I implement this?
I do not understand what code I need to put where CODE is?
as you can see I was trying to print out the access token so I would know that authentication worked out but it seems like it did not.