
Get Facebook page insights
cc_get_fb_page_insights.RdFor reference, see the official documentation.
Usage
cc_get_fb_page_insights(
metric = c("page_media_view"),
start_date = NULL,
end_date = NULL,
meta_api_version = cornucopia::cc_get_meta_api_version(),
cache = TRUE,
only_cached = FALSE,
fb_page_id = NULL,
fb_page_token = NULL
)Arguments
- metric
Defaults to `page_media_view`.
- start_date
Defaults to 91 days before today
- end_date
Defaults to yesterday.
- meta_api_version
Defaults to the latest API at the time this package was last updated. Currently, this corresponds to api version 24.0.
- cache
Defaults to `TRUE`.
- only_cached
Defaults to `FALSE`. If `TRUE`, only data cached locally will be retrieved.
- fb_page_id
Facebook page identifier. Can be retrieved with [cc_get_fb_managed_pages()].
- fb_page_token
Facebook page token, different from the user token. Can be retrieved with [cc_get_fb_page_token()] or [cc_get_fb_long_page_token()].
Details
Find the whole list of available metrics in the dedicated section of the official documentation.
N.B. Even if not detailed in the documentation "page_impressions*" metrics have been deprecated on 15 November 2025. See the official update.