2014-04-04 98 views
0

当连接到某些商业Facebook页面(如The North Face)时,我遇到了rfacebook包的getPost函数有问题。getPost函数出错

我构建了以下步骤从北脸得到这个职位数据:

#Step1 
#start the libaries 
library(Rfacebook) 
library(Rook) 
library(igraph) 

#step 2 
#browse an set token 
browseURL("https://developers.facebook.com/tools/explorer") 

token <- "...insert access token from facebook..." 

#step 3 
#choose facebook page of The North Face and get 1000 posts 
page.thenorthface <- getPage("thenorthface", token, n=1000) 
View(page.thenorthface) 

#step 4 
#get post information 
post.thenorthface <- getPost("...insert random post id from page.thenorthface...", token, n = 500, comments = TRUE,likes = TRUE, n.likes=500, n.comments=500) 
View(post.thenorthface) 

在最后一步时发生错误。在德国,它说:

Fehler in function (type, msg, asError = TRUE) : 
    Failed connect to :80; Connection refused 

含义:“错误的功能(类型,味精,......”

我没有找到有关这个问题的任何信息,但能够重现它在其他(OSX )的计算机。

不与其他一些/小公司如“WengerSA”发生错误。

有谁有一个想法?也许Facebook是阻止访问某些网页的商业信息?

回答

0

您需要R 3.0.3。它不适用于3.0.2。那么简单...