【问题标题】:Get Photos From Album Facebook C#sdk从相册 Facebook C#sdk 获取照片
【发布时间】:2011-03-13 11:35:34
【问题描述】:

我想获取相册照片到目前为止我已经能够获取相册信息

我正在为 dot net framework 4 使用 facebook c# sdk 5.0

目前的代码是dynamic friends = app.Get("me/albums"); 这提供了data,我们可以得到这里提到的所有内容http://developers.facebook.com/docs/reference/api/album/ 但我无法建立照片提到的连接

【问题讨论】:

    标签: c# wpf facebook-c#-sdk


    【解决方案1】:

    到目前为止,我已经能够找到这种方法,如果有好的或不同的方法,请告诉我。

    //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");
    }
    

    【讨论】:

    • 当他们发布新图片时,我正在尝试获取某些页面的图片!
    • 什么是应用变量?我可以创建从相册中获取照片的测试方法吗? [TestMethod]public void Get_photos_from_album()
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-22
    • 2012-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多