Graph API Version

Product Feed Schedule

Reading

The configuration for fetching a feed in a recurrant manner. If it's an update_schedule, the scheduled uploads would update existing items with the information delta provided or create new ones if not present. If its a replace schedule, this will be a full replace operation where items not present in the feed file will be removed, new items will be created and existing items will be updated.

Examples

curl -G \
-d "fields=schedule" \
https://graph.facebook.com/<API_VERSION>/<PRODUCT_FEED_ID>

Example

Graph API Explorer
GET v4.0/...?fields={fieldname_of_type_ProductFeedSchedule} 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_ProductFeedSchedule}',
    '{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_ProductFeedSchedule}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "...?fields={fieldname_of_type_ProductFeedSchedule}",
    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_ProductFeedSchedule}"
                                      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
day_of_month
unsigned int32

The day of month to fetch feed, for monthly schedules e.g., 1 for first of month

day_of_week
enum {SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY}

The day of week to fetch feed, for weekly schedules. Allowed values: SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY

hour
unsigned int32

Hour of the day to fetch the product feed, 0-23 Pacific Time(PT) which is PDT during summer and PST during winter. If the interval is hourly and interval count more than 0, the next upload will occur the interval_count time after the upload.

interval
enum {HOURLY, DAILY, WEEKLY, MONTHLY}

The interval at which the product feed gets fetched

interval_count
unsigned int32

Specifies number of intervals between each upload, default is 1. For example, when interval_count is 2 with interval set to daily, feed will we uploaded every two days at the given time.

minute
unsigned int32

Minute of the hour to fetch the product feed, 0-59

timezone
string

The string representation of the timezone in which the schedule params are specified

url
string

The location of the product feed to fetch

username
string

The username that is needed to access the url

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.