Friends list of a friend using Twitter4J

前端 未结 7 1028
旧时难觅i
旧时难觅i 2021-01-12 23:40

How can I obtain the friends list of a friend or follower using Twitter4J?

Using getFriendsId(), I\'m only able to retrieve the friend\'s/follower\'s list of that cu

7条回答
  •  温柔的废话
    2021-01-13 00:28

             PagableResponseList friendlist= twitter.getFriendsList(user.getScreenName(), -1);
    
             int sizeoffreindlist= friendlist.size();
    
             for(int i=0;i

    It will provide you a list of 20 friends as the default limit is 20

提交回复
热议问题