Hi Guys,
I tried to send the message from facebook in my application for that i used the following code segment using graph API call.
SBJSON jsonWriter = [[SBJSON new] autorelease];
NSArray eventdict = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:@"Always Running",@"text",nil], nil];
NSString * event = [jsonWriter stringWithObject: eventdict];
NSDictionary* msg = [NSDictionary dictionaryWithObjectsAndKeys:@"a long run", @"name",nil];
NSString *message = [jsonWriter stringWithObject:msg];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: kAppId, @"api_key", event, @"event_name", message, @"message", nil];
[_facebook dialog: @"liveMessage.send" andParams: params andDelegate:self];
Please suggest me right way ?