hi friends,
i am trying to send email to my friend using my simple iphone applicaiton, but i am getting nothing... please help me to do this... thank u very much.
here is my code
NSString *nm=@"[email protected]"; NSString *sub=@"test msg"; NSString *content=@"thi is test mail, by sending to own wall!"; NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:nm, @"recipients", sub, @"subject",content, @"text",nil]; [[FBRequest requestWithDelegate:self] call:@"facebook.notifications.sendEmail" params:params];
confirmSendAlert = [[UIAlertView alloc] initWithTitle:@"Msg Sent " message:@"Message Sent Successfully!" delegate:self cancelButtonTitle:NSLocalizedString(@"OK", @"OK Button text") otherButtonTitles: nil];
[confirmSendAlert show];
[confirmSendAlert release];
also i used NSArray instead of the nm object mentioned above. but in the case it throw error msg. guide me to fix this bug..