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

Unable to retrieve likes and commenter names/ids using getPost() #176

Open
kumarhk opened this issue Mar 8, 2018 · 1 comment
Open

Unable to retrieve likes and commenter names/ids using getPost() #176

kumarhk opened this issue Mar 8, 2018 · 1 comment

Comments

@kumarhk
Copy link

kumarhk commented Mar 8, 2018

Hi all,

Thank you to @pablobarbera for a great package! I'm hoping someone can help me with two issues I'm having with the getPost() function.

  1. No matter how I specify the function, I can't get it to output the three dataframes (post, likes, and comments) as desired. The "likes" dataframe is never generated.
  2. In the comments dataframe that is successfully generated, the values for the variables from_id and from_name are always NA.

Here is some example code:

> id <- as.character(posts[589,"id"])
> id 
[1] "458400667664362_714715445366215"
> 
> qtd <- 100
> qtd
[1] 100
> 
> # Attempt with default values
> temp <- getPost(id, token=fb_token, n=qtd)
> length(temp)
[1] 2
> # list contains only two items: post df and comments df
> 
> # Attempt with comments=T, likes=T, reactions=F specified
> temp2 <- getPost(id, token=fb_token, n=qtd, comments=T, likes=T, reactions=F)
> length(temp2)
[1] 2
> # list contains only two items: gives only post df and comments df
> 
> # Look inside the comments df
> temp$comments[1,1:3]
  from_id from_name                                             message
1      NA        NA I missed  it,any other workshop? In the near future
> # from_id and from_name are missing
@kumarhk kumarhk changed the title Unable to retrieve likes and names of commenters using getPost() Unable to retrieve likes and commenter names/ids using getPost() Mar 8, 2018
@floresfdev
Copy link

Hi @kumarhk,

The same problem just happened to me. It's because of a Facebook constraint for tokens not linked to the page admin. For more info see this comment on another issue: #172 (comment)

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

No branches or pull requests

2 participants