#' List images
#'
#' @description Fetches the list of images under a given account.
#'
#' @inheritParams listCreatives
#'
#' @examples
#' \dontrun{
#' imgs <- listImages(id = "act_123456789012345", token = "XXXXXX")
#' }
#'
#' @author John Coene \email{jcoenep@@gmail.com}
#'
#' @export
listImages <- function (id, token, fields = "default", n = 100,
verbose = FALSE, limit = 100) {
fb_data <- findObjects(id = id, token = token, fields = fields,
n = n, verbose = verbose, object = "adimages",
FUN = "listImages", limit = limit)
if (nrow(fb_data) == 0) warning(paste("No data."), call. = FALSE)
return (fb_data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.