Users.GetInfo & field specification

Apr 14, 2010 at 3:29 AM


Currently the Facebook Toolkit requests a large number of fields from Facebook when using Users.GetInfo().

This often adds significant extra & unnecessary overhead when retrieving data for a large number of users, e.g. friends.

It would be useful if the fields retrieved by Users.GetInfo() could be specified, perhaps in the appSettings or via some other means.


Apr 14, 2010 at 8:43 PM

Users.getInfo() is for noobs.  use fql and you can be a lean, mean, querying machine


                var response = api.Fql.Query(String.Format("SELECT first_name, last_name, locale, email, timezone from user where uid = {0}", user.UserID));



Apr 14, 2010 at 9:02 PM

Well, that’s possible, but what’s the problem with making it more efficient for noobs?

Apr 15, 2010 at 8:29 PM

I agree with you in theory...but the reality is that the Facebook api and data model move faster than this SDK does, so many new fields, and deprecated fields will be out of synch with this toolkit.  But as long as they are available via fql, you can still get at them, so folks are probably better served to figure out how to get their data via FQL sooner rather than later.  

Apr 21, 2010 at 7:20 PM

You can also just write an overload for GetInfo().  I mean, it's not hard and you have the source.