How to search for search results "invitable_friends" on Facebook
I have a Facebook application and I want my users to invite their Facebook friends to my application. Correct endpoint /me/invitable_friends
that works well. But at the bottom of this document page it is recommended to use the "search box" to filter the results, but they do not offer any example on how to do this. I searched and found nothing.
It doesn't look like you can pass additional parameters to filter the results. Obviously I can filter the results after the fact, but this doesn't scale as the API only returns ~ 20 users at a time. This limit is modifiable (I believe), although it is certainly unwise to raise it too high.
So how can I create a search box interface if I cannot pass the search text to the endpoint? I am missing something.
Thanks in advance.
PS - I am using JS SDK.
source to share