fbDownloadBusinessInvoices downloads invoice PDF files from a vector of URLs.
It automatically handles both Graph API URLs (adding access tokens) and direct CDN URLs.
fbDownloadBusinessInvoices(
urls,
dest_dir = ".",
file_names = NULL,
username = getOption("rfacebookstat.username"),
token_path = fbTokenPath(),
access_token = getOption("rfacebookstat.access_token")
)A data frame (tibble) containing the download status for each URL.
A character vector of URLs (from `download_uri` or `cdn_download_uri`).
Destination directory where files will be saved. Defaults to the current working directory.
Optional character vector of file names. If NULL, names will be auto-generated.
your username on Facebook
path to dir with credentials
Your facebook API token
Alexey Seleznev