如何在iPhone SDK中获取Facebook相册的照片? [英] How to get photos of a facebook album in iPhone SDK?

查看:137
本文介绍了如何在iPhone SDK中获取Facebook相册的照片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个iPhone应用程序,该应用程序使用此URL https://graph.facebook.com/me/albums?access_token=2227470867|2.ZJr73vaEvFeN4fI_A70RFw__.3600.1297090800-100000566543036|WmgxdwULBgKXl8J7ksGIA1tyGik



现在我想从这张专辑中获得照片。



任何想法都将不胜感激。



解决方案

所以/ 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆