如何使用 Graph API 从 facebook 检索 ids 数组?
这是使用我/朋友从 facebook 检索的 NSString,所以我想要单独的图像,这样我就可以简单地获取,
http://graph.facebook.com/"id here"/picture
那么我如何从我的朋友那里获取 id 数组,有什么想法吗?
{"data":[{"name":"阿卜杜勒·巴西特","id":"508238854"},{"name":"纳萨尔·法鲁基","id":"516100136"},{"name":"艾哈迈德·阿尔-雷法伊","id":"525085450"},{"name":"Zamzam Shk","id":"100002088918788"},{"name":"Gm Jatoi","id":"100002187305416 "},{"name":"Mohd Ali Khoso","id":"100002199757555"},{"name":"Shusheela Kumari","id":"100002282658638"}]}
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"}]}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是 JSON 响应......你将需要 JSON 解析......为此,你可以编写自己的解析器......或者你可以使用现有的 http://code.google.com/p/json-framework/
谢谢。
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.