i'm trying to invite facebook friends in ios. successfully i got the output also. I attached that output image also.
My Question is, here i can see the suggested friends list instead of display my all friends. but while am searching any of friends in search bar, then it display that search list. My code is,
NSString *MY_URL = [NSString stringWithFormat:@"xxxxxxxxxx://host"];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithCapacity:0];
[params setObject:@"Hi, Check out this app, You'll love it!" forKey:@"message"];
[params setObject:MY_URL forKey:@"link"];
[FBWebDialogs presentRequestsDialogModallyWithSession:FBSession.activeSession
message:@"Friends Invite"
title:@"xxxxxxxx"
parameters:params handler:
^(FBWebDialogResult result, NSURL *resultURL, NSError *error)
{
if (!error) {
NSLog(@"Url : %@",resultURL);
NSLog(@"Result : %u",result);
NSDictionary *urlParams = [self parseURLParams:[resultURL query]];
if (![urlParams valueForKey:@"request"]) {
// User clicked the Cancel button
NSLog(@"User canceled request.");
} else {
// User clicked the Send button
NSString *requestID = [urlParams valueForKey:@"request"];
NSLog(@"Request ID: %@", requestID);
}
}
else
{
NSLog(@"Error : %@",[error localizedDescription]);
}
}];
My point is how can i display all my friends in this invite list itself.
Aucun commentaire:
Enregistrer un commentaire