facebook graph API with objective c -
how can name using facebook id using facebook graph api? used code image data id:
uiimage* new_image=[uiimage imagewithdata:[nsdata datawithcontentsofurl:[nsurl urlwithstring:@"http://graph.facebook.com/id/picture?type=normal"]]]; nsdata *imagedata = uiimagepngrepresentation(new_image);
how user's name?
make \get
request to:
http://graph.facebook.com/{user-id}?fields=username
you'll response as-
{ username: "xxxxx", id: "9999999" }
Comments
Post a Comment