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.

+3


source to share


1 answer


You should probably find the error.

Based on the documentation, the default size is 1000 entries (the average size of Facebook friends list is 300-400).



If you don't see the parameter next

at the end of the result in paging

, then there are no more results.

0


source







All Articles