Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook I like button not working all the time
    primarykey
    data
    text
    <p>I have used the following code to implement the like - button:</p> <p><strong>Header</strong></p> <pre class="lang-html prettyprint-override"><code>&lt;!-- Facebook Metatags --&gt; &lt;meta property="og:image" content="http://mysite/logo.gif"/&gt; &lt;meta property="og:locality" content="mycity"/&gt; &lt;meta property="og:country-name" content="Germany"/&gt; &lt;meta property="og:latitude" content="52.xxxxxxx"/&gt; &lt;meta property="og:longitude" content="9.xxxxxxx"/&gt; &lt;meta property="og:type" content="product"/&gt; &lt;meta property="og:site_name" content="mypage.com"/&gt; &lt;meta property="og:url" content="http://mypage.de/myproduct/myproductkey"/&gt; &lt;meta property="og:title" content="Myproduct Description"/&gt; </code></pre> <p><strong>Body on mypage.de/myproduct/myproductkey</strong></p> <pre class="lang-html prettyprint-override"><code>&lt;div id="facebook-likebox"&gt; &lt;script src="http://connect.facebook.net/de_DE/all.js#xfbml=1"&gt;&lt;/script&gt; &lt;fb:like href="http://mypage.de/myproduct/myproductkey" width="450" height="90" show_faces="false"&gt;&lt;/fb:like&gt; &lt;/div&gt; </code></pre> <p>The result is inconsistent: Most of the time it works, but sometimes I get this error: </p> <blockquote> <p>You failed to provide a valid list of administators. You need to supply the administors using either a \"fb:app_id\" meta tag, or using a \"fb:admins\" meta tag to specify a comma-delimited list of Facebook users.</p> </blockquote> <p>This error makes no sense because when I call the page later or somebody else calls the page it works again. Any idea what is wrong here.</p> <p><strong>EDIT</strong></p> <p>I updated the site with these meta tags</p> <pre class="lang-html prettyprint-override"><code>&lt;meta property="fb:admins" content="xxx"/&gt; &lt;meta property="fb:app_id" content="xxx"/&gt; </code></pre> <p>I rechecked the ids on <a href="https://graph.facebook.com/xxx" rel="nofollow noreferrer">https://graph.facebook.com/xxx</a></p> <p>But I still get get errors sometimes. The new error is:</p> <blockquote> <p>The app ID "xxx" specified within the "fb:app_id" meta tag was invalid.</p> </blockquote> <p>But most of the time everyrthing works. Does anybody have any idea on how to solve this issue?</p> <p><strong>EDIT 1</strong></p> <p>Our site uses a load balancer and has a lot of external scripts (E-Tracker and other tracking solutions)</p> <p><strong>EDIT 2</strong></p> <p>We used LINT <a href="https://developers.facebook.com/tools/lint/" rel="nofollow noreferrer">https://developers.facebook.com/tools/lint/</a> to check the page</p> <p>It gives sometime an error (invalid app_id )and sometimes returns as valid. But the app-id from the meta-tags is allways parsed correctly and it is the valid app-id.</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.
 

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