2

我得到这样的朋友信息:

String fqlQuery = "select uid, name, birthday, hometown_location, about_me, pic_square from user where uid in (select uid2 from friend where uid1 = me() LIMIT 20)";
        Bundle params = new Bundle();
        params.putString("q", fqlQuery);
        Request request = new Request(currentSession, 
                "/fql", 
                params, 
                HttpMethod.GET, 
                new Request.Callback(){ 

            @Override
            public void onCompleted(Response response) {
                Log.i(TAG, "Got results: " + response.toString());
            }

        });

在 Facebook 权限中,我拥有:friends_about_me、friends_birthday、friends_hometown

日志输出:

10-11 09:27:27.842: I/MainActivity(8161): Got results: {Response:  responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"data":[{"uid":13962124,"birthday":null,"hometown_location":null,"pic_square":"https:\/\/fbcdn-profile-a.akamaihd.net\/hprofile-ak-ash2\/1115780_13962124_1029801849_q.jpg","about_me":null,"name":"Jenny Rader"} ... etc.

如您所见,我得到了名字,但没有得到生日/位置/关于。我究竟做错了什么?

4

0 回答 0