Get Photos From Album Facebook C#sdk

血红的双手。 提交于 2020-01-13 05:24:08

问题


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

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

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


回答1:


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


来源:https://stackoverflow.com/questions/5289101/get-photos-from-album-facebook-csdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!