あなたはこのよう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
}
編集:FBGraph APIドキュメントにリストされているloaction、、、birthdayおよび多くのことができます。other fields
param dictionary上記のコードを変更するだけです
NSDictionary *param=[NSDictionary dictionaryWithObjectsAndKeys:@"picture,name,location,birthday",@"fields", nil];