我想获取相册照片到目前为止我已经能够获取相册信息
我正在为 dot net 框架 4 使用 facebook c# sdk 5.0
到目前为止的代码是 dynamic friends = app.Get("me/albums");
这提供了数据
,我们可以获得此处提到的所有内容http://developers.facebook.com/docs/reference/api/album/
但我无法建立照片中提到的连接
最佳答案
到目前为止,我已经找到了这个方法,如果有好的或不同的方法,请告诉我。
//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");
}
关于c# - 从相册中获取照片 Facebook C#sdk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5289101/