Reputation: 31
I always get empty JSON
response by
https://api.instagram.com/v1/locations/LOCATION-ID/media/recent?access_token=ACCESS-TOKEN
e.g. api.instagram.com/v1/locations/140831586/media/recent?access_token=ACCESS-TOKEN
, which is for Museum of Modern Art (MoMA)
The JSON
Response:
{"pagination":{},"meta":{"code":200},"data":[]}
I tried some other location IDs, all of the results were empty too.
Any suggestions?
NOTE:
My access_token is generaged in Sandbox mode with
&scope=basic+public_content+follower_list+comments+relationships+likes. It works fine for location search "/locations/search?lat=40.761397&lng=73.976986&distance=5000&access_token=ACCESS-TOKEN"
Upvotes: 3
Views: 1363
Reputation: 75
I get empty data as well and I have public_content permission. But when using following console: https://apigee.com/console/instagram I get the recent media for specific location. Nothing mentioned in documentation for Instagram API sandbox mode but I think you need a live app (although in sandbox mode all features should be available)
Update: You can get media using app in Sandbox mode, but only media uploaded from the Sandbox Users are displayed.
Upvotes: 2