using System.Collections.Generic;
public class FacebookPostData
public List<FacebookPost> data { get; set; }
public Paging3 paging { get; set; }
public FacebookPostData()
this.data = new List<FacebookPost>();
this.paging = new Paging3();
public class FacebookPost
public string id { get; set; }
public string created_time { get; set; }
public Reactions reactions { get; set; }
public Comments comments { get; set; }
this.reactions = new Reactions();
this.comments = new Comments();
public string previous { get; set; }
public string next { get; set; }
public List<Data2> data { get; set; }
public Paging paging { get; set; }
this.data = new List<Data2>();
this.paging = new Paging();
public string id { get; set; }
public string name { get; set; }
public string type { get; set; }
public Cursors cursors { get; set; }
this.cursors = new Cursors();
public string before { get; set; }
public string after { get; set; }
public List<Data3> data { get; set; }
public Paging2 paging { get; set; }
this.data = new List<Data3>();
this.paging = new Paging2();
public string created_time { get; set; }
public From from { get; set; }
public string message { get; set; }
public string id { get; set; }
public Cursors2 cursors { get; set; }
this.cursors = new Cursors2();
public string name { get; set; }
public string id { get; set; }
public string before { get; set; }
public string after { get; set; }
public static void Main()
string fbData = "{\"data\":[{\"id\":\"1\",\"created_time\":\"1511807220655\"},{\"id\":\"2\",\"created_time\":\"1511807220955\",\"reactions\":{\"data\":[{\"id\":\"1\",\"name\":\"Name 1\",\"type\":\"Type 1\"},{\"id\":\"2\",\"name\":\"Name 2\",\"type\":\"Type 2\"}],\"paging\":{\"cursors\":{\"before\":\"\",\"after\":\"\"}}},\"comments\":{\"data\":[{\"created_time\":\"1511807220655\",\"from\":{\"name\":\"Name 1\",\"id\":\"1\"},\"message\":\"Some message...\",\"id\":\"1\"}],\"paging\":{\"cursors\":{\"before\":\"\",\"after\":\"\"}}}}],\"paging\":{\"previous\":\"\",\"next\":\"\"}}";
var posts = JsonConvert.DeserializeObject<FacebookPostData>(fbData);
foreach(var post in posts.data)
Console.WriteLine(post.id);
foreach(var reaction in post.reactions.data)
Console.WriteLine(reaction.id);
foreach(var comment in post.comments.data)
Console.WriteLine(comment.id);
Console.WriteLine(comment.from.id);
Console.WriteLine(comment.from.name);