The Ad Preview plugin is the easiest way for advertisers to preview ads on their own websites.
The plugin enables you to generate Right Hand Column, Newsfeed, or Mobile previews of an ad by specifying a Creative Spec, Adgroup ID or Creative ID. Previews can either be generated using a Social Plugin or through the Graph API.
The preview plugin requires you to be logged in with Facebook Login. If
ad_account_id is used, you must also have the permissions to access the Creative, Ad Group, or Ad Account respectively.
Required when specifying a creative that uses "image_hash"
Adgroup ID returned from a Graph API call.
JSON-encoded creative spec.
Creative ID returned from a Graph API call.
One of: "RIGHT_COLUMN_STANDARD", "DESKTOP_FEED_STANDARD", or "MOBILE_FEED_STANDARD".
One of: "rightcolumn", "desktopfeed", or "mobile".
JSON-encoded targeting spec.
JSON-encoded post specification according to the Pages API documentation.
Previews can also be generated using the Graph API. To generate a plugin-style preview, simply specify the additional parameter,
ad_format, as described in the table above.