<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[Facebook - All your code are belong to us]]></title><description><![CDATA[Thoughts, stories and ideas on code and technology in general.<br>Blog title inspired by <a href="https://en.wikipedia.org/wiki/All_your_base_are_belong_to_us" target="_blank">this meme</a>]]></description><link>https://allurcode.com/</link><image><url>https://allurcode.com/favicon.png</url><title>Facebook - All your code are belong to us</title><link>https://allurcode.com/</link></image><generator>Ghost 4.48</generator><lastBuildDate>Tue, 09 Jun 2026 14:48:07 GMT</lastBuildDate><atom:link href="https://allurcode.com/tag/facebook/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Multiple dynamic Facebook like buttons on one page]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>Putting one like button on a page is very simple and comes down to pasting the code from Facebook like button generator found <a href="https://developers.facebook.com/docs/plugins/like-button">here</a>.<br>
It gets a bit more complicated when we need to add more than one button on a page along with a dynamically generated content. Best example</p>]]></description><link>https://allurcode.com/multiple-dynamic-facebook-like-buttons-on-one-page/</link><guid isPermaLink="false">5b7b0aa2b52b43084c9ea13b</guid><category><![CDATA[Facebook]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[like button]]></category><dc:creator><![CDATA[Wojtek]]></dc:creator><pubDate>Thu, 30 Jun 2011 13:11:04 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>Putting one like button on a page is very simple and comes down to pasting the code from Facebook like button generator found <a href="https://developers.facebook.com/docs/plugins/like-button">here</a>.<br>
It gets a bit more complicated when we need to add more than one button on a page along with a dynamically generated content. Best example I can think of is a search results page where every search result has it&#x2019;s own like button.</p>
<h3 id="prepare">Prepare</h3>
<p>Put this somewhere in your page. Official Facebook documentation changes it&#x2019;s recommendation from time to time, so let&#x2019;s say just put it right after opening <code>&lt;body&gt;</code> tag.</p>
<pre><code class="language-html">&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;
</code></pre>
<h3 id="pasteyourlikebuttonscode">Paste your Like buttons code</h3>
<pre><code class="language-html">&lt;fb:like href=&quot;http://example.com&quot; send=&quot;false&quot; layout=&quot;button_count&quot; show_faces=&quot;false&quot;&gt;&lt;/fb:like&gt;
</code></pre>
<h3 id="initializelikebuttons">Initialize Like buttons</h3>
<p>In your JavaScript code after inserting all the <code>fb:like</code> tags you need to initialize all those buttons. You can do that by running below code</p>
<pre><code class="language-javascript">window.fbAsyncInit = function() {
  FB.init({appId: &apos;your_app_id&apos;, status: true, cookie: true, xfbml: true});
};
(function() {
  var e = document.createElement(&apos;script&apos;);
  e.async = true;
  e.src = document.location.protocol + &apos;//connect.facebook.net/en_US/all.js&apos;;
  document.getElementById(&apos;fb-root&apos;).appendChild(e);
}());
</code></pre>
<p>Remember to change &quot;your_app_id&quot; to your actual app id.</p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Hot off the workshop vol. 1]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p>Just launched. TK Maxx and Red Nose Day campaign applications.</p>
<h3 id="facebookquiz">Facebook quiz</h3>
<p><a href="https://apps.facebook.com/red_nose_tshirt/"><img src="https://allurcode.com/content/images/2011/02/portfolio_1_1.jpg" alt loading="lazy"></a></p>
<p>Fun quiz to find out your perfect Red Nose Day t-shirt.<br>
<a href="https://apps.facebook.com/red_nose_tshirt/">View site</a></p>
<h3 id="websiteapplication">Website application</h3>
<p><a href="https://apps.facebook.com/red_nose_tshirt/"><img src="https://allurcode.com/content/images/2011/02/portfolio_1_2.jpg" alt loading="lazy"></a></p>
<p>Upload you photo with Flash uploader, resize it and pan it around with JavaScript then save your results with PHP.<br>
<a href="https://apps.facebook.com/red_nose_tshirt/">View site</a></p>
<!--kg-card-end: markdown-->]]></description><link>https://allurcode.com/hot-off-the-workshop-vol-1/</link><guid isPermaLink="false">5b7b0aa2b52b43084c9ea132</guid><category><![CDATA[CSS]]></category><category><![CDATA[Facebook]]></category><category><![CDATA[HTML]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[MySQL]]></category><category><![CDATA[PHP]]></category><dc:creator><![CDATA[Wojtek]]></dc:creator><pubDate>Wed, 23 Feb 2011 11:51:53 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p>Just launched. TK Maxx and Red Nose Day campaign applications.</p>
<h3 id="facebookquiz">Facebook quiz</h3>
<p><a href="https://apps.facebook.com/red_nose_tshirt/"><img src="https://allurcode.com/content/images/2011/02/portfolio_1_1.jpg" alt loading="lazy"></a></p>
<p>Fun quiz to find out your perfect Red Nose Day t-shirt.<br>
<a href="https://apps.facebook.com/red_nose_tshirt/">View site</a></p>
<h3 id="websiteapplication">Website application</h3>
<p><a href="https://apps.facebook.com/red_nose_tshirt/"><img src="https://allurcode.com/content/images/2011/02/portfolio_1_2.jpg" alt loading="lazy"></a></p>
<p>Upload you photo with Flash uploader, resize it and pan it around with JavaScript then save your results with PHP.<br>
<a href="https://apps.facebook.com/red_nose_tshirt/">View site</a></p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[Sharing in 2010 belonged to Facebook]]></title><description><![CDATA[<!--kg-card-begin: markdown--><p><img src="https://allurcode.com/content/images/2011/01/2010-addthis-trends-infographic1.jpg" alt="Sharing in 2010" loading="lazy"></p>
<p>Very nice infographic by <a href="https://jeffwongdesign.blogspot.com/">http://jeffwongdesign.blogspot.com/</a></p>
<!--kg-card-end: markdown-->]]></description><link>https://allurcode.com/sharing-in-2010-belonged-to-facebook/</link><guid isPermaLink="false">5b7b0aa2b52b43084c9ea12f</guid><category><![CDATA[Facebook]]></category><category><![CDATA[Google]]></category><category><![CDATA[MySpace]]></category><category><![CDATA[share]]></category><category><![CDATA[sharing]]></category><category><![CDATA[Twitter]]></category><dc:creator><![CDATA[Wojtek]]></dc:creator><pubDate>Sun, 30 Jan 2011 17:44:00 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><p><img src="https://allurcode.com/content/images/2011/01/2010-addthis-trends-infographic1.jpg" alt="Sharing in 2010" loading="lazy"></p>
<p>Very nice infographic by <a href="https://jeffwongdesign.blogspot.com/">http://jeffwongdesign.blogspot.com/</a></p>
<!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>