# [Helpers](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#amp-html-helpers) / `amp_facebook` ## Information `amp_facebook` allows to easily embed ads with AMP, not hurting performance. --- ### Quick info #### Latest update: 0.6.2 (Pre-release) - 2017-03-20 [**Changelog for version 0.6.2**](https://github.com/slooob/amp-html/blob/master/CHANGELOG.md#062-pre-release---2017-03-20) #### [DeepIntegration](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#deepintegration-helpers): Disabled #### [Availability](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#availability-of-helpers): Installable with the [Social Component](https://github.com/slooob/amp-html/tree/master/lib/amp-html/components/docs/social.md) #### [Takes a block?](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#takes-a-block): Yes --- ## General ### Reference [**AMP Reference**](https://www.ampproject.org/docs/reference/components/social/amp-facebook) #### Required Parameters * `href` * `size` (or `width` & `height`) #### Structure <%= amp_facebook(href, options) %> # **Note:** `layout` defaults to `responsive` if not explicitly permitted. ## Examples Setting width & height: <%= amp_facebook("https://www.facebook.com/zuck/posts/10102593740125791", width: 486, height: 657) %> <%= amp_facebook("https://www.facebook.com/zuck/posts/10102593740125791", size: "486x657") %> # Embedding a post: <%= amp_facebook("https://www.facebook.com/zuck/posts/10102593740125791", width: 486, height: 657) %> # Embedding a video: <%= amp_facebook("https://www.facebook.com/zuck/posts/10102593740125791", type: "video", width: 486, height: 657 ) %> # `amp_facebook` also takes a block: <%= amp_facebook("https://www.facebook.com/zuck/posts/10102593740125791", width: 486, height: 657) do %> <%= amp_placeholder("blockquote", class: "facebook-post") do %>

The story how I became what some people would call a frontend engineer and an exploration into what that even means

<% end %> <% end %> **References:** [`amp_placeholder`](https://github.com/slooob/amp-html/blob/master/lib/amp-html/helpers/docs/amp_placeholder.md)