You need to send a message to your friends, a simple way would be to adapt your code to use the corresponding graph method with the persons you want to send to facebook ID (I assumed that you saved this api in person.facebookID chart from a previous call)
[facebook requestWithGraphPath:[NSString stringWithFormat:@"%@/feed/",person.facebookID] andParams:params andHttpMethod:@"POST" andDelegate:self
http://developers.facebook.com/docs/reference/api/post
To get a list of friends of users, use the path on the schedule me / friends
[facebook requestWithGraphPath:@"me/friends" andDelegate:self];
Which will return a JSON list of Facebook friends βuser names and their Facebook identifiers corresponding to the delegate method from FBRequest, itβs probably worth wrapping this result set in a set of personal objects or saving the returned NSDictionary so that you can retrieve individual friends before you process the list of returned friends (you probably want to use a UITableView to display the user's friends or filter based on some other input from the user)
Using this method will mean that you do not need to use Facebook dialog boxes in iOS sdk, which means that there is an upper limit to the number of messages that a user can send in one day using your application.
If you want to use the dialog, you will need to include "target_id" in the params dictionary and set it for the Facebook ID you want to send to
kgutteridge
source share