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

likesDataToDF(content$likes$data) #166

Open
luanamarinho opened this issue Jan 29, 2018 · 0 comments
Open

likesDataToDF(content$likes$data) #166

luanamarinho opened this issue Jan 29, 2018 · 0 comments

Comments

@luanamarinho
Copy link

if (likes && n.likes > 0) out[["likes"]] <- likesDataToDF(content$likes$data)

post <- c("211857482296579_979613545520965") n <- 500 -> n.likes -> n.comments -> n.reactions comments <- TRUE -> likes -> reactions api <- "v2.11"

Running the source code line by line with the arguments above (trying both a temporary user access and a long-lived access token - extended_permissions=TRUE), I keep getting:

if (likes && n.likes > 0) out[["likes"]] <- likesDataToDF(content$likes$data)
out[["likes"]]
#NULL

which will make n.l <- 0, according to:
if (likes && n.likes > 0) n.l <- ifelse(!is.null(out$likes), dim(out$likes)[1], 0) (line 128)

which, in turn, will influence on further conditions such as:
if (!is.null(url.likes) && likes && n.l > 0 && n.likes > n.l)) (line 158)

and thus preventing (I risk saying) retrieving a next batch of likes, for example. In any case, however,
url <- content$likes$paging$`next
content <- callAPI(url=url.likes, token=token, api=api)
out[["likes"]] <- rbind(out[["likes"]], likesDataToDF(content$data))
out[["likes"]]
#NULL

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

1 participant