Related questions with answers which are no more valid:
As I am exploring the Instagram API and my app is in sandbox mode, I am surprised by API at every step. This should not be condition of public API
( who cares !).
The Api end point I am trying to is:
https://api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN
Well the required parameters are:
- access_token [A valid access token.]
- max_tag_id [Return media after this max_tag_id.]
- min_tag_id [Return media before this min_tag_id.]
- count [Count of tagged media to return.]
Since I dont know how to get or generate max_tag_id
and min_tag_id
, I skipped and tried this :
https://api.instagram.com/v1/tags/jokes/media/recent?access_token=x.y.x&count=10
The response I get is:
{"pagination": {"deprecation_warning": "next_max_id and min_id are
deprecated for this endpoint; use min_tag_id and max_tag_id instead"},
"data": [], "meta": {"code": 200}}
May be I need max_tag_id
and min_tag_id
and lets trying putting
rang values 1 to 10 ( I dont know how to generate these values )
https://api.instagram.com/v1/tags/jokes/media/recent?access_token=x.y.x&count=10&min_tag_id=1&max_tag_id=10
The response I get is:
{"meta": {"code": 400, "error_type": "APIInvalidParametersError",
"error_message": "max_id must not be a media id."}}
Now the error is misleading, I never provided parameter max_id
as you can see.
Please help to reduce this insanity
For those who are not getting the question:
- What is the valid value for
max_tag_id
and min_tag_id
- What is the meaning of
max_id must not be a media id.
when there is no such parameter passed etc ..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…