I have a small problem with my app that I need to show the ‘friends’ of the user who has logged in with twitter. The problem comes that at the moment that I think I only have 2 options:
Show all ‘friends’ which will include those who arent using the app and could take a very long time to display. Even pulling 200 at a time and ordering them seems quite clunky to a user.
Retrieve the userid of all ‘friends’ at 5000 at a time (per this https://dev.twitter.com/rest/reference/get/friends/ids) then look them up in my local db to see if there are matching ids, then requery twitter again to resolve it to a user name (per this i think https://dev.twitter.com/rest/reference/get/users/lookup)
The problem with #2 of course is local IO & the number of api requests where a user has 1000’s of users.
Ive searched through this forum and found this from 2012 https://twittercommunity.com/t/how-to-retrieve-all-the-users-friends-that-have-authorized-an-app/8739 which is a flat out no you cant do that.
Question is, with the updates to the twitter for developers is there now a straightforward way to find users who have ‘authorised’ the same app & are also friends (being followed by) with a set userid?