如何在iPhone SDK中获取Facebook相册的照片? [英] How to get photos of a facebook album in iPhone SDK?
问题描述
我正在开发一个iPhone应用程序,该应用程序使用此URL
现在我想从这张专辑中获得照片。
任何想法都将不胜感激。
所以/ me / albums返回一个相册对象,每个对象都有一个 id
。
如果一张专辑的编号为99394368305,您可以去
https://graph.facebook.com/99394368305/photos
获取一组照片对象数组。
每个都将具有图片
和来源
属性以从Facebook获取图像数据。
如果您想要预先缩放的图片,而不只是原件,他们都将拥有图像
数组。
所有的Facebook查询都给JSON返回 - 我假设你知道如何解析这个? >
I am developing a iPhone application which get facebook album with this URL https://graph.facebook.com/me/albums?access_token=2227470867|2.ZJr73vaEvFeN4fI_A70RFw__.3600.1297090800-100000566543036|WmgxdwULBgKXl8J7ksGIA1tyGik
Now i want to get photos from this album.
Any Idea will be appreciated.
Thanks in Advance.
So /me/albums returns an array of Album objects, each of which has an id
.
If an album had an id of 99394368305, you can go to
https://graph.facebook.com/99394368305/photos
to get an array of photo objects.
Each of these will have the picture
and source
properties to get the image data from facebook.
They will all have an images
array as well if you want pre-scaled images instead of just the originals.
All the facebook queries give JSON back - I'm assuming that you know how to parse this?
这篇关于如何在iPhone SDK中获取Facebook相册的照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!