Description Usage Arguments Author(s) Examples
Get creative content details and meta-data
1 | getCreative(object.story.id, token, fields = c("name", "id", "message"))
|
object.story.id |
Object story id, can be obtained with
|
token |
A valid token as returned by |
fields |
Variables to retrieve, see |
John Coene jcoenep@gmail.com
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# run authentication with your app details
fbOAuth <- fbAuthenticate(app.id = "1234567890123456",
app.secret = "76xx79121xx0130x2x10a08x3e2x80xx",
scope = "ads_management")
ls <- listCreatives(id = "act_1231313", token = fbOAuth)
(creative <- getCreative(object.story.id = sample(ls$object_story_id, 1),
token = fbOAuth))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.