2014-05-14 1 views
2

내 IOS 응용 프로그램에 대한 페이스 북 초대장을 보내려고하지만 거기에 도착한 적이 없으며 이유를 알 수 없습니다.Facebook App Invite not received

-(void)inviteFriend:(NSString *)facebookId { 

NSDictionary *parameters = @{ @"to": facebookId }; 
[FBWebDialogs 
presentRequestsDialogModallyWithSession:nil 
message:[NSString stringWithFormat:@"You've received an invite to my game!"] 
title:nil 
parameters:parameters 
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) 
{ 
    if(error) 
    { 
     NSLog(@"Some errorr: %@", [error description]); 
     UIAlertView *alrt = [[UIAlertView alloc] initWithTitle:@"Invitiation Sending Failed" message:@"Unable to send inviation at this Moment, please make sure your are connected with internet" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil]; 
     [alrt show]; 
    } 
    else 
    { 
     if (![resultURL query]) 
     { 
      return; 
     } 

     NSDictionary *params = [self parseURLParams:[resultURL query]]; 
     NSMutableArray *recipientIDs = [[NSMutableArray alloc] init]; 
     for (NSString *paramKey in params) 
     { 
      if ([paramKey hasPrefix:@"to["]) 
      { 
       [recipientIDs addObject:[params objectForKey:paramKey]]; 
      } 
     } 
     if ([params objectForKey:@"request"]) 
     { 
      NSLog(@"Request ID: %@", [params objectForKey:@"request"]); 
     } 
     if ([recipientIDs count] > 0) 
     { 
      //[self showMessage:@"Sent request successfully."]; 
      NSLog(@"Recipient ID(s): %@", recipientIDs); 
      //UIAlertView *alrt = [[UIAlertView alloc] initWithTitle:@"Success!" message:@"Invitation(s) sent successfuly!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil]; 
      //[alrt show]; 
     } 

    } 
}friendCache:nil]; 

}가 보내는 것처럼

콘솔 출력이 나타납니다 : 여기에 내가 사용하고 코드입니다

[FacebookManager inviteFriend :] _ block_invoke [선 288] 요청 ID : 766594713370919 [ FacebookManager inviteFriend :] _ block_invoke [라인 (293)]받는 사람 ID (들) : (여기 올바른 사용자 ID)

하지만, 내 iOS 기기를 통해 해당 페이스 북 사용자에게 로그인 할 때 알림이 표시되지 않습니다.

문제는 몇 사람의 중복으로 표시되지만 둘 다 답이 없다 : Facebook setting for Invite friend in Facebook Code for fb invitation not working

감사합니다.

답변