2014-04-18 4 views
0

페이스 북을 통해 피드 대화 상자를 사용하여 벽에 메시지를 게시합니다. 피드가 전송되는 친구 목록을 얻고 싶습니다. 사용자 선택 옵션이 친구의 특정 그룹에 메시지를 공유 할 수페이스 북을 통해 피드가있는 게시판을 얻는 방법

는 다음의 개인 정보 보호는 열거 {EVERYONE, ALL_FRIENDS, FRIENDS_OF_FRIENDS, CUSTOM, SELF}의 값을 갖습니다.

제 질문은 위의 목록의 facebook 사용자 ID를 찾는 방법입니다.

도와주세요.

감사의 말 전진.

+0

어둡고 나쁜 페이스 북을위한 코드가 아닙니다. – arkascha

+0

피드 대화 상자를 사용하여 사용자 친구에게 피드를 어떻게 보냅니 까? –

+0

예, 피드 대화 상자 사용. – Abhilasha

답변

1
NSLog(@"%@",[app.Arr_Facebook_Frnd objectAtIndex:indexpath]); 

NSString *userid = [[app.Arr_Facebook_Frnd objectAtIndex:indexpath] objectForKey:@"id"]; 
NSString *str_name = [[app.Arr_Facebook_Frnd objectAtIndex:indexpath] objectForKey:@"name"]; 
NSString *str_link = @"www.google.com"; 

NSDictionary *params = @{ 
         @"name" : str_name, 
         @"caption" : @"", 
         @"description" : @"", 
         @"picture" : @"", 
         @"link" : str_link, 
         @"to":userid, 
         }; 

/


// Invoke the dialog 
[FBWebDialogs presentFeedDialogModallyWithSession:nil 
             parameters:params 
              handler: 
^(FBWebDialogResult result, NSURL *resultURL, NSError *error) { 
    if (error) { 
     NSLog(@"Error publishing story."); 
     [self.indicator stopAnimating]; 
    } else { 
     if (result == FBWebDialogResultDialogNotCompleted) { 
      NSLog(@"User canceled story publishing."); 
      [self.indicator stopAnimating]; 
     } else { 
      NSLog(@"Story published."); 
      [self.indicator stopAnimating]; 
     } 
    }}]; 
관련 문제