Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nonexisting field in getCommentReplies method #82

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

3 participants