samir
samir

Reputation: 77

Instagram API & IOS

I have no idea why instagram team never thought to be more friendly with mobile apps integration All what am trying to do is to read the JSON of the posts for a specific HashTag in my mobile app, and all what i found is a very basic tutorial how to get access token for the user, and million guides to this page !!

and when i try to check the result directly on the browser https://api.instagram.com/v1/tags/challenge/media/recent?access_token=TOKEN

All i got is this:

{"pagination":{"deprecation_warning":"next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead"},"meta":{"code":200},"data":[]}

Does any one has any idea what steps exactly should i follow to get the needed info? cuz spending too much time on this part upsets me!!

For instance, i followed exactly this tutorial to get the authorization and access token in my app

Upvotes: 1

Views: 969

Answers (1)

krisrak
krisrak

Reputation: 12952

You are in Sandbox mode, so it will return only media from your sandbox authorized user, here is information about this:

As another example, let's consider an endpoint that returns a list of media: /tags/{tag-name}/media/recent. The response returned by this endpoint will contain only media with the given tag, as expected. But instead of returning media from any public Instagram user, it will return only media that belongs to your sandbox users, restricted to the last 20 for each user.

Here is the link to more details about Sandbox mode: https://www.instagram.com/developer/sandbox/

Once your app is approved, you will see all media.

Try searching for a hashtag that you have posted with your account, that will showup in result

Upvotes: 1

Related Questions