문제

I am new to iOS programming and I just want to know that how can we reply on a specific post?

I have read a lot of links but I can't get the point.

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

I have use this method but it is not working properly this code update/edit your post or comment:

-(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);
                          }];
}

and plus I am calling this method into my textfield

[myReplyingUITextField addTarget:self action:@selector(abc) forControlEvents:(UIControlEventEditingDidEndOnExit)];
도움이 되었습니까?

해결책

You need to add the message parameter to your API call. Pass the comment into this parameter and you'll be able to comment on the post. See the API documentation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top