我在没有任何帮助的情况下搜索和搜索了论坛。我知道这是微不足道的,我错过了一些东西。专辑一直没有回来。我已经确认我的accessToken有效。
string folderName = string.Empty;
var accessToken = Session["AccessToken"].ToString();
var client = new FacebookClient(accessToken);
dynamic albums = client.Get("/me/albums");
foreach (dynamic album in albums)
{
folderName = album.name;
//dynamic albumsPhotos = client.Get("me/" + album.id + "/photos");
//foreach (dynamic photo in albumsPhotos)
//{
//}
}
答案 0 :(得分:0)
参考:https://developers.facebook.com/docs/reference/api/album/
要阅读您需要的相册:
要检查的另一件事是动态对象,请参见此处:Cannot get no. of photos in a Facebook Album