library(devtools)
install_github("XMPPNotifier", username="wush978")
也可以下載source後使用R CMD INSTALL
來安裝
Windows使用者需要安裝Rtools
發送訊息給特定的fbid
** 無法發送中文 **
library(XMPPNotifier)
facebook_message("username", "password", "fbid", "R XMPPNotifier testing message")
- 右鍵點一個使用者的圖像
- 選擇
複製影像網址
- 將網址貼出來。可能會看到如下的網址:
http://profile.ak.fbcdn.net/hprofile-ak-snc4/275632_764210555_1265212477_q.jpg
- 介於
_
的數字就是fbid(例如上面連結中的764210555
)
library(devtools)
install_github("XMPPNotifier", username="wush978")
or you can download the source and build with R CMD INSTALL
Windows User please install Rtools
first.
Send a message to a specific fbid:
library(XMPPNotifier)
facebook_message("username", "password", "fbid", "R XMPPNotifier testing message")
- right click on your facebook profile image
- choose
Copy Image URL
link - Paste the link in a notepad. You should received a link like:
http://profile.ak.fbcdn.net/hprofile-ak-snc4/275632_764210555_1265212477_q.jpg
- The number between
_
is the user ID such as764210555
in the previous example.