sachin-handiekar / jInstagram

A Java library for the Instagram API.
MIT License
385 stars 167 forks source link

How to get list of following users of an profile? #199

Open echogit opened 7 years ago

echogit commented 7 years ago

I'm trying to use the API, already can get the profile information, but can't get around to get the list of the following users of my instagram, it returns empty list, could you provide one e working example?

  String userId = instagram.getCurrentUserInfo().getData().getId();
        UserFeed following = instagram.getUserFollowList(userId);
//        Pagination pagination = following.getPagination();
//        String nextCursor = pagination.getNextCursor();
//        instagram.getUserFeedInfoNextPage(pagination);
        List<UserFeedData> users = following.getUserList();

I tried to use this pagination (commented), but really couldn't make it work.

echogit commented 7 years ago

I would really appreciate if someone could show me some example as how to get a list of the following users. Cant get it to work.

Cavayman commented 7 years ago

Same issue, do you know answer? @echogit UPDT: How I understood I couldn't get all followers & followedBy, because of SANDBOX mode, that is default on Instagram when you only created your app.