<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Facebook Cookbook &#187; Rendering</title>
	<atom:link href="http://fbcookbook.ofhas.in/tag/rendering/feed/" rel="self" type="application/rss+xml" />
	<link>http://fbcookbook.ofhas.in</link>
	<description>thousands of app development recipes</description>
	<lastBuildDate>Sun, 21 Mar 2010 10:38:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>tips for successful XFBML rendering</title>
		<link>http://fbcookbook.ofhas.in/2009/02/12/tips-for-successful-xfbml-rendering/</link>
		<comments>http://fbcookbook.ofhas.in/2009/02/12/tips-for-successful-xfbml-rendering/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 15:57:01 +0000</pubDate>
		<dc:creator>Hasin Hayder</dc:creator>
				<category><![CDATA[FB Connect]]></category>
		<category><![CDATA[iFrame]]></category>
		<category><![CDATA[xfbml]]></category>
		<category><![CDATA[Rendering]]></category>

		<guid isPermaLink="false">http://fbcookbook.ofhas.in/?p=234</guid>
		<description><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://fbcookbook.ofhas.in/2009/02/12/tips-for-successful-xfbml-rendering/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'tips for successful XFBML rendering';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
if you are creating a FBConnect application and suffering from unexpected result of XFBML renedeing in your application, here is a cool tip for you. always close yoour tag in &#60;tag&#62;&#60;/tag&#62; style and not like &#60;tag/&#62;. check out the following example for the differnece  &#8211;  


&#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xmlns:fb=&#34;http://www.facebook.com/2008/fbml&#34;&#62;
&#60;head&#62;&#60;/head&#62;
&#60;script src=&#34;http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;
&#60;body&#62;
&#60;div id=&#34;users&#34;&#62;&#60;/div&#62;
&#60;fb:login-button&#62;&#60;/fb:login-button&#62;
&#60;script type=&#34;text/javascript&#34;&#62;
 function renderXfbml(uid) [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;"><script type="text/javascript">
<!--
digg_url = 'http://fbcookbook.ofhas.in/2009/02/12/tips-for-successful-xfbml-rendering/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'tips for successful XFBML rendering';
digg_bodytext = '';
digg_media = 'news';
digg_topic = '';
//-->
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>if you are creating a FBConnect application and suffering from unexpected result of XFBML renedeing in your application, here is a cool tip for you. always close yoour tag in &lt;tag&gt;&lt;/tag&gt; style and not like &lt;tag/&gt;. check out the following example for the differnece  &#8211; <img src='http://fbcookbook.ofhas.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre name="code" class="php">

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot;&gt;
&lt;head&gt;&lt;/head&gt;
&lt;script src=&quot;http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;body&gt;
&lt;div id=&quot;users&quot;&gt;&lt;/div&gt;
&lt;fb:login-button&gt;&lt;/fb:login-button&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 function renderXfbml(uid) {
 			document.getElementById(&quot;users&quot;).innerHTML = &quot;&lt;fb:name uid=&#039;loggedinuser&#039; useyou=&#039;false&#039; /&gt; has sent a gift to &lt;fb:name uid=&#039;1009983642&#039; /&gt;&quot;;
 			FB.XFBML.Host.parseDomTree();
 	 	}
 FB.init(&quot;5b8d7fcc4d851e29908620757be663d1&quot;, &quot;http://sandbox.ofhas.in/fbtest/xd_receiver.htm&quot;, {&quot;ifUserConnected&quot; : renderXfbml});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>the output looks like the following one, which is no way an expected one &#8211; but the XFBML used in the example above is totally valid. it must show something like <b>Hasin Hayder has sent a gift to Rajeeb Khan</b></p>
<p><a href="http://fbcookbook.ofhas.in/wp-content/uploads/2009/02/picture-161.png"><img src="http://fbcookbook.ofhas.in/wp-content/uploads/2009/02/picture-161.png" alt="picture-161" title="picture-161" width="171" height="79" class="alignnone size-full wp-image-235" /></a></p>
<p>Now check out the revised XFBML block in the following example. </p>
<pre name="code" class="php">

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot;&gt;
&lt;head&gt;&lt;/head&gt;
&lt;script src=&quot;http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;body&gt;
&lt;div id=&quot;users&quot;&gt;&lt;/div&gt;
&lt;fb:login-button&gt;&lt;/fb:login-button&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
 function renderXfbml(uid) {
 			document.getElementById(&quot;users&quot;).innerHTML = &quot;&lt;fb:name uid=&#039;loggedinuser&#039; useyou=&#039;false&#039;&gt;&lt;/fb:name&gt; has sent a gift to &lt;fb:name uid=&#039;1009983642&#039;&gt;&lt;/fb:name&gt;&quot;;
 			FB.XFBML.Host.parseDomTree();
 	 	}
 FB.init(&quot;5b8d7fcc4d851e29908620757be663d1&quot;, &quot;http://sandbox.ofhas.in/fbtest/xd_receiver.htm&quot;, {&quot;ifUserConnected&quot; : renderXfbml});
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>and the output produced by the code above is perfect!</p>
<p><a href="http://fbcookbook.ofhas.in/wp-content/uploads/2009/02/picture-17.png"><img src="http://fbcookbook.ofhas.in/wp-content/uploads/2009/02/picture-17-300x71.png" alt="picture-17" title="picture-17" width="300" height="71" class="alignnone size-medium wp-image-236" /></a></p>
<p>hope you will take care of this issue and prevent yourself from stumbling. happy FBConnecting</p>
]]></content:encoded>
			<wfw:commentRss>http://fbcookbook.ofhas.in/2009/02/12/tips-for-successful-xfbml-rendering/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
