title: Send a message to a Facebook friend from an Android app
body: <p>I have an app in which I have implemented Facebook login. I am able to retrieve the logged-in user's Facebook friends using the Graph API.</p>
  
  <p>The central problem is that I need to be able to communicate with the logged-in user's friends. This communication can occur in any possible way: wall post, inbox message or chat message.</p>
  
  <ul>
  <li>Posting to the wall seems to be no longer possible. According to <a href="https://developers.facebook.com/docs/apps/migrations/completed-changes#feb_2013" rel="nofollow noreferrer"><strong>Removing ability to post to friends walls via Graph API</strong></a>:</li>
  </ul>
  
  <blockquote>
    <p>We will remove the ability to post to a user's friends' walls via the
    Graph API. Specifically, posts against [user_id]/feed where [user_id]
    is different from the session user, or stream.publish calls where the
    target_id user is different from the session user, will fail.</p>
  </blockquote>
  
  <ul>
  <li>Sending chat messages has been deprecated and will soon be impossible. According to the <a href="https://developers.facebook.com/docs/chat" rel="nofollow noreferrer"><strong>Chat API</strong></a> docs:</li>
  </ul>
  
  <blockquote>
    <p>On April 30, 2014, we announced the deprecation of the XMPP Chat API
    as part of the release of Platform API v2.0. The service and API this
    document covers will no longer be available after April 30, 2015.</p>
    
    <p>Once version 1.0 is deprecated on April 30, 2015, chat.facebook.com
    and the xmpp_login permission will no longer be available.</p>
    
    <p>We recommend developers who have integrated with the XMPP Chat API
    deprecate this functionality from their apps before April 30, 2015 to
    avoid broken experiences.</p>
  </blockquote>
  
  <p>Basically, I need to send a message to a logged-in user's Facebook friends, <em>without requiring user interaction</em> (This does not mean I will be spamming a user's friends, just that messages will be scheduled in advance using a <code>PendingIntent</code> registered with the <code>AlarmManager</code>). <strong>Is this at all possible ?</strong></p>
  
  <p>I apologize for the length of this post, and if you're still with me, I thank you for your patience. I'm not the kind of person that wants to be spoon-fed, but I've reached my wit's end with this problem and the Facebook documentation is not giving me a clear answer. I need a decisive answer or a usable workaround to this problem.</p>
  
  <p>I have already referred to the these questions without success:</p>
  
  <p><strong>1.</strong> <a href="https://stackoverflow.com/questions/10764381/send-private-message-to-my-friends-using-my-android-application"><strong>Send private message to my friend(s) using my android application</strong></a>.</p>
  
  <p><strong>2.</strong> <a href="https://stackoverflow.com/questions/18605926/android-facebook-send-a-message"><strong>Android facebook send a message</strong></a>.</p>