Searching/filtering friends list based on screen name - Response results

user
search
following

#1

So I’m hitting /friends/list.json and passing in a screen_name hoping to get users related to it at least. But I’m getting back users that I’m not even following. Is this expected or is there a work-around?

Thanks


#2

Not expected. Can you provide more details of the specific call you’re making, parameters, and expected / unexpected results?


#3

This is the url: https://api.twitter.com/1.1/friends/list.json?screen_name=CNN&skip_status=true&include_user_entities=false

I’m expecting to get CNN’s account and/or accounts related to the screen name that I follow, but out of the 20 results none are accounts that I follow.


#4

GET friends/list will return the friends of the specified user without considering the authenticated users friends.

If you want to get the common friends between two users you you would have to do something like GET friends/ids for both users and find the union of the results.


#5

Well I’m just trying to get the friends of the authenticated user(me) mainly to create a group of users that you follow. I was hoping to use the screen_name field as a way to filter down the users since I don’t want to have to scroll through hundreds of accounts looking for a few. Is this possible in any way?


#6

bump


#7

friends/list is simply a list of accounts someone follows. It does not provide any search or filtering features. If you want to work with a subset of the list you’ll have to do that in your code.


closed #8

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.