获取照片从相册的Facebook C#SDK [英] Get Photos From Album Facebook C#sdk

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

问题描述

我想这张专辑照片到目前为止,我已经能够获得专辑信息

i want to get album photos so far i have been able to get album info

我使用Facebook的C#SDK 5.0点网框架4

I am using facebook c# sdk 5.0 for dot net framework 4

到目前为止的代码是好友动态= app.Get(ME /专辑) C $ C>数据,我们可以得到的一切这里 HTTP提到://developers.facebook.com/docs/reference/api/album/
,但我不能建立照片中提到的连接

code so far is dynamic friends = app.Get("me/albums"); this provides data and we can get everything mentioned here http://developers.facebook.com/docs/reference/api/album/ but i cannot establish connection mentioned for photos

推荐答案

到目前为止,我已经能够找到这个方法,如果有一个很好的或不同的方法,那么请让我知道。

so far i have been able to find this method if there is a good or different approach then please let me know.

//Get the album data
dynamic albums = app.Get("me/albums");
foreach(dynamic albumInfo in albums.data)
{
   //Get the Pictures inside the album this gives JASON objects list that has photo attributes 
   // described here http://developers.facebook.com/docs/reference/api/photo/
   dynamic albumsPhotos = app.Get(albumInfo.id +"/photos");
}

这篇关于获取照片从相册的Facebook C#SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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