Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Recommend Ignoring og:title Until Page Refreshed
    text
    copied!<p>I have the typical HTML5 implementation of the Facebook recommend button:</p> <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt; &lt;script type="javascript"&gt; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; &lt;? if ( $current_language == 'en' ): ?&gt; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; &lt;? else: ?&gt; js.src = "//connect.facebook.net/fr_CA/all.js#xfbml=1"; &lt;? endif; ?&gt; fjs.parentNode.insertBefore(js, fjs); } (document, 'script', 'facebook-jssdk')); &lt;/script&gt; &lt;div class="share_button facebook" id="facebook"&gt; &lt;div class="fb-like" data-send="false" data-layout="button_count" data-width="80" data-show-faces="false" data-action="recommend"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>The first time I click it, the popup preview box does not display the Title or Description. I have the following info at the top of the page: Test</p> <pre><code>&lt;meta http-equiv="Content-Script-Type" content="text/javascript" /&gt; &lt;meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" /&gt; &lt;meta name="description" content="Test website." /&gt; &lt;meta name="keywords" content="test whatever" /&gt; &lt;meta property="og:title" name="Show this!" content="Show this!" /&gt; </code></pre> <p>If I leave the page, unrecommend the page from Facebook and return to the same page and press Recommend again, the title and description then appear. The page shows one of thousands of db entries so the problem needs to be fixed. I have tried putting the js function in jQuery(document).ready(function() - no luck. I tried moving it to the bottom of the page - no luck. Can someone help me?</p>
 

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