3

我正在使用适用于 Android 3.0 的 Facebook SDK,我想做的是获取 10 张朋友的照片。如何将限制参数添加到请求中?

for (GraphUser user : users) {
  Request request = Request.newGraphPathRequest(
    session,user.getId()+"/photos",new Request.Callback(){...});

  //requests is a collection of requests
  requests.add(request);
}
Request.executeBatchAsync(requests);
4

1 回答 1

5

要为朋友只获取 10 张照片,请执行以下操作:

    Bundle params = new Bundle();
    params.putString("limit", "10");
    request.setParameters(params);

    requests.add(request);
}
于 2012-10-22T21:22:28.953 回答