Learn R Programming

rfacebookstat (version 2.11.0)

rfacebookstat-package: tools:::Rd_package_title("rfacebookstat")

Description

tools:::Rd_package_description("rfacebookstat")

Arguments

Author

tools:::Rd_package_author("rfacebookstat")

Maintainer: tools:::Rd_package_maintainer("rfacebookstat")

Details

The DESCRIPTION file: tools:::Rd_package_DESCRIPTION("rfacebookstat") tools:::Rd_package_indices("rfacebookstat")

See Also

See oficial documantation: rfacebookstat package - https://selesnow.github.io/rfacebookstat/ Facebook API Marketing - https://developers.facebook.com/docs/marketing-apis/

Examples

Run this code
if (FALSE) {
library(rfacebookstat)
# Auth
token <- fbGetToken(app_id = 00000000000000)

# Get statistic
CampStat <- fbGetMarketingStat(accounts_id = "act_0000000000",
level = "campaign", fields = "campaign_name,impressions,clicks",
breakdowns = "age", sorting = "unique_impressions_descending",
filtering = "[{'field':'age','operator':'IN','value':['18-24','25-34']}]",
date_start = "2016-10-01", date_stop = "2016-10-10",
access_token = token)
}

Run the code above in your browser using DataLab