Allen Walker
2008-Jul-31 19:39 UTC
[Facebooker-talk] timeout occurring getting all friend uids thru facebooker
What I want to do is get a list of all friend uids for a particular
user. My logic:
------
facebook_friend_ids = []
for friend in facebook_session.user.friends
facebook_friend_ids << friend.uid
end
-----
the problem is this is taking way too long for anyone with 20 or more
friends. What''s a quicker way to do this, even if I have to get outside
of the facebooker object?
thanks
BJ Clark
2008-Jul-31 19:57 UTC
[Facebooker-talk] timeout occurring getting all friend uids thru facebooker
params[fb_sig_friend_ids] I believe. BJ On Jul 31, 2008, at 1:39 PM, Allen Walker wrote:> What I want to do is get a list of all friend uids for a particular > user. My logic: > > ------ > facebook_friend_ids = [] > > for friend in facebook_session.user.friends > facebook_friend_ids << friend.uid > end > > ----- > > > the problem is this is taking way too long for anyone with 20 or > more friends. What''s a quicker way to do this, even if I have to get > outside of the facebooker object? > > thanks > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk