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];
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