Open Xskysilva opened 6 years ago
Hi @Xskysilva
this is due to a similar issue I opened and closed a while ago about the missing likes table in the getPOst request. Basically, Facebook has begun to authorize this edge only to page owners. So you can't get the users' name or id unless you use a page token associated to an admin of the page. Unfortunately, there's nothing we can do here :(
If you do have admin access to the page, here's a link on how to get the token: https://medium.com/@Jenananthan/how-to-create-non-expiry-facebook-page-token-6505c642d0b1
From Graph Api Reference: "On February 5th, 2018, User information will not be included in responses unless you make the request with a Page access token. This only applies to Comments on Pages and Posts on Pages." https://developers.facebook.com/docs/graph-api/reference/v2.12/object/reactions
Perfect dear @nlch. Thank you for the answer. Anyway, the results are very good. Congratulations about the project. Regards.
Hi. Since some days ago, when I start to get comment from a post, the columm "from_id" and "from_name" has received "NA".
Look:![image](https://user-images.githubusercontent.com/36491178/36231412-afc4fe84-11bc-11e8-9528-c4b261ea0edb.png)
The code: a<-NULL i<-NULL ComentVGSH<-NULL P<-nrow(posts_VGSH) U<-P-100 if(U<1){U<-1} for (i in U:P) { postVG <- getPost(post=posts_VGSH$id[(i)], n=2000, token=token) a<- postVG[["post"]][["id"]] ifelse(nrow(postVG[["comments"]])==0,postVG[["comments"]][1,1]<-0,FALSE) postVG[["comments"]]$Post <- c(a) postVG[["comments"]]$Shopping <- c("Várzea Grande Shopping") postVG[["comments"]]$Indice <- i ComentVGSH<-rbind(postVG[["comments"]],ComentVGSH)}
What´s could be happening? Thanks.
Marcel Fernandes - From Brazil.