Get results of a synchronous query from FB graph API
fbad_request(
fbacc,
path,
method = c("GET", "POST", "DELETE"),
params = list(),
debug = FALSE,
log = TRUE,
version,
retries = 0
)
json object containing results
(optional) FB_Ad_account
object, which defaults to the last returned object of fbad_init
.
API request path (i.e. endpoint)
HTTP request type (e.g. GET or POST or DELETE)
a name-value list of form parameters for API query
print debug messages by calling Curl verbosely
print log messages or suppress those
Facebook Marketing API version, defaults to what was used in the most recent fbad_init
function call or fb_api_most_recent_version()
before such function call
number of times the current query was tried previously -- used to handle network errors