2014-04-04 93 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。那麼簡單...