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

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

问题描述

我正在开发一个 iPhone 应用程序,它通过这个 URL 获取 facebook 相册 https://graph.facebook.com/me/albums?access_token=2227470867|2.ZJr73vaEvFeN4fI_A70RFw__.3600.1297090800-1000005665430865665430005665430038现在我想从这个相册中获取照片.

任何想法将不胜感激.

提前致谢.

所以/me/albums 返回一个 相册对象,每个对象都有一个id.

如果相册的id是99394368305,可以去

https://graph.facebook.com/99394368305/photos

获取一组照片对象.

每一个都将具有 picturesource 属性以从 Facebook 获取图像数据.

如果您想要预先缩放的图像而不仅仅是原始图像,它们也会有一个 images 数组.

<小时>

所有 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天全站免登陆