Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- Twitter twitter = new TwitterFactory().getInstance();
- long lCursor = -1;
- IDs friendsIDs = twitter.getFriendsIDs(user.getId(), lCursor);
- do {
- System.out.println("in do while iteration");
- for (long i : friendsIDs.getIDs()) {
- System.out.println("Follower ID #" + i);
- System.out.println(twitter.showUser(i).getName());
- }
- } while (friendsIDs.hasNext());
- } catch (TwitterException te) {
- te.printStackTrace();
- System.out.println("Failed to get friends' ids: " + te.getMessage());
- System.exit(-1);
- }
Add Comment
Please, Sign In to add comment