title: Facebook chat using graph API
body: <p>I'm using graph API in order to use Facebook chat.
  I'm using the <a href="http://restfb.com/" rel="nofollow">http://restfb.com/</a> framework.
  The issue is that with the following code I can read all conversations and messages.</p>
  
  <pre><code>public void initClient()
      {
  
          m_facebookClient = new DefaultFacebookClient(MY_ACCESS_TOKEN, MY_APP_SECRET);
      }
  public void readPage()
      {
          Page page = m_facebookClient.fetchObject("352179081632935", Page.class);
          System.out.println("Page likes = " + page.getLikes());
  
  
          Connection&lt;Conversation&gt; conversations = m_facebookClient.fetchConnection("me/conversations", Conversation.class);
  
      for(List&lt;Conversation&gt; conversationPage : conversations) {
          for(Conversation conversation : conversationPage) {
              System.out.println(conversation);
              System.out.println(conversation.getUnreadCount());
  
              Message lastMessage = null;
              for (Message message : conversation.getMessages())
              {
                  System.out.println("Message text = " + message.getMessage());
                  System.out.println("Message unread = " + message.getUnread());
                  System.out.println("Message from = " + message.getFrom().getName());
                  System.out.println("Message to = " + message.getTo().get(0).getName());
                  System.out.println("Message unseen = " + message.getUnseen());
                  lastMessage = message;
              }
          }    
      }
  </code></pre>
  
  <p>I would like to know how to send reply messages or new messages using this framework or Graph API?</p>
  
  <p>Thank you,
  Moshe</p>