<?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>Idea Manglar &#187; Jonathan Rincon</title>
	<atom:link href="http://blog.manglar.com/author/jrinconm/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.manglar.com</link>
	<description>{ideas}</description>
	<lastBuildDate>Tue, 08 Jun 2010 08:02:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Facebook Javascript Api</title>
		<link>http://blog.manglar.com/facebook-javascript-api/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=facebook-javascript-api</link>
		<comments>http://blog.manglar.com/facebook-javascript-api/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 22:28:18 +0000</pubDate>
		<dc:creator>Jonathan Rincon</dc:creator>
				<category><![CDATA[Tech Recipes]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.manglar.com/?p=109</guid>
		<description><![CDATA[The Facebook JavaScript client library allows you to access various features of Facebook Platform through JavaScript. So you can develop rich ajax applications with the integration of any JavaScript library as jQuery and this Api.
Setting up the JavaScript client:
1.    Go to your facebook application configuration and set the “Connect Url” to the ]]></description>
			<content:encoded><![CDATA[<p>The Facebook JavaScript client library allows you to access various features of Facebook Platform through JavaScript. So you can develop rich ajax applications with the integration of any JavaScript library as jQuery and this Api.</p>
<p>Setting up the JavaScript client:</p>
<p>1.    Go to your facebook application configuration and set the “Connect Url” to the url where your code is hosted, usually is the same URL for your “Canvas Callback URL” as seen on the post  “Setup a facebook application”.<br />
2.    Create a file called xd_receiver.htm. this file handles the cross domain communication and must contain the following code:</p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode"><span class="kwrd">&lt;!</span><span class="html">DOCTYPE</span> <span class="attr">html</span> <span class="attr">PUBLIC</span> <span class="kwrd">"-//W3C//DTD XHTML 1.0 Strict//EN"</span> <span class="kwrd">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">html</span> <span class="attr">xmlns</span><span class="kwrd">="http://www.w3.org/1999/xhtml"</span> <span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">head</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">title</span><span class="kwrd">&gt;</span>Cross-Domain Receiver Page<span class="kwrd">&lt;/</span><span class="html">title</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;/</span><span class="html">head</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">body</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">script</span> <span class="attr">src</span><span class="kwrd">="http://static.ak.facebook.com/js/api_lib/v0.4/XdCommReceiver.js?2"</span> <span class="attr">type</span><span class="kwrd">="text/JavaScript"</span><span class="kwrd">&gt;&lt;/</span><span class="html">script</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;/</span><span class="html">body</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;/</span><span class="html">html</span><span class="kwrd">&gt;</span></pre>
<p>3. For the user&#8217;s browser to correctly recognize XFBML tags, you need to specify that the page is in XHTML. IE loves to bug around if you don’t include this</p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode"><span class="kwrd">&lt;!</span><span class="html">DOCTYPE</span> <span class="attr">html</span> <span class="attr">PUBLIC</span> <span class="kwrd">"-//W3C//DTD XHTML 1.0 Strict//EN"</span> <span class="kwrd">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">html</span> <span class="attr">xmlns</span><span class="kwrd">="http://www.w3.org/1999/xhtml"</span> <span class="attr">xmlns:fb</span><span class="kwrd">="http://www.facebook.com/2008/fbml"</span><span class="kwrd">&gt;</span></pre>
<p>4. Include the following script on the &lt;body&gt; not on the &lt;head&gt; since it loads some features and this can cause issues and errors with some browsers:</p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">script</span> <span class="attr">src</span><span class="kwrd">="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"</span> <span class="attr">type</span><span class="kwrd">="text/JavaScript"</span><span class="kwrd">&gt;&lt;/</span><span class="html">script</span><span class="kwrd">&gt;</span></pre>
<p>5. And finally include the following script in the body after all the xFBML tags that you want to load:</p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">script</span><span class="kwrd">&gt;</span>

FB_RequireFeatures([<span class="str">"Api"</span>], <span class="kwrd">function</span>(){

FB.Facebook.init(<span class="str">"YOUR_API_KEY_HERE"</span>, <span class="str">"&lt;relative path from root&gt;/xd_receiver.htm"</span>);

});

<span class="kwrd">&lt;/</span><span class="html">script</span><span class="kwrd">&gt;</span></pre>
<p>Working Example:<br />
<!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">script</span> <span class="attr">type</span><span class="kwrd">="text/javascript"</span><span class="kwrd">&gt;</span>
    FB_RequireFeatures([<span class="str">"Api"</span>], <span class="kwrd">function</span>() {
        FB.Facebook.init(<span class="str">"yourapikey"</span>, <span class="str">"xd_receiver.htm"</span>);
        FB.Facebook.get_sessionState().waitUntilReady(<span class="kwrd">function</span>() {
            <span class="kwrd">var</span> api = FB.Facebook.apiClient;
            uid = api.get_session().uid;<span class="rem">//get the current user uid</span>
<span class="rem">//get the info of the user given the uid, pass the current user uid to get current’s user info</span>
            api.users_getInfo(uid, [<span class="str">'name'</span>], <span class="kwrd">function</span>(user, exception) {
        <span class="kwrd">var</span> name  = document.getElementById(<span class="str">"uname"</span>)
        <span class="rem">//we get the 0 position since it returns a list of users information</span>
                name.value = user[0].name;
            });
        });
    });
    <span class="kwrd">&lt;/</span><span class="html">script</span><span class="kwrd">&gt;</span></pre>
<p>More Methods of the api client can be found here:</p>
<p><a href="http://developers.facebook.com/docs/?u=facebook.jslib.FB.ApiClient">http://developers.facebook.com/docs/?u=facebook.jslib.FB.ApiClient</a></p>
<p>with this api you can do pretty much everything.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.manglar.com/facebook-javascript-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook  xFBML render on an Iframe Application</title>
		<link>http://blog.manglar.com/facebook-xfbml-render-on-an-iframe-application/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=facebook-xfbml-render-on-an-iframe-application</link>
		<comments>http://blog.manglar.com/facebook-xfbml-render-on-an-iframe-application/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 22:21:53 +0000</pubDate>
		<dc:creator>Jonathan Rincon</dc:creator>
				<category><![CDATA[Tech Recipes]]></category>

		<guid isPermaLink="false">http://blog.manglar.com/?p=105</guid>
		<description><![CDATA[Facebook uses XFBML as a way for you to incorporate FBML (Facebook Markup Language, an extension to HTML) into an HTML page on a Facebook Connect site or an iframe application.
~Facebook wiki.
The list of available tags that can be used as xFBML are here:
http://wiki.developers.facebook.com/index.php/XFBML
if you need to use FBML that aren’t listed on that place you can ever use ]]></description>
			<content:encoded><![CDATA[<blockquote><p>Facebook uses XFBML as a way for you to incorporate FBML (Facebook Markup Language, an extension to HTML) into an HTML page on a Facebook Connect site or an iframe application.</p>
<p>~Facebook wiki.</p></blockquote>
<p>The list of available tags that can be used as xFBML are here:</p>
<p><a href="http://wiki.developers.facebook.com/index.php/XFBML">http://wiki.developers.facebook.com/index.php/XFBML</a><br />
if you need to use FBML that aren’t listed on that place you can ever use the fb:serverfbml tag wich is able to render any FBML inside it. Typical FBML tags you would wrap within fb:serverfbml are those that require user input, like fb:request-form. The contents of fb:serverfbml are rendered in a Facebook iframe.<br />
Rendering xFBML steps:<br />
1.    Go to your facebook application configuration and set the “Connect Url” to the url where your code is hosted, usually is the same URL for your “Canvas Callback URL” as seen on the post  “Setup a facebook application”.<br />
2.    Create a file called xd_receiver.htm. this file handles the cross domain communication and must contain the following code:</p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode"><span class="kwrd">&lt;!</span><span class="html">DOCTYPE</span> <span class="attr">html</span> <span class="attr">PUBLIC</span> <span class="kwrd">"-//W3C//DTD XHTML 1.0 Strict//EN"</span> <span class="kwrd">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">html</span> <span class="attr">xmlns</span><span class="kwrd">="http://www.w3.org/1999/xhtml"</span> <span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">head</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">title</span><span class="kwrd">&gt;</span>Cross-Domain Receiver Page<span class="kwrd">&lt;/</span><span class="html">title</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;/</span><span class="html">head</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">body</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;</span><span class="html">script</span> <span class="attr">src</span><span class="kwrd">="http://static.ak.facebook.com/js/api_lib/v0.4/XdCommReceiver.js?2"</span> <span class="attr">type</span><span class="kwrd">="text/JavaScript"</span><span class="kwrd">&gt;&lt;/</span><span class="html">script</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;/</span><span class="html">body</span><span class="kwrd">&gt;</span>

<span class="kwrd">&lt;/</span><span class="html">html</span><span class="kwrd">&gt;</span></pre>
<p>3. For the user&#8217;s browser to correctly recognize XFBML tags, you need to specify that the page is in XHTML. IE loves to bug around if you don’t include this</p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode"><span class="kwrd">&lt;!</span><span class="html">DOCTYPE</span> <span class="attr">html</span> <span class="attr">PUBLIC</span> <span class="kwrd">"-//W3C//DTD XHTML 1.0 Strict//EN"</span> <span class="kwrd">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</span><span class="kwrd">&gt;</span>
<span class="kwrd">&lt;</span><span class="html">html</span> <span class="attr">xmlns</span><span class="kwrd">="http://www.w3.org/1999/xhtml"</span> <span class="attr">xmlns:fb</span><span class="kwrd">="http://www.facebook.com/2008/fbml"</span><span class="kwrd">&gt;</span></pre>
<p>4. Include the following script on the &lt;body&gt; not on the &lt;head&gt; since it loads some features and this can cause issues and errors with some browsers:</p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode"><span class="kwrd">&lt;</span><span class="html">script</span> <span class="attr">src</span><span class="kwrd">="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"</span> <span class="attr">type</span><span class="kwrd">="text/JavaScript"</span><span class="kwrd">&gt;&lt;/</span><span class="html">script</span><span class="kwrd">&gt;</span></pre>
<p>5. And finally include the following script in the body after all the xFBML tags that you want to load:</p>
<p><!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode">
<span class="kwrd">&lt;</span><span class="html">script</span><span class="kwrd">&gt;</span>

FB_RequireFeatures([<span class="str">"XFBML"</span>], <span class="kwrd">function</span>(){

FB.Facebook.init(<span class="str">"YOUR_API_KEY_HERE"</span>, <span class="str">"&lt;relative path from root&gt;/xd_receiver.htm"</span>);

});

<span class="kwrd">&lt;/</span><span class="html">script</span><span class="kwrd">&gt;</span></pre>
<p>Alternatively if you don’t want to use the xFBML tags and use just html ad JavaScript you can render the xFBML in this way:</p>
<p><a href="http://wiki.developers.facebook.com/index.php/Using_HTML_to_Imitate_XFBML">http://wiki.developers.facebook.com/index.php/Using_HTML_to_Imitate_XFBML</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.manglar.com/facebook-xfbml-render-on-an-iframe-application/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Facebook Iframe canvas application: Authentication and session with Microsoft Facebook SDK.</title>
		<link>http://blog.manglar.com/facebook-iframe-canvas-application-authentication-and-session-with-microsoft-facebook-sdk/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=facebook-iframe-canvas-application-authentication-and-session-with-microsoft-facebook-sdk</link>
		<comments>http://blog.manglar.com/facebook-iframe-canvas-application-authentication-and-session-with-microsoft-facebook-sdk/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 22:08:56 +0000</pubDate>
		<dc:creator>Jonathan Rincon</dc:creator>
				<category><![CDATA[Tech Recipes]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[microsoft facebook sdk]]></category>

		<guid isPermaLink="false">http://blog.manglar.com/?p=95</guid>
		<description><![CDATA[SDK: http://msdn.microsoft.com/en-us/windows/ee388574.aspx
Setting up the application and visual studio for debugging:
Debugging in visual studio is just possible on Iframe canvas applications, if you want to develop from localhost you need to change a bit the setup of your facebook application and apply some changes to the visual studio application’s options:

Canvas: you must change the “Canvas Callback ]]></description>
			<content:encoded><![CDATA[<p>SDK: <a href="http://msdn.microsoft.com/en-us/windows/ee388574.aspx">http://msdn.microsoft.com/en-us/windows/ee388574.aspx</a></p>
<p>Setting up the application and visual studio for debugging:</p>
<p style="text-align:left;">Debugging in visual studio is just possible on Iframe canvas applications, if you want to develop from localhost you need to change a bit the setup of your facebook application and apply some changes to the visual studio application’s options:</p>
<ol style="text-align:left;">
<li>Canvas: you must change the “Canvas Callback URL” to <a href="http://localhost:port/">http://localhost:port/</a> i.e: for port 63919, then our url would be <a href="http://localhost:63919/">http://localhost:63919</a></li>
<li>The render method must be Iframe, FBML doesn’t support debugging neither work on localhost since you need a host so it can be embed on facebook.</li>
<li style="text-align:left;">Edit Settings in web.config : In the project, open web.config. In &lt;appSettings&gt; element. Change the values for those settings to the following:</li>
</ol>
<ul style="text-align:left;">
<li>APIKey: your API key</li>
<li>Secret: your application secret</li>
<li>Callback: your callback URL</li>
<li>Suffix: The suffix of your canvas page URL. For example, for a site located at http://apps.facebook.com/myapp/, the suffix is myapp.</li>
</ul>
<p style="text-align:left;">Example:</p>
<pre class="csharpcode" style="text-align:left;">&lt;appSettings&gt;

&lt;add key=<span class="str">"APIKey"</span> <span class="kwrd">value</span>=<span class="str">"yourapikey"</span> /&gt;

&lt;add key=<span class="str">"Secret"</span> <span class="kwrd">value</span>=<span class="str">"yoursecret"</span> /&gt;

&lt;add key=<span class="str">"Callback"</span> <span class="kwrd">value</span>=<span class="str">"yourcallbackurl"</span> /&gt;

&lt;add key=<span class="str">"Suffix"</span> <span class="kwrd">value</span>=<span class="str">"yourappsufix"</span> /&gt;
&lt;/appSettings&gt;</pre>
<p style="text-align:left;">4. Set Up Project Port Number:</p>
<ul style="text-align:left;">
<li>
<ul>
<li>
<ul>
<li>Open the project properties        (right-click the project, click Properties).</li>
<li>Click the Web tab on the left        side.</li>
<li>In the Servers section on the        page, select &#8220;Use Visual Studio Development Server&#8221;.</li>
<li>Select        &#8220;Specific Port&#8221;, and enter the port number from your callback        URL.</li>
</ul>
</li>
</ul>
</li>
</ul>
<p style="text-align:left;">5. Run Application</p>
<ul style="text-align:left;">
<li>
<ul>
<li>
<ul>
<li>Start the Web application        (click Debug menu, click Start Debugging).</li>
<li>Close the browser window that        opens, since it doesn&#8217;t open your app within the Facebook context.</li>
<li>Go to your canvas page URL        (http://apps.facebook.com/yourapp).</li>
<li>On the &#8220;Allow        Access?&#8221; page, click &#8220;Allow&#8221;.</li>
<li>Now you can debug your        application.</li>
</ul>
</li>
</ul>
</li>
</ul>
<p style="text-align:left;"><strong>Authentication</strong></p>
<p style="text-align:left;">To take care of authentication in facebook we are going to use the microsoft’s facebook SDK, we are going to use the CanvasIFrameMasterPage This class takes care of the entire authentication process, all you have to do is give the application your API key and secret, as we did in the web.config.</p>
<p style="text-align:left;">To use this class we create add references to the facebook.dll and facebook.web.dll then call them as using withing the code behind of the masterpage  after this the custom master page is set to inherit from CanvasIFrameMasterPage.</p>
<p style="text-align:left;">then we set the RequireLogin attribute to true so the application calls for login whenever user is logged off.</p>
<p style="text-align:left;">Example:<br />
<!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode" style="text-align:left;"><span class="kwrd">using</span> Facebook;

<span class="kwrd">using</span> Facebook.web;

<span class="kwrd">public</span> <span class="kwrd">partial</span> <span class="kwrd">class</span> CustomMasterPage : Facebook.Web.CanvasIFrameMasterPage{

<span class="kwrd">public</span> CustomMasterPage()

{

RequireLogin = <span class="kwrd">true</span>;

}

}</pre>
<p style="text-align:left;">Finally, each page is set to use this custom master page by setting the MasterPageFile attribute in the Page directive as well as creating a MasterType directive. The easiest way to set up the content pages is to create them through the master page: just right-click on the master page in Solution Explorer and select &#8220;Add Content Page&#8221;. The new page will have the correct MasterPageFile attribute set as well as each of the &lt;asp:Content&gt; elements used by the master page, although you will have to set the MasterType directive manually:<br />
<!-- code formatted by http://manoli.net/csharpformat/ --></p>
<pre class="csharpcode" style="text-align:left;">&lt;%@ Page AutoEventWireup=<span class="str">"true"</span> MasterPageFile=<span class="str">"~/CustomMasterPage.Master"</span>
CodeBehind=<span class="str">"Default.aspx.cs"</span> Inherits=<span class="str">"IFrameSample.Default"</span> %&gt;
&lt;%@ MasterType VirtualPath=<span class="str">"~/CustomMasterPage.Master"</span> %&gt;</pre>
<p style="text-align:left;">After all this you have a working iframe canvas application that handles authentication, session and can be debugged on visual studio.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.manglar.com/facebook-iframe-canvas-application-authentication-and-session-with-microsoft-facebook-sdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup a Facebook application</title>
		<link>http://blog.manglar.com/setup-a-facebook-application/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=setup-a-facebook-application</link>
		<comments>http://blog.manglar.com/setup-a-facebook-application/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 21:44:33 +0000</pubDate>
		<dc:creator>Jonathan Rincon</dc:creator>
				<category><![CDATA[Tech Recipes]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[setup]]></category>

		<guid isPermaLink="false">http://blog.manglar.com/?p=92</guid>
		<description><![CDATA[How to setup an application on facebook on 4 easy steps:
Step 1
Go to: http://www.facebook.com/developers/
Once there click on the “Set up New Application” button.
Step 2:
Fill the fields on this page, also agree with the “Facebook Terms” (there is a link to read it) then click on “Create Application”.
Step 3 Basic Information:
Api Key: You must save this ]]></description>
			<content:encoded><![CDATA[<p>How to setup an application on facebook on 4 easy steps:</p>
<p>Step 1</p>
<p>Go to: <a href="http://www.facebook.com/developers/">http://www.facebook.com/developers/</a></p>
<p>Once there click on the “Set up New Application” button.</p>
<p>Step 2:</p>
<p>Fill the fields on this page, also agree with the “Facebook Terms” (there is a link to read it) then click on “Create Application”.</p>
<p>Step 3 Basic Information:</p>
<p>Api Key: You must save this on since you are going to need it on the future for your application’s development.</p>
<p>Secret: also needed for application development.</p>
<p>Bookmark URL:  URL of your application so the users can bookmark it on facebook, usually <a href="http://apps.facebook.com/myappname">http://apps.facebook.com/myappname</a></p>
<p>The other information to fill is just informative or aesthetic since it references to the description and icons to use in your application, the User-Facing URL are set according to your help, privacy and conditions of your application.</p>
<p>Step 4 Canvas:</p>
<p>Canvas Page URL: The base URL for your canvas pages on Facebook.</p>
<p>Render Method:</p>
<p>IFrame:</p>
<ul>
<li>Are easier and faster if you have an existing application, widget, or website if the application utilizes XFBML</li>
<li>Let you use the JavaScript, HTML, and CSS that you are used to</li>
<li>Debugging regular HTML and JavaScript is easier than for FBML and <a title="FBJS" href="http://wiki.developers.facebook.com/index.php/FBJS">FBJS</a> given the tools available today</li>
<li>Allow you to use popular JavaScript libraries like jQuery in your code</li>
</ul>
<p>FBML:</p>
<ul>
<li>Lets you quickly start building an application from scratch, which is good for a new Facebook developer.</li>
<li>Is likely to be faster on first page loads</li>
<li>Has fewer moving parts and the paradigm is closer to that of the traditional Web</li>
<li>Gives you easy access to lots of Facebook elements</li>
<li>Has a sensible authorization mechanism</li>
</ul>
<p>Step 3 Connect:</p>
<p>This is an important step if you are going to use JavaScript API or facebook connect inside your application.</p>
<p>Connect URL: this is the URL of your application wherever is hosted since there you will have a file named xd_receiver.htm (this file is the one receiving all the calls from the facebook JavaScript API to enable the cross domain for the Ajax calls)</p>
<p>The other fields can be left in blank or filled with the necessary information according to whatever you want to do with your facebook application.</p>
<p>After this 4 steps facebook is ready to load your application.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.manglar.com/setup-a-facebook-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
