The Open Graph presents a simple, consistent view of the Facebook social graph, uniformly representing objects in the graph and the connections between them. The Action Spec is a comprehensive and precise query language within the API that provides you with access to the Open Graph. The Action Spec enables you to specify the sub-graph of interest for the purpose of running and measuring marketing activities on Facebook. You can specify the action type and properties of the object of interest using selectors. In essence, selectors are the building blocks of an Action Spec query. You can apply these to a number of marketing applications such as:
The Action Spec is an extremely powerful framework that gives you complete and precise access to the entire social graph to manage and optimize your marketing presence on Facebook. See the list of available on site objects and actions in Defining Action Specs.
Marketers can use the Action Spec for Sponsored Stories to selectively sponsor nearly any relevant action taken on any Facebook object. The Action Spec enables marketers to reach users with a wide range of relevant stories to achieve specific marketing objectives. Below are three examples of sponsored stories:
If you are interested in acquiring fans for your page, you can use “Page Like” sponsored stories shown to friends of users who have recently Liked your page. The Action Spec for this would be
{'action.type':'like', 'page': 'https://www.facebook.com/JaspersMarket'}
This Action Spec will select all the like actions that happened on the Jasper’s Market Facebook page located at https://www.facebook.com/JaspersMarket.
Note that {'action.type':'like', 'page': 130533530354972} would accomplish the same thing since 130533530354972 is the id for https://www.facebook.com/JaspersMarket.

If you are interested in driving awareness for a product, you can run a photo page post featuring that product and run ads and sponsored stories from that page post. You can then sponsor user comments, likes, and shares of that photo post as sponsored stories so that any engagement with the photo post will also be promoted to the friends of those who have engaged with that page post. All of these stories originate from your post, and because these stories lead with the voice of your fan, they are integral for spreading your message to friends of fans.
The Action Spec for the likes and comments would be:
{'action.type':['like', 'comment'],'post':[266401036768220]}
This Action Spec will select all the like and comment actions that happened on the page that is Jaspers Market. Here is an example of a page post comment sponsored story.

And you would create a separate Action Spec for the share:
{'action.type':'post', 'post.object': 266401036768220}
Finally, if you are interested in driving application installs or uses, you can use the Action Spec to boost a custom open graph action [Beta].
The Action Spec for this would be
{'action.type':''bookreader:rate', 'application': 12345678}
This Action Spec will select all the ‘rated’ actions that happened on the Application that is BookReader.

Because some sponsored stories are dependent on users’ interactions, available inventory (stories) may take time to accumulate. For example, if you are sponsoring page post likes, eligible stories to be sponsored will be based on the number of users who like that particular page post once its been posted.
You can use the Action Spec to create sponsored stories only for actions that originate from a page, application, or website (via social plugins) and are eligible for News Feed. For example, when a user views a photo or spends credit in an application, those actions do not create stories in the News Feed. As a result, you cannot create a sponsored story from these actions. Stories are eligible to be sponsored for up to 14 days from the time of creation.
For more information about using the Action Spec for sponsored stories, go here.
The Action Spec can be used to target ads or sponsored stories based on connections that have been established as a result of a specific action. For example, using the Action Spec, you can target users (or friends of users) who listened to music on a specific application or commented on a specific page post. Action Spec Targeting is an extremely powerful way to segment your target audience based on connections they have made on the social graph. Except for a few action types (Page Likes, App Installs, and Credit Spent), you can target your ad or sponsored story using any action on any object. Below are three examples of ways you can use the Action Spec to target your ads and sponsored stories:
Similar to Sponsored Stories, you can use the Action Spec to target ads based on only actions that create stories that are eligible for News Feed. For example, you cannot use the Action Spec to target an ad based on users who have viewed a photo or played a video since neither of these actions creates a News Feed story.
For more information on Action Spec targeting, go here.
To learn more about how to define Action Specs see here.
When running ads that point to a page, application, or website with social plugins, you can use the conversion spec to define specific actions to track back to an ad group using multiple click and view through attribution windows. Conversion specs enable marketers to measure and optimize their ad campaigns to very specific downstream actions.
Below are three examples of ways you can use the Action Spec to measure the performance of your ads and sponsored stories.
If you are interested in driving awareness for a product, you can sponsor a video page post featuring that product as a sponsored story. For the sponsored story, you can set up a custom conversion spec to track actions such as:
If you are running an offer and sponsoring the offer claims through sponsored stories, you can set up the conversion spec to track actions such as:
If you are promoting a page and interested in acquiring new fans, you can create a page like sponsored story and set up a custom conversion spec to track actions such as:
Number of views of a specific page tab (e.g., “wall”). If you do not specify a conversion spec for a given ad or sponsored story that points to an application or website, the default conversion spec will be used.
You cannot create a conversion spec for an object for which you do not have permissions.
Because the default conversion spec for ads pointing to apps contains potentially sensitive insights, we will also disable the default conversion spec for app ads if those ads are created by someone who is not an admin of that app
For more information on conversion specs, go here