Chatar Veer Suthar
Chatar Veer Suthar

Reputation: 15639

how to retrieve array of ids from facebook, using Graph API?

This is NSString retrieve from facebook using me/friends, so I want individual images, so I can get by simply

http://graph.facebook.com/"id here"/picture

so how can I get array of ids from my friends, have any idea?

{"data":[{"name":"Abdul Basit","id":"508238854"},{"name":"Nasar Farooqui","id":"516100136"},{"name":"Ahmad Al-Refai","id":"525085450"},{"name":"Zamzam Shk","id":"100002088918788"},{"name":"Gm Jatoi","id":"100002187305416"},{"name":"Mohd Ali Khoso","id":"100002199757555"},{"name":"Shusheela Kumari","id":"100002282658638"}]}

Upvotes: 1

Views: 136

Answers (1)

Ravin
Ravin

Reputation: 8564

It is JSON response...... you will need JSON parsing..... For this, either you can write your own parser..... or you can use exising one http://code.google.com/p/json-framework/

thanks.

Upvotes: 1

Related Questions