开发者

How to get array from FBGraph htmlResponse

I want to access array of friends for facebook.so for this i am using开发者_运维知识库 FBGraph and i get a string

by this line

NSString *str=(NSString *)fb_graph_response.htmlResponse;

so response is

getMeFriendsButtonPressed:  {"data":[{"name":"R.B. Narain","id":"1452788"},{"name":"Jon doe","id":"6564709"}]}

now i wanna get array of friends so for this what can i do.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜