0

嗨,我正在尝试以这种方式从 android 用户那里获取所有专辑 ID:

    Bundle params2 = new Bundle();
    params2.putString("method", "fql.query");
    params2.putString(Facebook.TOKEN, facebook.getAccessToken());
    params2.putString("query", "SELECT object_id FROM album WHERE owner=me()"); 
    AsyncFacebookRunner mAsyncRunner2 = new AsyncFacebookRunner(facebook);
    mAsyncRunner2.request(null, params,new AlbumNamesListener(),null);

在 AlbumNamesListener 中,我试图查看响应并显示:{"error_code":3,"error_msg":"Unknown method","re​​quest_args":[{"key":"access_token","value":" fffffffff9ZD"},{"key":"format","value":"json"}]}。

我究竟做错了什么?请给我一个提示,如何在 Android 应用程序中从用户那里获取所有专辑 ID。谢谢,

4

1 回答 1

1

这是正确的 FQL 查询:SELECT aid from album WHERE owner = me()

改用那个。

于 2012-11-09T00:55:49.300 回答