【发布时间】:2015-08-03 07:06:32
【问题描述】:
我想获取登录到我的应用好友列表的用户。所以,我需要使用这段代码来做到这一点:
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/me/friends",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
问题是我不知道我需要在 onCompleted 方法中写入什么来将好友列表放入数组。
【问题讨论】:
标签: android facebook facebook-graph-api