Это то, чего я хочу достичь
- Получить /домашнюю ленту
- Со всех " object_id" в ответе /home, получите "object_id"
Код: Выделить всё
Common._fb.BatchTaskAsync(new[]{ new FacebookBatchParameter(HttpMethod.Get, "/me", new Dictionary { { "limit", 25 }, {"access_token", Common._fb.AccessToken} }), new FacebookBatchParameter("/me/home", new { limit = 25 }) { Data = new { name = "home-feed", omit_response_on_success = false } }, new FacebookBatchParameter(HttpMethod.Get, "/{result=home-feed:$.data.*.object_id}", new { limit = 25 }), new FacebookBatchParameter("/me/error")});
{"error":{"message":"(#803) Некоторые из запрошенных вами псевдонимов не существуют: 432468803491390,10151350857109036,388654974561669,197117360426100,443878372332478,4 45366662199631,457265447662406,475836539118390,474145425981640, 363838440380681","type":"OAuthException","code":803}} объект {Facebook.JsonObject
Вот как выглядят данные первого вызова :
Код: Выделить всё
"type": "photo", "status_type": "shared_story", "object_id": "379861798777414",
Код: Выделить всё
id":
"379861798777414",
"from":
{
"category":
"Automobiles and parts",
"name":
"Legendary Speed Inc.",
"id":
"142234555873474"
},
"name":
"FOR SALE:\nClick the link for Price and Info\nhttp://www.legendaryfind.com/cars/pin/38000/",
"picture":
"https://photos-b.xx.fbcdn.net/hphotos-ash4/603137_379861798777414_485849814_s.jpg",
"source":
"https://sphotos-b.xx.fbcdn.net/hphotos-ash4/603137_379861798777414_485849814_n.jpg",
"height":
265,
"width":
400,
"images":
[
{
"height": 1356,
"width": 2048,
"source": "https://sphotos-b.xx.fbcdn.net/hphotos-ash4/s2048x2048/603137_379861798777414_485849814_n.jpg"
}
Подробнее здесь: https://stackoverflow.com/questions/143 ... photo-data