Search code examples
apiinstagraminstagram-api

Instagram API returning only logged in user data rather than public


I am following https://github.com/sachin-handiekar/jInstagram/wiki/jInstagram-Usage

The below code only returns data posted by me while I need public data.

String tagName = "snow";
TagMediaFeed mediaFeed = instagram.getRecentMediaTags(tagName);

List<MediaFeedData> mediaFeeds = mediaFeed.getData();

Solution

  • Had the same issue, New Instagram API - How do you request tagged media?

    That is the expected sandbox behavior.