开发者

How to get array from FBGraph htmlResponse

开发者 https://www.devze.com 2023-02-24 16:03 出处:网络
I want to access array of friends for facebook.so for this i am using开发者_运维知识库 FBGraph and i get a string

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

精彩评论

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