2015-07-11 68 views
0

我讓fb_OAuth工作。我的瀏覽器說,認證成功,並告訴重定向我R.然而,這似乎什麼:RFvertise認證錯誤

Copy and paste into Site URL on Facebook App Settings: http://localhost:1410 
When done, press any key to continue... 
Waiting for authentication in browser... 
Press Esc/Ctrl + C to abort 
Authentication complete. 
Error: Deprecated: supply token object to config directly" 
+0

請提供[可重現的示例](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)。 – akhmed

回答

2

這是正在討論here。 顯然,httr存在一個問題,其中rfacebook的FB認證功能是基於此問題的。

你可以嘗試以下方法:

安裝的httr

舊版本你可以試試從克倫的存檔下載的tar.gz文件

#Credit to Thomas Leeper from whose answer the following was copied 
#http://stackoverflow.com/questions/17082341/installing-older-version-of-r-package 
#for example of ggplot2 
packageurl <- "http://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_0.9.1.tar.gz" 
install.packages(packageurl, repos=NULL, type="source") 

或者你可以嘗試install_version()功能來自devtools

訪問此鏈接生成temporay認證
https://developers.facebook.com/tools/explorer/
,然後粘貼你獲得到了需要訪問令牌rfacebook任何功能的令牌。


更新

截至8月6日,包的作者有sorted the problem out - 現在可以完成認證過程沒有錯誤結束了。