Graph API Version

Product Feed Upload

Reading

A specific product feed upload attempt

Examples

Example to get a list of uploads of a product feed:

curl -G \
-d "access_token=<ACCESS_TOKEN>" \
https://graph.facebook.com/<PRODUCT_FEED_ID>/uploads

Example to get the status of a feed upload:

curl -G \
-d "access_token=<ACCESS_TOKEN>" \
https://graph.facebook.com/<PRODUCT_FEED_UPLOAD_ID>

Example

Graph API Explorer
GET /v3.3/{product-feed-upload-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(
    '/{product-feed-upload-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(
    "/{product-feed-upload-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{product-feed-upload-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:@"/{product-feed-upload-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
id
numeric string

ID of the product feed upload

end_time
datetime

The time the upload was completed

error_count
int32

The total number of errors for feed upload

error_report
ProductFeedUploadErrorReport

Error report file handle and status, if the error report for this upload was requested

filename
string

The name of the file the product feed was uploaded from

input_method
enum {Manual Upload, Server Fetch, Reupload Last File, User initiated server fetch}

The input method the product feed was obtained with

num_deleted_items
int32

The number of deleted items

num_detected_items
int32

The number of items detected while reading the feed file

num_invalid_items
int32

The number of invalid items

num_persisted_items
int32

The number of persisted items

start_time
datetime

The time the upload process started

url
string

The url to fetch the products from

warning_count
int32

The total number of warnings for feed upload

Edges

EdgeDescription

List of errors during the product feed upload

Validation Rules

ErrorDescription
100Invalid parameter
200Permissions error

Creating

You can make a POST request to error_report edge from the following paths:
When posting to this edge, a ProductFeedUpload will be created.

Parameters

This endpoint doesn't have any parameters.

Return Type

This endpoint supports read-after-write and will read the node to which you POSTed.
Struct {
success: bool,
}

Validation Rules

ErrorDescription
100Invalid parameter

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.