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" } 

example


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -