How to send direct message to friend on Facebook iPhone

How to send direct message by dialog to friend on Facebook iPhone sdk ? I have been tried this code but not properly working?

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   @"I'm using the MyFBTest App", @"name",@"http://listentowebby.com/wp-content/themes/cw/images/facebook.png", @"link",nil];



AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
[[delegate facebook] dialog:@"send"
                  andParams:params
                andDelegate:self];

Answers


you can't send direct message in mobile devices says facebook documentation send dialog

and the method you are using will only send the request, and if the user to whom sending request, has installed the app, then it will able to read the message else not.

one other way to convey your message is to post on friends wall, for which you may refer to this thread facebook ios post on friend's wall


Need Your Help

Do having multiple labels for a node in Neo4j make any sense?

nosql neo4j graph-databases

Following this post from Neo4j's google group I have to say that I don't see any benefits when using this multiple-label-thing but rather, on the contrary, IMHO it just adds complexity for what a

How to get combobox not to accept user input in Excel-Vba?

excel vba controls excel-2007

Does anyone know what the properties are in the combobox that I can manipulate in order not to allow the user to key/type in any data?