Users.getInfo and API.Users.GetInfo

Nov 27, 2009 at 5:49 AM



What is the corresponding fields in sdk function API.Users.GetInfo()  for

  1. pic_square
  2. pic_square_with_logo
  3. pic_small_with_logo
  4. pic_with_logo
  5. pic_big_with_logo

as for the Users.getInfo()



Nov 30, 2009 at 5:49 AM

See Facebook.Schema.user.pic_square.

Btw, Search Member in Reflector is your friend.  :)

Nov 30, 2009 at 6:47 AM

Thank you Stref

I could find only the following. (commented is my guesses)

fbSchema.user userInfo = API.Users.GetInfo(Convert.ToInt64(UserId));
string imgUrl = userInfo.pic; //pic 
imgUrl = userInfo.pic_big; // pic_big
imgUrl = userInfo.pic_small; //pic_small
imgUrl = userInfo.pic_square; // pic_square

But what about the fields which I mentioned in my first post






Nov 30, 2009 at 8:54 PM
Edited Nov 30, 2009 at 8:55 PM

Not sure about those other fields...

Dec 1, 2009 at 10:30 AM
Edited Dec 1, 2009 at 10:49 AM

Thank you very much streff. I downloaded the Reflector, Thats one great tool. Thank you very much for letting me know about it.
I used that to figure out the function which accepts the fields too. so my code is like this now

 List<string> infoFields
                        = new List<string>() { "uid", "name", "profile_url", "pic_square", "pic_with_logo", "pic_big_with_logo", "pic_small_with_logo", "pic_square_with_logo" };

API.Session.SessionKey = connectSession.SessionKey = "sesson key";
API.Session.SessionSecret = connectSession.SessionSecret = "session secret";
IList<fbSchema.user> userInfo = API.Users.GetStandardInfo(UserId, infoFields);

But its throwing the error
This method call must be signed with the application secret (You are probably calling a secure method using a session secret)

Note that I am using the sdk for "Facebook connect". Users click on the connect button, enters to my site. My site displays their fb Username and fb Profile Picture.

Any help would be highly appreciated



Dec 7, 2009 at 10:43 PM

I'm developing for Silverlight. I still haven't found a way to get user's info's specific fields. There's only the API.Users.GetInfoAsync that doesn't have an option for specific fields like API.Users.GetStandardInfo. So, each time I call GetInfo, it returns all the info for a user?? That's not very efficient, as I only need some info at a time. Is there a way to define which fields the method should return?