title: How to programmatically invite Facebook friends on a website
body: <p>The functionality that I need is to show a list of Facebook friends to the user on the website page with custom design, where the user can select some of them and send invites.</p>
  
  <p>In API v2.0 it's possible to get a list of friends this way:</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>FB.api('/me/taggable_friends', function (response) {
       ...
  });
  </code></pre>
  
  <p>But it doesn't return real users' ID that I need for invites with the next function call: </p>
  
  <pre class="lang-js prettyprint-override"><code>FB.ui({
      method: 'apprequests',
          message: invite_text,
          to: 'user_id_1, user_id_2'
      }, function (response) {
          ...
      }
  );
  </code></pre>
  
  <p>How can I get these real IDs? 
  Or how to resolve this functionality in another way? Because all the answers that I found were connected with games that don't fit me.</p>
  
  <p>I need a full list of friends. Not just that already use my website (analog of the <code>invitable_friends</code> in-game section).</p>