您可以像这样friendList
使用 :respective
name and id
FBGraph API
FbGraphResponse *fb_graph_response = [fbgraph doGraphGet:@"/me/friends" withGetVars:nil];
但是如何name, id and picture
使用all friends
呢FBGraph API
?
您可以像这样friendList
使用 :respective
name and id
FBGraph API
FbGraphResponse *fb_graph_response = [fbgraph doGraphGet:@"/me/friends" withGetVars:nil];
但是如何name, id and picture
使用all friends
呢FBGraph API
?
您可以像这样使用friendList
各自的方法:name, id and picture
FBGraph API
NSDictionary *param=[NSDictionary dictionaryWithObjectsAndKeys:@"picture,name",@"fields", nil];
FbGraphResponse *fb_graph_response = [fbgraph doGraphGet:@"/me/friends" withGetVars:param];
Response
将会
data = {
id = 100001625299089;
name = "Name here";
picture = {
data = {
s_silhouette" = 0;
url = "url here";
};
};
},
//all other friends here
}
编辑:您可以loaction
,birthday
和许多other fields
列在FBGraph API 文档中。
只需更改param dictionary
上面的代码
NSDictionary *param=[NSDictionary dictionaryWithObjectsAndKeys:@"picture,name,location,birthday",@"fields", nil];