Skip to content

Conversation

@pdelboca
Copy link

When trying to retrieve comment replies, the method throws an error:

Error in callAPI(url = url, token = token) : 
  (#100) Tried accessing nonexisting field (like_count) on node type (Post)

Even when the documentation says those fields exists, they don't. I've tried to retrieve them with the Graph Api Explorer but it throws the same error.

Removing those fields from the url and the dataframe creation allows to get the replies to the comment.

@pablobarbera
Copy link
Owner

Thanks for your contribution! Do you have an example of a page or comment where you get this error? The example in ?getCommentReplies still works for me:

load("fb_oauth")
fb_page <- getPage(page="facebook", token=fb_oauth)
post <- getPost(post=fb_page$id[1], n=2000, token=fb_oauth)
replies <- getCommentReplies(comment_id=post$comments$id[1], token=fb_oauth)

Perhaps this only applies to specific pages? (I would like to keep these two fields, because I think they provide important information about the original comment.)

@alxbgmz
Copy link

alxbgmz commented Jun 7, 2017

does this include original comments and replies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants