title: How can I filter the friends returned from a facebook graph API request?
body: <p>I need to retrieve all facebook friends which match some sort of filter or pattern. I am currently calling this:</p>
  
  <p>me/friends?fields=name,id</p>
  
  <p>This returns all friends which have also downloaded my app. However, is there a way to filter the returned friends by name? I want to avoid retrieving all friends and then filtering the results on the client side to minimise the size of the result since there could be a lot of results. I know that FQL supported this, but it has been deprecated in favour of the graph API, however despite looking around everywhere I am surprised to not have found an answer to what I thought would be a pretty common requirement.</p>
  
  <p>To give a bit of context, I'm simply providing the user with a text field with which they can filter their friends, and so want to make requests on the graph API like this:</p>
  
  <p>me/friends?fields=name,id&amp;name=%Pat%</p>
  
  <p>Thanks</p>