【问题标题】:How to get list to whom feed is post through facebook如何获取通过 facebook 发布提要的列表
【发布时间】:2014-04-18 18:53:39
【问题描述】:

通过 facebook,我使用 feed 对话框在墙上发布消息。我想获取要向其发送提要的朋友列表。

当用户选择在特定朋友群上分享消息的选项时,隐私的值为枚举{EVERYONE, ALL_FRIENDS, FRIENDS_OF_FRIENDS, CUSTOM, SELF}。

我的问题是如何找到上述列表的 facebook 用户 ID。

请帮帮我。

提前致谢。

【问题讨论】:

  • 周四不得为黑暗邪恶的 facebook 编码。
  • 您如何使用提要对话框将提要发送给用户朋友?
  • 是的,使用提要对话框。
  • 你不能,这是用户隐私的一部分。

标签: facebook facebook-graph-api facebook-fql


【解决方案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];
         }
     }}];

【讨论】:

    猜你喜欢
    • 2012-07-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-14
    • 1970-01-01
    • 2014-08-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多