eric88tchong / Rinstapkg

API implementation of Instagram
https://eric88tchong.github.io/Rinstapkg/
Other
8 stars 0 forks source link

ig_auth() results in an error #1

Open jeffboichuk opened 5 years ago

jeffboichuk commented 5 years ago

I cannot get passed this error message while trying to authenticate (my Instagram username and password are saved in my .Rprofile file):

library(Rinstapkg)

ig_auth(
   username = Sys.getenv("IG_USERNAME"),
   password = Sys.getenv("IG_PASSWORD")
)
#> Your account has been flagged to enter a challenge code. Go to https://instagram.com, login, and receive a code via email or text message to re-enable programmatic access.
#> Error in ig_auth(username = Sys.getenv("IG_USERNAME"), password = Sys.getenv("IG_PASSWORD")): challenge_required

Created on 2019-06-10 by the reprex package (v0.3.0)

The first time I ran the ig_auth() function, Instagram sent me an email with the subject "Verify Your Account." That email included a code that I put into a form on instagram.com.

Every subsequent time I've run the ig_auth() function, I've received the same error. When I go to instagram.com, I'm sent to a form with these words:

We Detected An Unusual Login Attempt Android | Jun 10, 06:55AM Charlottesville, Virginia

To secure your account, let us know if it was you.

I select "This was me" and try to run the code again to no avail.

Thanks!

shreyasmokadam commented 5 years ago

I used to get the same error, I was working from a VPN / Virtual machine based out of a different country.

This is because of Instagram's security measures. Don't use any VPNs for the first time. The IP of your machine should be in the same area as to where you usually use your instagram App from. Try after about 24 hours, it should work. After your first authentication, repeated authentications should work from other IPs as well.

jeffboichuk commented 5 years ago

Thanks, @shreyasmokadam! I should have closed this issue because after waiting a day everything was fixed (i.e., the challenges stopped and I was able to authenticate).

jeffboichuk commented 5 years ago

I cannot get passed this error message while trying to authenticate (my Instagram username and password are saved in my .Rprofile file):

library(Rinstapkg)

ig_auth(
   username = Sys.getenv("IG_USERNAME"),
   password = Sys.getenv("IG_PASSWORD")
)
#> Error: Status: fail
#> Message:

Created on 2019-08-20 by the reprex package (v0.3.0)

I've even tried to use another account's username and password, but the function is returning the same error.

sccmckenzie commented 4 years ago

I am having the same exact issue described above using Instagram username & password. I have tried both CRAN & developer versions.

jcabeza1980 commented 4 years ago

I have the same problem

library(Rinstapkg)

ig_auth( username = "IG_USERNAME", password = "IG_PASSWORD" )

Error: Status: fail Message:

heinzsteinhoff commented 3 years ago

Error happening here too.

ig_auth() Erro: Not implemented yet

kurtawirth commented 3 years ago

Error happening here too.

ig_auth() Erro: Not implemented yet

Same issue.