RTB Dynamic Post
An RTB Dynamic Post Node.
A dynamically generated Post, used for Dynamic Ad Creatives
GET /v10.0/{rtb-dynamic-post-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{rtb-dynamic-post-id}',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
"/{rtb-dynamic-post-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{rtb-dynamic-post-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{rtb-dynamic-post-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Field | Description |
---|---|
id numeric string | The dynamic post ID |
child_attachments list<DynamicPostChildAttachment> | List of child cards for carousel posts |
created datetime | The time this post was made |
description string | The link description |
image_url string | The dynamic post image |
link string | The dynamic post link |
message string | The post text |
owner_id numeric string | The ID of the owner of this post |
place_id numeric string | The place page ID of the dynamic post |
product_id numeric string | The product ID |
title string | The title of the dynamic post |
Error | Description |
---|---|
100 | Invalid parameter |