private void displayUserPosts(FacebookWrapper.ObjectModel.FacebookObjectCollection <FacebookWrapper.ObjectModel.Post> i_PostsCollection)
        {
            string postAsString = "";

            foreach (FacebookWrapper.ObjectModel.Post post in i_PostsCollection)
            {
                post.Message.ToString();
                postAsString = String.Format("Time: {0}\r\nCreated by: {1}\r\nPost: {2}\r\n\r\n"
                                             , post.CreatedTime, post.Name, post.Message);
                PostsTextBox.AppendText(postAsString);
            }
        }
Exemplo n.º 2
0
 private void fetchUserPosts()
 {
     try
     {
         m_FacebookPosts = m_ClientFacade.GetUserPosts();
         string postAsString = string.Empty;
         while (m_FacebookPosts.MoveNext())
         {
             var userPosts = m_FacebookPosts.Current as Post;
             postAsString = string.Format(
                 "Time: {0}\r\nCreated by: {1}\r\nPost: {2}\r\n\r\n",
                 userPosts.CreatedTime,
                 userPosts.Name,
                 userPosts.Message);
             PostsTextBox.Invoke(new Action(() => PostsTextBox.AppendText(postAsString)));
         }
     }
     catch (Exception)
     {
         MessageBox.Show("You are not permitted to get this information");
     }
 }
Exemplo n.º 3
0
 private void clearPostFinderInfo()
 {
     PostsTextBox.Invoke(new Action(() => PostsTextBox.Text = string.Empty));
     rememberUserCheckBox.Invoke(new Action(() => rememberUserCheckBox.Enabled = false));
     clearFilteredPostsTextBox();
 }