Graph API Version

Expirable Post

Reading

A post that was scheduled to expire on a Facebook page

Examples

Graph API Explorer
GET v2.10/...?fields={fieldname_of_type_ExpirablePost} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '...?fields={fieldname_of_type_ExpirablePost}'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* 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

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_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

Edges

No edges

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.