problem with user.getInfo()

Jul 28, 2009 at 6:24 AM

Anyone has the same problem as mine with user.getInfo() ?

The only values that i can retrive from it is

1. name

2. first_name

3. last_name

4. pic, pic_big, pic_small, pic_square

5. affiliations

I cant get the rest like sex, birthday, etc...

Someone help? thanks in advance.

Developer
Jul 28, 2009 at 3:14 PM

Sounds like you don't have a valid session (meaning you're not logged in). Until you log in, there's a limited amount of user info you can see (more detail on this here: http://wiki.developers.facebook.com/index.php/Users.getInfo)

Jul 30, 2009 at 3:07 AM

that is abit weird, coz i do have this code in the page

protected void Page_PreInit(object sender, EventArgs e)
    {
        Master.RequireLogin = true;
        Master.SetSelectedTab("default");
        Master.API.ApplicationKey = ConfigurationManager.AppSettings["APIKey"];
        Master.API.Secret = ConfigurationManager.AppSettings["Secret"];
    }

Jul 30, 2009 at 7:58 AM

i did a test, i manage to get fb_sig_added = 1 and there's value in fb_sig_session_key but i still cant get the full data from user.getInfo()...

Jul 30, 2009 at 9:03 AM

ok, i finally manage to solve this problem, it seems like the facebook.dll provided by facebook toolkit does not allow user to pass in the session key which causes facebook to return only basic info.

 

After i modified the dll to allow user to pass in session key, it works properly now.