Comments (9)
John, I have the same problem...
from instar.
Hi, I seem to have the same problem.
When you're in sandbox mode (which is the default) you don't have any permissions at all.
By the way, you have to add a company name, email and link to privacy policy to even unlock the abiloty to put permissions under review.
If you try to start a submission (even for public_content), no matter what reason you provide, they shut you down. There're only a couple that works, yet, not having an official privacy policy makes it pretty stupid to send it for review anyway. They also demand things like screencast of your app, etc.
In other words, it seems like Instagram made their API connection unusable unless you want to officially launch a business or something like that.
I may be missing something, but both Facebook's and Instagram's are so limited and enclosed that you might as well just scrape that data.. it's a pity
from instar.
Hi,
I have the same error (Error in x[[field]] : subscript out of bounds
) - but do I have a token which is out of sandbox, so I suspect this isn't the issue. When I build the URL manually and then paste into a browser, then I get the correct API output, so it seems its a error in processing the output.
Looking through the code x[[field]]
seems to happen in the unlistWithNA
function, so it's possible the API output has changed slightly which has thrown this off.
Let me know if it would be useful to send example output etc as likely this is just a parsing issue
Best
Alan
from instar.
Took a look through the source code - the issue seems to be in the searchListToDF
funciton, which is trying to unlist the data to build a dataframe.
I suspect the API output was originally a nested list, which needed lots of parsing, however, now the content$data element is a dataframe, so the unlisting code falls over. By commenting out this step and just letting the dataframe flow through, I got a nice dataframe of posts back.
Two columns remain as lists ($tags and $users_in_photo'
), both of which are ok for me as lists inside the dataframe.
For anyone else looking to make the same change, it's in getUserMedia
line 76. I just commented this out and replaced with df <- content$data
.
from instar.
@alanault Thanks so much for reporting this bug. Could you submit a pull request? Unfortunately I don't have access to a token out of sandbox anymore, so I cannot test this on my end. I'm probably going to take this package out of CRAN anyway, since it seems Instagram has been reluctant to approve apps for research purposes. (If you've had any success and would be willing to share your experience, either here or via email, I would also really appreciate it.)
from instar.
Hi, I'm having the same problem as above, with a simple request:
> info <- getUser(username = MYUSERNAME, token = token)
Error in content$data[[1]]$id : $ operator is invalid for atomic vectors
Debugging the getUser()
function I see that everything works up to line:
userid <- as.numeric(content$data[[1]]$id)
I think the [[1]]
part is not necessary, in fact as.numeric(content$data$id)
correctly returns the numeric ID.
Is this related to the Sandbox API account?
from instar.
Have been playing around with it and indeed the response from the API has changed. This appears in more than just the ones that @MicheleVNG has edited. I don't know if I'll have any chance to come up with a thorough update anytime soon though.
from instar.
I was having the same problem but this time with data I gathered from Google Analytics using RGoogleAnalytics Package.
anytime(ga_data$date)
date | sessions
20170705 1403
20170706 403
20170707 1103
20170708 2403
from instar.
I am facing the same issue. I have a token which is in the sandbox mode. It is able to pull in data fine for getUserMedia for my account but gives subscript out of bounds error for getcomments. Any help would be appreciated
from instar.
Related Issues (20)
- Error in getUser function
- Verbosity by getFollows() and getFollowers()
- getUserMedia limited to 20 posts HOT 1
- searchInstagram() failure HOT 1
- Error in callApi and get Usser HOT 4
- Error in get_oauth_sig() : OAuth has not been registered for this session HOT 6
- Error in instaOAuth HOT 11
- http error 400 bad request when trying to get a token HOT 5
- Issue with ReadMe.md HOT 1
- Error in content$data[[1]]$id : $ operator is invalid for atomic vectors HOT 1
- Error in content$data[[1]]$id : $ operator is invalid for atomic vectors
- to get comments
- Cannot find funtion instaOAuth HOT 4
- Error in x[[field]] : subscript out of bounds
- {"error_type": "OAuthException", "code": 400, "error_message": "Redirect URI does not match registered redirect URI"}
- Bad Request (HTTP 400). Failed to get an access token. HOT 3
- getUserMedia is not using the paginations as it should
- Error Crawling Data Twitter With R Studio
- Instagram Legacy API permission ("Basic Permission") was disabled on June 29, 2020 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instar.