huuanh1987 / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

No users are returned from users_getStandardInfo #234

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

    FacebookJaxbResClient client = ...; // obtain the client
    EnumSet<ProfileField> fields = EnumSet.of(ProfileField.SEX);
    // get a valid uid that has added the application and not blocked
    // any data
    Iterable<Long> uids = Collections.singleton(...); 
    UsersGetStandardInfoResponse response = client.users_getStandardInfo(
        uids, fields);
    System.out.println(response.getStandardUserInfo().size());

I think you could also just run the unit test for issue 176, but I could
not find any information on how do this in FBJAPI.

What is the expected output? What do you see instead?

It should output 1, but instead will output 0.

What version of the product are you using? On what operating system?

2.1.1, Ubuntu

Please provide any additional information below.

I've attached a patch that fixes the problem. This appears to be just a
simple out-of-data schema problem.

Original issue reported on code.google.com by jamie.doornbos on 28 Aug 2009 at 6:17

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by fern...@gmail.com on 21 Nov 2009 at 8:56