public static List<FbPagePost> FbPagePostDetails(string FbUserId, string UserId) { List<FbPagePost> _FbPagePost = new List<FbPagePost>(); try { Api.Facebook.Facebook _Facebook = new Api.Facebook.Facebook(); _Facebook.Timeout = 300000; _FbPagePost = (List<FbPagePost>)(new JavaScriptSerializer().Deserialize(_Facebook.GetAllFbPagePostDetails(FbUserId, UserId), typeof(List<FbPagePost>))); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } return _FbPagePost; }