Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook Like Button disappears on clicking Like Button
    text
    copied!<p>Please note that the code below works fine and the FB Like button works when I click like on the button, but when I refresh thepage, the FB LIke button and other accompanying stats(no of likes, faces of ppl who like) disappears</p> <p>Any help is highly appreciated. Thanks !!!</p> <pre><code>&lt;body&gt; &lt;script&gt;(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.ge`enter code here`tElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&amp;appId=38135740xxxxxxx"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); &lt;/script&gt; &lt;div class="selection"&gt; &lt;div class="logo"&gt; &lt;img src="images/NA/jpg" height="100" width="180" /&gt; &lt;/div&gt; &lt;h3&gt; &lt;?php echo $favs[0]-&gt;name?&gt;'s top five products&lt;/h3&gt; &lt;?php // print_r($favs[0]);?&gt; &lt;div class="selected"&gt; &lt;div class="product"&gt;&lt;img src=&lt;?php echo '"../'.$favs[0]-&gt;photo1.'"'?&gt; alt="Image not available" height="175" width ="175"/&gt;&lt;/div&gt; &lt;div class="product"&gt;&lt;img src=&lt;?php echo '"../'.$favs[1]-&gt;photo1.'"'?&gt; alt="Image not available" height="175" width ="175"/&gt;&lt;/div&gt; &lt;div class="product"&gt;&lt;img src=&lt;?php echo '"../'.$favs[2]-&gt;photo1.'"'?&gt; alt="Image not available" height="175" width ="175"/&gt;&lt;/div&gt; &lt;div class="product"&gt;&lt;img src=&lt;?php echo '"../'.$favs[3]-&gt;photo1.'"'?&gt; alt="Image not available" height="175" width ="175"/&gt;&lt;/div&gt; &lt;/div&gt; &lt;span style="float:left;padding-top: 10px;"&gt;Do You like the products above?&lt;/span&gt; &lt;div id="fb-root"&gt;&lt;/div&gt; &lt;div class="fbLike"&gt; &lt;fb:like send="false" width="400" show_faces="true"&gt;&lt;/fb:like&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="textDesc"&gt; &lt;h3&gt;Participate in the Contest &amp; Get to Know us More&lt;/h3&gt; &lt;p&gt;You can also participate in the contest &amp; get know us more by simply visiting us at&lt;/p&gt; &lt;/div&gt; &lt;/body&gt; </code></pre>
 

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