Graph API Version

Expirable Post

Reading

A post that was scheduled to expire on a Facebook page

Example

Graph API Explorer
GET v4.0/...?fields={fieldname_of_type_ExpirablePost} 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(
    '...?fields={fieldname_of_type_ExpirablePost}',
    '{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(
    "...?fields={fieldname_of_type_ExpirablePost}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "...?fields={fieldname_of_type_ExpirablePost}",
    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:@"...?fields={fieldname_of_type_ExpirablePost}"
                                      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
id
numeric string

The ID of the post

admin_creator

Person who created this post

can_republish
bool

Shows if viewer can republish post or not

content_type
string

The type of the expirable entity

creation_time
datetime

The time the content was created

expiration

Shows the time the post expires and whether it will be deleted or hidden

feed_audience_description
string

Readable description of the news feed audience used in the post

feed_targeting

The targeting of the draft

is_post_in_good_state
bool

Indicate whether the post is in good state to publish

message
string

The message used in the post

modified_time
datetime

The time the post was last edited

og_action_summary
string

Readable description of the OG action of the post

permalink_url
string

The permalink to the post

place

Place info for the post

privacy_description
string

A description of the privacy for this post

promotion_info

The promotional info for the post

scheduled_failure_notice
string

The scheduled failure notice text.

scheduled_publish_time
datetime

The scheduled time to publish.

story_token
string

The token of the story created for the post

thumbnail
string

A thumbnail of an image attached to the post

video_id
numeric string

The id of the video that attached on the post

Creating

You can't perform this operation on this endpoint.

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.