コード例 #1
0
ファイル: Program.cs プロジェクト: norMNfan/FacebookApp
        public static void SendMessages(string Token, int accountIndex, int postIndex, string message, int messageStartIndex, int messageEndIndex)
        {
            var            client     = new FacebookClient(Token);
            Page           page       = GraphCalls.getPage(client, accountIndex);
            var            pageClient = new FacebookClient(page.access_token);
            Post           post       = GraphCalls.getPost(pageClient, page, postIndex);
            List <Comment> comments   = GraphCalls.getComments(pageClient, post);

            GraphCalls.sendMessages(pageClient, comments, message, messageStartIndex, messageEndIndex);
        }