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

authentication error with instagram collection (Windows 7, R 3.1.1, Firefox default browser) #11

Open
rjackland opened this issue Apr 14, 2016 · 4 comments
Labels

Comments

@rjackland
Copy link
Collaborator

Running the following line from the tutorial:

g_instagram_ego_senators <- 
Authenticate("instagram", appID = myAppId, appSecret = myAppSecret) %>%
  SaveCredential("InstagramCredential.RDS") %>%
  Collect(ego = TRUE, username = c("adam_kinzinger","senatorreid")) %>% 
  Create

did open the browser (after pressing enter, as usual), but once I'd authenticated with Instagram, I got the following message in the browser:

{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}

As we've seen, it works fine with Linux and Mac, but maybe we need to adjust something for Windows.

Note: with IE as the default browser, I didn't even get this far, but I don't think we need to support IE.

This is not urgent.

@rjackland rjackland added the bug label Apr 14, 2016
@timothyjgraham
Copy link
Contributor

I have tested it with my API credentials and everything worked OK. Have sent you an email with my creds, so you can verify. Sounds like the redirect URI needs to be amended. It is usually http://localhost:1410/, but it could be something else depending on your setup.

@rjackland
Copy link
Collaborator Author

Thanks - I should have mentioned that I tested it straight after with Linux machine and my creds and it worked fine, so it is to do with Win7 setup, I think. I'll try a VM with Win7 and see if I can provide any further debug info. I guess my concern is that http://localhost:1410/ may not be a valid URL for Win machine?

@timothyjgraham
Copy link
Contributor

Ahh, OK. Perhaps try http://127.0.0.1 instead of localhost ?

@timothyjgraham
Copy link
Contributor

@rjackland - you could check out some of the solutions on this page. https://www.drupal.org/node/2140479

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

No branches or pull requests

2 participants