Code:
AccessToken.getCurrentAccessToken(),
"/"+fbUserid+"/friendlists",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponseresponse) {
Log.e("friendsRes",response.toString());
}}).executeAsync();
{响应:responseCode:200,graphObject:{“data”:[]},错误:null}
在这段代码中,我无法在Android中获取好友列表,还有facebook
朋友的任何其他代码过滤器。谢谢!
答案 0 :(得分:-1)
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{friend-list-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
注意:需要具有read_custom_friendlists
权限的用户访问令牌。