Graph API Version

Native Offer Nativeofferviews

Reading

You can't perform this operation on this endpoint.

Creating

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

Parameters

ParameterDescription
ad_account
numeric string or integer

Optional ID of an ad account, matched to the ad_image_hashes.

ad_image_hashes
list<string>

Optional array of ad image hashes, matched to the ad_account. Only one of ad_image_hashes, photos, urls, and multipart attachments should be specified.

carousel_captions
list<string>

Optional array of strings to be used as carousel captions.Makes carousel_links a required field; the number of items in each array must also match.

carousel_links
list<string>

Optional array of urls to be used as carousel captions.Makes carousel_captions a required field; the number of items in each array must also match.

image_crops
list<dictionary { enum{191x100, 100x72, 400x150, 600x360, 100x100, 400x500, 90x160} : <list<list<int64>>> }>

Optional array of image crop parameters

message
string

The main body of the post, otherwise called the status message. Required if either published_ads or published is true.

photos
list<numeric string or integer>

Optional array containing IDs of existing Photo objects. Only one of ad_image_hashes, photos, urls, and multipart attachments should be specified.

published
boolean

Whether to create and show a story about this native offer view. Only one of published_ads and published should be specified.

published_ads
boolean

Whether to create a story for use in ads. Only one of published_ads and published should be specified.

urls
list<URL>

Optional array of URLs for publicly accessible photos.Only one of ad_image_hashes, photos, urls, and multipart attachments should be specified.

videos
list<numeric string or integer>

Optional array of IDs for videos already owned by the page. Currently only one video is allowed per view.

Return Type

This endpoint supports read-after-write and will read the node to which you POSTed.
Struct {
success: bool,
native_offer_view: numeric string,
post: numeric string,
photos: List [
numeric string
],
videos: List [
numeric string
],
}

Validation Rules

ErrorDescription
262Incorrect permission to publish pages

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.