pablobarbera/instaR

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

alezonin opened this issue · 0 comments

After registering a client in Instagram and having back my Client ID and Client Secret I got this error.

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

The script used is this (app_id and app_secret are fictitious)

install.packages("instaR")
library(instaR)


my_oauth <- instaOAuth(app_id="xxxxxxxx", app_secret="yyyyyyyy")
save(my_oauth, file="my_oauth")

alessandrozonin <- getUserMedia( username="alessandrozonin", token=my_oauth )
comments <- getComments( alessandrozonin$id[1], token=my_oauth )

thank you for your time