[Facebooker-talk] Retrieving an array of users given an array of uid's

Chris Johnson cjohnson at socialvibe.com
Mon Feb 23 21:42:12 EST 2009


Hi there.

Let's say I have a list of 20 uids (call it "cool_friends").  These  
are friends of the current user, and I'd like to retrieve User objects  
for each friend (so that I can access first_name and last_name).

I know I could do something like:
facebook_session.user.friends!(:uid, :first_name, :last_name)

With that full friend list, I can iterate over it and match users to  
the list of "cool_friends", but that seems cumbersome and pulls back  
more users (all friends) than I need.

Can I request an array of users based on a list of UIDs?

Cheers,
Chris


More information about the Facebooker-talk mailing list