【问题标题】:How to post comment reply on a specific post in iOS programmatically?如何以编程方式在 iOS 中的特定帖子上发布评论回复?
【发布时间】:2014-04-22 07:38:46
【问题描述】:

我是 iOS 编程新手,我只想知道如何回复特定帖子?

我已经阅读了很多链接,但我不明白这一点。

http://developers.facebook.com/docs/graph-api/reference/object/comments

我已使用此方法,但无法正常工作此代码更新/编辑您的帖子或评论:

-(void) abc
{
    [FBRequestConnection startWithGraphPath:@"/YOUR_POST_ID/comments"
                                 parameters:nil
                                 HTTPMethod:@"GET"
                          completionHandler:^(
                                              FBRequestConnection *connection,
                                              id result,
                                              NSError *error
                                              ) {
                              /* handle the result */
                              NSLog(@"Results == %@",result);
                              NSLog(@"error == %@",error);
                          }];
}

另外,我将这个方法调用到我的文本字段中

[myReplyingUITextField addTarget:self action:@selector(abc) forControlEvents:(UIControlEventEditingDidEndOnExit)];

【问题讨论】:

    标签: ios facebook-graph-api comments reply


    【解决方案1】:

    您需要将message 参数添加到您的API 调用中。将评论传递到此参数中,您将能够对帖子发表评论。请参阅API documentation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-11
      • 1970-01-01
      • 1970-01-01
      • 2017-03-29
      • 2020-10-02
      • 2018-10-21
      • 1970-01-01
      • 2012-12-30
      相关资源
      最近更新 更多