在多个朋友的facebook墙上发帖

问题描述:

我只用一个Facebook墙贴进行申请.使用FBConnect对我来说很好.但是现在我想一次单击将墙贴一次发给多个朋友.是否可以在多个朋友的墙上发帖?如果可能的话,建议我.

I make application with only one facebook wall post. It works good for me using FBConnect. but now i want wall post to multiple friends at a time on one button click. Is it possible for post on multiple friends wall? If it is possible then suggest me.

我的代码:

NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   [NSString stringWithFormat:@"%@",[[arrData objectAtIndex:i] objectForKey:@"id"]], @"to",
                                   @"post on facebook", @"name",
                                   @"facebook wall post", @"description",
                                   @"http://m.facebook.com/apps/myapp", @"link",
                                   nil];

    AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    [[delegate facebook] dialog:@"feed"
                      andParams:params
                    andDelegate:self];

请回复我.

预先感谢您的帮助.

如果使用的是供稿对话框,则别无选择,只能为每个朋友打开一个对话框.

If you are using the feed dialog then you have no choice but to open a dialog per friend.

您可以执行的操作是请求publish_stream参数,该参数允许您以登录用户的身份发布在他或他的朋友墙上.
获得该权限后,您只需向fb发送一个请求,然后将其发布,而无需使用对话框,这样您就可以根据需要发送尽可能多的请求.

What you can do though is request the publish_stream parameter which lets you publish as the logged in user on his or his friends walls.
After you get that permission you simply send a request to fb and it gets published, without the use of a dialog, which let's you send as many requests as you like.

在ios sdk上,它是通过请求完成的.

On the ios sdk it's done with Requests.