Search code examples
iosobjective-cfacebookfacebook-graph-apifacebook-ios-sdk

iOS - Send requests to Facebook friends


I have been trying to set up a system on my app, where users can send requests to their Facebook friends. I followed the instructions on this page, and found that it presents a dialog where I can select friends and send invites. So far so good. But what I would like is that this dialog comes with the friends pre-selected so the users don't have to select them one by one. Is there a way to do this?


Solution

  • According to the documentation,

    You can filter the suggested list down or target one user. To filter down the list you can pass in a parameter, suggestions that contains a comma-separated list of friends to show in the selection. To target one recipient, pass that user's ID in a to parameter.