if (FALSE) {
#Attach package
library(rfacebookstat)
#Get token, where 0000000000000 is id of your app in facebook
tk <- fbGetToken(0000000000000)
#Add user with id 001 and 002 to accounts act_0001 and act_0002
fbUpdateAdAccountUsers(user_ids = c("001","002"),
accounts_id = c("act_0001","act_0002"),
role = "advertiser",
api_version = "v2.12",
access_token = tk)
}
Run the code above in your browser using DataLab