private async Task HandlePost()

in Facebook/FacebookSDK/JobProcessorFB.cs [98:123]


        private async Task HandlePost(PostFB post, AuthenticationHeaderValue header, string pageId, string pageName, ConnectorTask taskInfo, List<ItemMetadata> itemMetadata)
        {
            Item postItem = await CreatePostItem(post, pageId, pageName, taskInfo, itemMetadata);

            CommentFB comments = post.Comments;
            bool moreComments = false;

            do
            {
                if (moreComments)
                {
                    // only if there are more comments to this post, to be fetched
                    comments = await this.downloader.GetWebContent<CommentFB, ErrorsFB>(comments.Paging.Next, header);
                }

                if (comments != null && comments.Data.Count() != 0)
                {
                    List<CommentDataFB> Data = comments.Data.ToList();
                    foreach (CommentDataFB comment in Data)
                    {
                        await HandleComment(comment, header, pageId, postItem, taskInfo, itemMetadata);
                    }
                }
                moreComments = true;
            } while (comments?.Paging?.Next != null);
        }