Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add Open Graph properties to an iframe?
    primarykey
    data
    text
    <p>How to add Open Graph properties to an iframe?</p> <p>For example, this is a Facebook "Like" button generated by default by prettyPhoto (lightbox-like jquery plugin for displaying full-screen images):</p> <pre><code>&lt;iframe src="//www.facebook.com/plugins/like.php?locale=en_US&amp;amp;href=http%3A%2F%2Fexample.com%2F%23prettyPhoto%2F2%2F&amp;amp;layout=button_count&amp;amp;show_faces=true&amp;amp;width=500&amp;amp;action=like&amp;amp;font&amp;amp;colorscheme=light&amp;amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowtransparency="true"&gt;&lt;/iframe&gt; </code></pre> <p>This code has the following problems:</p> <ol> <li>in practice, it Likes the page <a href="http://example.com" rel="nofollow">http://example.com</a> instead of the dynamic photo page (which is <a href="http://example.com/#prettyPhoto/2/" rel="nofollow">http://example.com/#prettyPhoto/2/</a>)</li> <li>It shows title and description from page <a href="http://example.com" rel="nofollow">http://example.com</a> instead of the dynamic photo page</li> </ol> <p>The <a href="http://developers.facebook.com/tools/debug" rel="nofollow">http://developers.facebook.com/tools/debug</a> tool, when I pass my dynamic image page address to it (http://example.com/#prettyPhoto/2/) tells me that:</p> <pre><code>Inferred Property: The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags. Inferred Property: The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags. Inferred Property: The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags. </code></pre> <p>Will setting those properties help to have the correct url and description for the image? How to insert those properties into the "Like" button iframe? For example, let's assume that the og:title is "My super image". How should the mentioned above iframe code look like with this property set, where to put it?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload