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

getMediaAtLocation always return empty array #243

Open
reeder32 opened this issue Jun 27, 2016 · 2 comments
Open

getMediaAtLocation always return empty array #243

reeder32 opened this issue Jun 27, 2016 · 2 comments

Comments

@reeder32
Copy link

[engine getMediaAtLocation:self.locationCoordinate count:50 maxId:nil distance:self.distance withSuccess:^(NSArray<InstagramMedia *> * _Nonnull media, InstagramPaginationInfo * _Nonnull paginationInfo) {
NSLog(@"media is %@and self.locationCoordinate is %f,%f and distance is %f", media, self.locationCoordinate.latitude, self.locationCoordinate.longitude, self.distance);
} failure:^(NSError * _Nonnull error, NSInteger serverStatusCode) {
NSLog(@"error is %@ and server status code is %ld", error.localizedDescription, (long)serverStatusCode);
}];

self.locationCoordinate and self.distance are dynamically set when user presses a button. I have tested the accessToken and I am not getting any errors. It is simply just returning an empty array. Do I need to change settings on instagram site? I am currently in sandbox mode, but trying to go live in the next week or so. Thanks for any feedback/answers.

@reeder32 reeder32 reopened this Jun 27, 2016
@davebcn87
Copy link
Contributor

@reeder32 I'm having the same problem with other requests in Sandbox mode. When trying to find users I get no error and an empty array of results.

Have you discovered what is happening?

@dielsonsales
Copy link

dielsonsales commented Jan 18, 2017

Same problem with getMediaWithTagName here, also in Sandbox mode. After requesting the public_content permission, it's not giving me any errors, but the array returned is always empty.

Update: Managed to fix it by posting the content from my own user. It seems only the sandbox approved users' contents are visible from the sandbox mode. See: http://stackoverflow.com/questions/33820651/no-pagination-information-using-instagram-api

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

3 participants