【问题标题】: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-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];
}
}}];