Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ig.user returns 404 error #106

Open
ilyanoskov opened this issue Nov 3, 2016 · 2 comments
Open

ig.user returns 404 error #106

ilyanoskov opened this issue Nov 3, 2016 · 2 comments

Comments

@ilyanoskov
Copy link

ilyanoskov commented Nov 3, 2016

here is my simple code and it returns 404 error. I can't understand why

 var express = require('express');                                                   
   var api = require('instagram-node').instagram();                                    
   var app = express();                                                                
                                                                                       
   var insta = 'http://instagram.com';                                                 
   var username = process.argv[2];                                                     
   var url = insta + '/' + username;                                                   
                                                                                       
                                                                                       
  api.use({ access_token: 'xxxxxxxxxxxxxxxxx'  });   
  api.use({ client_id: 'xxxxxxxxxxxxx',                            
           client_secret: 'xxxxxxxxxxx' });                      
                                                                                      
                                                                                      
  api.user(username, function(err, result, remaining, limit) {                        
      if (err) {                                                                      
          console.log('there was an error ' + err.status_code);                       
      }                                                                               
     else console.log(result);                                                       
  });                  
@statefull
Copy link

The API is out of date and it seems is not longer maintained. I'm going to fork it and start the update to be compliant with the new instagram API.

@ilyanoskov
Copy link
Author

@statefull I am trying to write a simple console script that would authenticate and print basic user info.
However, I do not want to do it in browser and try to figure out how to do so in console. Do you think there is a way? How can I get access token without any user interaction? Sorry to bother you with questions like this but I don't have anybody to ask, may be you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants