Graph API Version

Rtb Dynamic Post

Reading

A dynamically generated Post, used for Dynamic Ad Creatives

Permissions

Developers usually request these permissions for this endpoint:

Marketing Apps
No data
Page management Apps
  • manage_pages
  • pages_show_list
  • pages_messaging
Other Apps
No data

Example

Graph API Explorer
GET /v2.11/{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();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* 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
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

This endpoint doesn't have any parameters.

Fields

FieldDescription

child_attachments

list<DynamicPostChildAttachment>

List of child cards for carousel posts

created

datetime

The time this post was made

description

string

The link description

id

numeric string

The dynamic post ID

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

Edges

EdgeDescription

comments

Facebook comments associated with this post

likes

People who have liked this post

Validation Rules

ErrorDescription
100Invalid parameter

Creating

You can't perform this operation on this endpoint.

Updating

You can't perform this operation on this endpoint.

Deleting

Example

You can delete a RTBDynamicPost by making a DELETE request to /{rtb_dynamic_post_id}.

Parameters

This endpoint doesn't have any parameters.

Return Type

Struct {
success: bool,
}