コード例 #1
0
        public async Task <FacebookProcessResult> PullVisitorPostsFromFeed(SocialAccount account)
        {
            var result = new FacebookProcessResult(_notificationManager);

            _account = account;
            var data = await _fbClient.GetVisitorPosts(_account.SocialUser.OriginalId, _account.Token);

            await Init(data);

            RemoveDuplicated();
            await AddPosts(result, PostsToBeCreated);
            await AddComments(result, CommentsToBeCreated);
            await AddReplyComments(result, ReplyCommentsToBeCretaed);

            return(result);
        }