<?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>Design, Coding, SEO and Social Media Marketing, WordPress &#38; FacebookWeb Coding | HyperArts</title>
	<atom:link href="http://www.hyperarts.com/blog/category/web-coding-html-css-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hyperarts.com/blog</link>
	<description>Web Coding, SEO &#38; Social Media, WordPress, Facebook</description>
	<lastBuildDate>Sun, 25 Jul 2010 18:22:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Facebook: The Most Common Static FBML Problems &amp;  Their Solutions</title>
		<link>http://www.hyperarts.com/blog/facebook-static-fbml-problems-solutions/</link>
		<comments>http://www.hyperarts.com/blog/facebook-static-fbml-problems-solutions/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 23:47:59 +0000</pubDate>
		<dc:creator>timware</dc:creator>
				<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[facebook fan page]]></category>
		<category><![CDATA[fan pages]]></category>
		<category><![CDATA[FBML]]></category>
		<category><![CDATA[fbml faq]]></category>
		<category><![CDATA[Static FBML]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=2787</guid>
		<description><![CDATA[In the course of posting so many Static FBML tutorials on our blog, and then responding to visitors&#8217; questions in the comments, I now have a good idea of what are the most common problems people encounter when either adding Static FBML to their Fan Page or trying to get the tab to look and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-37.png" alt="Facebook Static FBML Application" title="Facebook Static FBML Application" width="75" height="75" class="alignleft size-full wp-image-1518" style="margin-right:15px; margin-top:10px;" />In the course of posting so many Static FBML tutorials on our blog, and then responding to visitors&#8217; questions in the comments, I now have a good idea of what are the most common problems people encounter when either adding Static FBML to their Fan Page or trying to get the tab to look and function as they wish. So I&#8217;ve put together this list of common questions and my answers.</p>
<p><strong>NOTE:</strong> Check out our popular <a href="http://www.hyperarts.com/blog/tutorial-facebook-pages-with-static-fbml-application/" title="Facebook Static FBML Tutorial"><strong>Static FBML Tutorial</strong></a> and, if you don&#8217;t see a solution here or you want more detailed information, check out our <a href="http://www.hyperarts.com/blog/facebook-static-fbml-faq-tutorial/" title="Facebook Static FBML Tutorial"><strong>Static FBML FAQ</strong></a> which also has links to all our Static FBML tutorials.</p>
<p><strong>NOTE:</strong> When I refer to &#8220;FBML box&#8221; I mean the box/field where you put your CSS/HTML/FBML content:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Static-FBML_Screen.gif" alt="Static FBML Box" title="Static FBML Box" width="391" height="204" class="alignnone size-full wp-image-2788" /><br />
<span id="more-2787"></span></p>
<div style="border-bottom:1px dotted #6a9f32; width:90%; margin-top:1em;"></div>
<h2 class="smallerh2">The Most Frequent Problems with Static FBML &#8230; and the Solutions</h2>
<ol>
<li><a href="#" onclick="xcollapse('X2650');return false;" class="faqlink">I <strong>can&#8217;t add the Static FBML application</strong> to my Facebook profile, group or fan page.</a><br />
</p>
<div id="X2650" style="display: none; ">
<p>Static FBML can <strong>only</strong> be added to Facebook Fan Pages (aka Public Profiles, aka Business Pages). You cannot add the Static FBML application to a personal profile or Group.</p>
<p>A Fan Page administrator must be logged in to their personal profile in Facebook in order to add Static FBML to the Fan Page for which they are an admin (a Fan Page can have multiple admins). <strong>In order to add applications to your Fan Page, you MUST have a personal profile associated with the Page and be logged in as that user.</strong>; the Admin can add applications when logged in.
</div>
</li>
<li><a href="#" onclick="xcollapse('X10554');return false;" class="faqlink">I clicked on &#8220;Edit page&#8221; but <strong>I don&#8217;t see the Static FBML application</strong> there.</a><br />
</p>
<div id="X10554" style="display: none; ">
If you don&#8217;t see Static FBML listed under &#8220;Applications&#8221; then perhaps you haven&#8217;t yet added it to your page. Go to <a href="http://www.facebook.com/apps/application.php?id=4949752878&#038;b" target="_blank" title="Static FBML Application Page">the Static FBML application page</a>, click on &#8220;Add to my Page&#8221;, click the &#8220;Add to Page&#8221; button next to your page in the popup window. Then click &#8220;Close&#8221; and go to your Page. The Static FBML application should now be listed.</div>
</li>
<li>
<a href="#" onclick="xcollapse('X3313');return false;" class="faqlink">I created my Static FBML tab, but <strong>I don&#8217;t see it in my tabs</strong>!</a><br />
</p>
<div id="X3313" style="display: none; ">
You need to edit the application&#8217;s settings to include it as a tab:</p>
<p>Click &#8220;Edit Page&#8221; and under &#8220;Applications&#8221; scroll down to locate the tab you have created. Click &#8220;Application settings&#8221; and, in the popup window, make sure that next to &#8220;Tab:&#8221; it says &#8220;Remove&#8221; (this means it&#8217;s been added as a tab and the option is then to remove it from your tabs). If it says &#8220;Add&#8221; then click to add it.<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-91.png" alt="" title="Application Settings" width="402" height="46" class="alignnone size-full wp-image-1779" /></div>
</li>
<li>
<a href="#" onclick="xcollapse('X1690');return false;" class="faqlink">I want to have <strong>7 tabs on my Page</strong>, but after 6 they&#8217;re put under the &#8220;&#187;&#8221;.</a><br />
</p>
<div id="X1690" style="display: none; ">Facebook allows a maximum of 6 tabs on Pages. You can re-order the tabs to display your preferred 4 tabs (the Wall and Info tabs can&#8217;t be moved or removed), but a total of 6 is all you are allowed.</div>
</li>
<li><a href="#" onclick="xcollapse('X6359');return false;" class="faqlink">I pasted sample FBML code I found on another website into my FBML box, but <strong>it&#8217;s not displaying correctly</strong>.</a><br />
</p>
<div id="X6359" style="display: none; ">When code you&#8217;ve put into your FBML box isn&#8217;t displaying properly (or not at all), it usually has to do with one of the following:</p>
<ol type="i">
<li><strong>The text you pasted in includes &#8220;formatted&#8221; quotes or other non-ASCII characters:</strong> If you&#8217;ve copied code from this blog (or wherever) and pasted it into your FBML box, you must make sure that the text is in plain-text format, NOT rich text. This is especially crucial with quotation marks; if they&#8217;re angled or curly or anything other than straight up and down, they&#8217;re not plain text.
<p>The best way to edit your code is in a plain-text editor like Notepad on PCs and Text Edit on Macs &#8212; NOT Microsoft Word!</li>
<li><strong>Your URLs are incorrect:</strong> Make sure that the URLs to your images, external stylesheet, Flash, video, whatever, are correct. You can test a URL by copying and pasting it into your browser&#8217;s address bar at the top of your browser screen, then hitting the Return key to access the URL directly. If your URL is correct, this will result in the content (video, image, SWF, photo gallery, slideshow, CSS) rendering in your browser. If you get a &#8220;file not found&#8221; error or the file does not otherwise display, then your URL is probably incorrect.</li>
<li><strong>You didn&#8217;t change the example values in the sample code:</strong> Make sure you replace my (or anyone else&#8217;s) placeholders in their sample code with the actual values (URLs, file and directory names, etc.) for the files you&#8217;re pointing to.
<p>Also, when embedding media such as Flash (video, slideshows &#038; galleries), make sure you modify the dimensions in the FBML tag to be the actual dimensions of your media.</li>
<li><strong>You included HTML tags that should not be included:</strong> With the exception of the call to an external stylesheet using the &lt;link> tag (which should be the first code in the FBML box), include ONLY the HTML/CSS that would go between the &lt;body&gt; and &lt;/body&gt; tags; DO NOT INCLUDE &lt;html&gt;, &lt;body&gt;, &lt;head&gt; or meta tags. Facebook provides these tags when it renders your Page.</li>
</ol>
</div>
</li>
<li><a href="#" onclick="xcollapse('X7534');return false;" class="faqlink">I&#8217;m trying to have <strong>content that only Page fans can see</strong>, but I&#8217;m seeing content for both the fans and the non-fans.</a><br />
</p>
<div id="X7534" style="display: none; ">
<p>When using the  <a href="http://developers.facebook.com/docs/reference/fbml/visible-to-connection" title="Facebook Visible-to-connection FBML tag" target="_blank">fb:visible-to-connection</a> FBML tag, which allows you to have Page content that only fans can see, REMEMBER: if you&#8217;re an administrator of the Page, you will see the content for both fans and non-fans when viewing the tab while logged in.</p>
<p>When working with this FBML tag, the best way to test it is to set up a test-user account and log in to that account to view the tab and experiment with liking/unliking the tab.</p></div>
</li>
<li><a href="#" onclick="xcollapse('X2190');return false;" class="faqlink">I want my <strong>embedded media to begin playing</strong> when my tab loads.</a><br />
</p>
<div id="X2190" style="display: none; ">
Unfortunately, you can&#8217;t auto-run JavaScript or Flash in an FBML tab &#8212; a user action is required to trigger it, usually a click. This is why the FBML tags for embedding media &#8212;  eg Flash (<a href="http://developers.facebook.com/docs/reference/fbml/swf" target="_blank">fb:swf</a>), Flash video (<a href="http://developers.facebook.com/docs/reference/fbml/flv" target="_blank">fb:flv)</a> &#8212; requires an &#8220;activation&#8221; image the user must click to load the video or Flash file.</div>
</li>
<li><a href="#" onclick="xcollapse('X8252');return false;" class="faqlink">I want my <strong>video to start playing</strong> after the visitor clicks the activation image.</a><br />
</p>
<div id="X8252" style="display: none; ">
Try adding &#8220;&#038;autoplay=1&#8243; to the URL of your SWF (Flash) file (.swf is the format of many YouTube videos, or all Flash objects except Flash Video) will cause the file to start playing when it loads. (If it doesn&#8217;t, it may mean that the file itself is &#8220;hard-coded&#8221; to not autoplay):</p>
<p class="code"><code>http://www.youtube.com/v/JOt2Qp0H9G8&amp;autoplay=1<br />
or http://www.someDomain.com/flash-file.swf&amp;autoplay=1<br />
<!--formatted--></code></p>
</div>
</li>
<li><a href="#" onclick="xcollapse('X6147');return false;" class="faqlink">My embedded <strong>Flash file uses XML </strong>to pull in content, but it&#8217;s not working.</a><br />
</p>
<div id="X6147" style="display: none; ">You should make sure the URLs to the XML files are full/absolute URLs (that they include the &#8220;http://&#8221;). Facebook doesn&#8217;t play the Flash file that&#8217;s on your server. Instead, it makes a copy of it which is stored on a Facebook server and it serves that. So any URLs to XML files need to be absolute in order to work. </div>
</li>
<li><a href="#" onclick="xcollapse('X1862');return false;" class="faqlink">I&#8217;m using <strong>JavaScript on my Static FBML tab</strong> and it doesn&#8217;t work.</a><br />
</p>
<div id="X1862" style="display: none; ">First, remember that Facebook requires a user action (usually a click) to trigger any JavaScript. So you can&#8217;t have JavaScript run when the tab loads without that user action.</p>
<p>Also, Facebook has its own proprietary flavor of JavaScript &#8212; <a title="Facebook JavaScript FBJS" href="http://wiki.developers.facebook.com/index.php/FBJS" target="_blank">FBJS (Facebook JavaScript)</a> &#8212; and you should become familiar with this and use it in your Static FBML. If you&#8217;re already comfortable with JavaScript, FBJS should be very easy for your adapt to.</div>
</li>
<li><a href="#" onclick="xcollapse('X10625');return false;" class="faqlink">I&#8217;m making changes to my <strong>external stylesheet</strong>, but when I re-save my tab, I don&#8217;t see the changes.</a><br />
</p>
<div id="X10625" style="display: none; ">
<p>Facebook does not render the images and stylesheet you call in your code. Instead, it makes a &#8220;proxy&#8221; (a copy) and stores that on its own servers.</p>
<p>In order to force Facebook to refresh its stored (cached) version of your stylesheet, you need to append &#8220;?v=10.0&#8243; to the end of the stylesheet URL:</p>
<p class="code"><code>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://URL-TO-YOUR-STYLESHEET/stylesheet.css?v=10.0&quot; /&gt;<br />
<!--formatted--></code></p>
<p>Each time you update your stylesheet, you must increment that number and then re-save your Static FBML tab. Thus, 10.0, then 10.1 &#8230; 10.9, 11.0 &#8230;..</p></div>
</li>
<li><a href="#" onclick="xcollapse('X8922');return false;" class="faqlink">I want to <strong>embed an iFrame</strong> in my Static FBML tab, but it&#8217;s not working.</a><br />
</p>
<div id="X8922" style="display: none; ">
Facebook does not allow iFrames within Static FBML tabs. You can use iFrames in a canvas application, and even then it requires a user action to actually load it. I&#8217;ve seen <a href="http://www.pqinternet.com/230.htm" target="_blank">one hack</a> that facilitates iFrames in Static FBML, but I wouldn&#8217;t recommend using it as Facebook will likely soon catch on and it&#8217;ll be disabled.</div>
</li>
<li><a href="#" onclick="xcollapse('X7703');return false;" class="faqlink">I can&#8217;t set my Static FBML Welcome tab to be the default tab for fans and non-fans.</a><br />
</p>
<div id="X7703" style="display: none; ">
Facebook allows you to set a custom tab as the default landing page for non-fans. However, the default tab for fans is the Wall, and this can&#8217;t be changed.
</div>
</li>
<li><a href="#" onclick="xcollapse('X2198');return false;" class="faqlink">I put an <strong>animated GIF</strong> on my Static FBML tag, but it doesn&#8217;t animate!</a><br />
</p>
<div id="X2198" style="display: none; ">Facebook no longer allows animated GIFs on Static FBML application tabs or canvas applications.</div>
</li>
<li><a href="#" onclick="xcollapse('X3653');return false;" class="faqlink">My Page looks good in most browsers, but not <strong>Internet Explorer</strong>.</a><br />
</p>
<div id="X3653" style="display: none; ">Internet Explorer, particularly the old-and-in-the-way Internet Explorer 6, are very &#8220;buggy&#8221; in interpreting CSS. But other browsers have their quirks, as well. Here is <a href="http://websitetips.com/css/solutions/" title="CSS Bug Fixes" target="_blank">a good place to start</a> when debugging your CSS.</div>
</li>
<li><a href="#" onclick="xcollapse('X800');return false;" class="faqlink">I can&#8217;t add <strong>RSS feeds</strong> to my Static FBML tab using the usual JavaScript or PHP methods.</a><br />
</p>
<div id="X800" style="display: none; ">In order to import an RSS feed you need to use a scripting language &#8212; eg PHP, ASP &#8212; and Static FBML boxes cannot parse any scripting languages, period. There are a number of third-party applications for adding RSS feeds, and you can also create a canvas application. <a href="http://www.hyperarts.com/blog/import-rss-feeds-facebook-static-fbml-tabs-pages/" title="RSS Feeds and Facebook Static FBML Applications">Read more in my post on RSS feeds and Static FBML &#187;</a>
</div>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/facebook-static-fbml-problems-solutions/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Best Online Form Services for Facebook Static FBML Fan Pages</title>
		<link>http://www.hyperarts.com/blog/best-online-form-services-facebook-fan-pages-static-fbml/</link>
		<comments>http://www.hyperarts.com/blog/best-online-form-services-facebook-fan-pages-static-fbml/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 04:39:30 +0000</pubDate>
		<dc:creator>timware</dc:creator>
				<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[AllForms]]></category>
		<category><![CDATA[Facebook application tabs]]></category>
		<category><![CDATA[Facebook Contact Forms]]></category>
		<category><![CDATA[Form processors]]></category>
		<category><![CDATA[JotForms]]></category>
		<category><![CDATA[online form services]]></category>
		<category><![CDATA[Static FBML]]></category>
		<category><![CDATA[Wufoo]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=2291</guid>
		<description><![CDATA[In setting up Fan Pages on Facebook for a number of clients, there is often the need for a contact form so that Facebook users can contact a business right from Facebook. I decided to research several of the available online services that offer the creation and processing of forms, to determine which is best [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/form-services_logos.gif" alt="Online Form Services" title="form-services_logos" width="202" height="138" class="alignleft size-full wp-image-2292 noborder" /> In setting up Fan Pages on Facebook for a number of clients, there is often the need for a contact form so that Facebook users can contact a business right from Facebook. I decided to research several of the available online services that offer the creation and processing of forms, to determine which is best for setting up a form on a Static FBML application tab.</p>
<p>The services I checked out offer both free and paid plans. Either plan offers the same options in terms of form features etc. The difference with paid plans is in the number of different forms, or form recipients, or submissions you are allowed.</p>
<p>I looked at three services, <a href="http://www.wufoo.com/" title="Wufoo forms" target="_blank">Wufoo</a>, <a href="http://allforms.mailjol.net/" title="Allforms" target="_blank">Allforms</a> and <a href="http://www.jotform.com/" title="JotForm" target="_blank">JotForm</a>. I wanted to see which provided the most choice in terms of the form display/design, form validation (checking that required fields are filled in), and customization of the email the business receives from a form submission.<br />
<span id="more-2291"></span><br />
Although all three offer the ability to create fairly complex forms, this feature alone isn&#8217;t what I was looking for. I wanted a service that offered:</p>
<ul>
<li>Ease of use;</li>
<li>Nice styling choices;</li>
<li>Customized email notifications;</li>
<li>Form validation (including CAPTCHA);</li>
<li>Code that could be input into a Static FBML tab and function well.</li>
</ul>
<p>Of the three services I checked out, Wufoo got disqualified right off the bat, as they just don&#8217;t offer a good option to insert the form code into a Static FBML tab. <a href="http://wufoo.com/forums/viewtopic.php?pid=6639" title="Wufoo" target="_blank">By their own admission</a>, &#8220;I&#8217;m afraid we&#8217;re not working on any complex Facebook embedding or integration anytime soon.&#8221;</p>
<p>The good news is that both AllForms and JotForm <em>do</em> offer code that you can insert into the Static FBML tabs and with a number of styling and configuration options that are pretty great.</p>
<h3>JotForm &#038; Allforms Tutorials</h3>
<p>Depending on which form service you choose, here are tutorials for ones I thought offered the best options for use on Facebook Static FBML tabs:</p>
<ul>
<li><a href="http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-jotform" title="How to add a JotForm contact form to your Static FBML page"><strong>Tutorial on using JotForm for your Facebook Static FBML tab &#187;</strong></a></li>
<li><a href="http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-allforms" title="How to add an Allforms contact form to your Static FBML page"><strong>Tutorial on using Allforms for your Facebook Static FBML tab &#187;</strong></a></li>
</ul>
<h3>JotForm Form Builder</h3>
<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-411.png" alt="JotForm Logo" title="JotForm Logo" width="179" height="53" class="alignleft size-full wp-image-2314" />I think JotForms offers the best styling options. However, I could not get form validation to work in the Static FBML environment, and <a href="http://www.jotform.com/answers/2212-Trying-to-paste-full-source-code-into-Static-FBML-with-simpler-lt-input-submit-No-go-#1" target="_blank" title="JotForm">was advised in their forum</a>: &#8220;Captcha will probably not work so you should probably remove that. You should probably also remove the form validations.&#8221;</p>
<p>However, unlike Wufoo, JotForms is at least somewhat aware of the emerging importance of being compatible with Facebook, and even offers <a href="http://www.jotform.com/help/22-Adding-Form-to-Facebook" title="JotForms and Facebook" target="_blank">a solution to adding a form you create in JotForms to Facebook</a>. And their styling options were far superior to those offered by AllForms, with a number of one-click theme options for your form.</p>
<p>Another cool feature with JotForms is the ability to import forms from an existing Web page or a previously created Jot form, or from a number of form samples they offer. <em>Very</em> useful!</p>
<p>JotForm also offers more configuration options for the email you receive from someone who&#8217;s filled out the form, allowing you to have the &#8220;from&#8221; address be the user&#8217;s email and specifying the wording for the subject line.</p>
<ul>
<li><a href="http://www.jotform.com/pricing" title="JotForm Pricing" target="_blank">JotForm Plans &#038; Pricing</a></li>
</ul>
<p><a href="http://www.facebook.com/pages/HyperArts-Examples/124380727586182?v=app_7146470109">View my sample JotForm email on Facebook.</a></p>
<h3>Allforms &#8212; Free Form to Email</h3>
<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/allforms_logo.gif" alt="Allforms Logo" title="Allforms Logo" width="188" height="59" class="alignleft size-full wp-image-2317 noborder" />Although the styling options of Allforms forms are pretty limited (OK, extremely limited), their form validation will work in Facebook Static FBML tabs, and you can get the data emailed to you in a really nice format (if you choose the &#8220;HTML&#8221; email option). </p>
<p>Although the form validation works (in fact, not having validation is NOT an option with the free plan), it takes the user to a page where they are informed that they haven&#8217;t filled in the required field and they have to use their back button to get back to the form. But, hey, it works, and it&#8217;ll reduce spam.</p>
<p>As with JotForm, you can specify a URL to which to redirect the user after they have submitted the form. But you can&#8217;t configure the email to have the &#8220;from&#8221; address be the person who submitted the form.</p>
<h3>Allforms lets you create a form processor to handle your existing form!</h3>
<p>The feature that I thought really made Allforms a great choice is that you can use your own HTML form and use their service to create a form processor to handle it. So for those who have an HTML form and just need an online form-processing service, Allforms is the choice. </p>
<p>At HyperArts <a href="http://www.hyperarts.com/fbml" title="Static FBML Code for Sale">we offer Static FBML templates for sale</a>, some with forms, and the form processing is always where our customers get hung up, in not being able to upload and configure their own form processor. Allforms takes care of this. Awesome!</p>
<ul>
<li><a href="http://allforms.mailjol.net/" title="Allforms Plan Comparison" target="_blank">Allforms Plans &#038; Pricing</a></li>
</ul>
<p><a href="http://www.facebook.com/pages/HyperArts-Examples/124380727586182?v=app_10442206389" target="_blank" title="Sample Allforms Contact Form on Facebook">Here is a sample form I created with Allforms for use on Facebook</a>. Although you can get rid of or change the colors, you can&#8217;t eliminate those big numbers on the left &#8230; you would have to manually remove them from the provided code.</p>
<h3>So which online form service is best for Facebook?</h3>
<p>For appearance, I would say JotForm, hands down. And it has more email-notification options.</p>
<ul>
<li><a href="http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-jotform" title="How to add a JotForm contact form to your Static FBML page"><strong>Tutorial on using JotForm to create a contact form on your Facebook Static FBML tab &#187;</strong></a></li>
</ul>
<p>If form validation is important (and it should be), then Allforms is a better choice. And it even offers a CAPTCHA function that works! Their email notification offers lots of information that JotForm&#8217;s doesn&#8217;t, such as URL of the form and IP address of the sender, as well as a best-guess country of origin.</p>
<p>If you have CSS / HTML skills, you can change the markup of the Allform-provided code to suit your taste. Or you can create your form, and CSS, outside of Allform and just use their form-processing service.</p>
<ul>
<li><a href="http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-allforms" title="How to add an Allforms contact form to your Static FBML page"><strong>Tutorial on using Allforms on Facebook Static FBML tab &#187;</strong></a>
</li>
</ul>
<h3>Ajax &#038; HyperArts to the Rescue &#8212; Ajax-Powered Static FBML Contact Tab!</h3>
<p>HyperArts offers a great Ajax-driven form template that includes validation and total flexibility with design and customization. Our form validates the user&#8217;s submission (checking required fields) and submits the form without the user ever leaving the form page. After submitting the form, the user is presented with a &#8220;thank you&#8221; message and the form disappears. The only requirement is that you have access to a hosting server with PHP installed. See it in action on our <a href="http://www.facebook.com/pages/HyperForms/128908433801311?v=app_4949752878" title="HyperArts HyperForm" target="_blank">HyperForms Fan Page &#187;</a></p>
<ul>
<li><a href="http://www.hyperarts.com/social-media-consulting/facebook-application-tab-page-fbml.html#hyperforms" title="Ajax Static FBML Contact Form Template">Read more about our Static FBML Contact Form Template &#187;</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/best-online-form-services-facebook-fan-pages-static-fbml/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How To Add a Contact Form to your Facebook Static FBML Tab with JotForm</title>
		<link>http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-jotform/</link>
		<comments>http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-jotform/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 04:39:08 +0000</pubDate>
		<dc:creator>timware</dc:creator>
				<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[AllForms]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[facebook forms]]></category>
		<category><![CDATA[form processing]]></category>
		<category><![CDATA[jotform]]></category>
		<category><![CDATA[Static FBML]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=2347</guid>
		<description><![CDATA[I researched several online form creation and hosting services and determined that JotForm and Allforms were the best choices for creating a contact form for your Facebook Static FBML tab. This is a tutorial on how to create a contact form using JotForm. Getting Started with JotForm There is a free option and a paid [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-411.png" alt="JotForm Logo" title="JotForm Logo" width="179" height="53" class="alignleft size-full wp-image-2314" />I researched <a href="http://www.hyperarts.com/blog/best-online-form-services-facebook-fan-pages-static-fbml" title="Best Form Creation and Hosting Services for Facebook Static FBML tab pages">several online form creation and hosting services</a> and determined that JotForm and <a href="http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-allforms" title="Allforms contact form for Facebook Static FBML tabs">Allforms</a> were the best choices for creating a contact form for your Facebook Static FBML tab. This is a tutorial on how to create a contact form using JotForm.</p>
<h3>Getting Started with JotForm</h3>
<p>There is a free option and a paid option. Both have the same features, but the paid option allows more forms, more submissions, etc. <a href="http://www.jotform.com/pricing" target="_blank">Here&#8217;s a comparison chart</a>.<br />
<span id="more-2347"></span></p>
<h3>Getting Started with JotForm</h3>
<ul>
<li><strong>Set up account</strong> (free or paid);</li>
<li><strong>Click New Form</strong><br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/NewForm.png" alt="JotForm New Form" title="JotForm New Form" width="143" height="96" class="alignnone size-full wp-image-2349" /><br />
You can create a form from scratch (&#8220;Blank Form&#8221;), select a form template (for this tutorial I chose &#8220;Contact Us&#8221;), or import a form from another website or another form previously created on JotForm. After making your selection, click &#8220;Continue&#8221;&#8230;</li>
<li><strong>&#8220;Contact Us&#8221; Template</strong><br />
Assuming, for the purposes of this tutorial, you chose &#8220;Contact Us,&#8221; you&#8217;ll see it has: Name (separate first and last name fields), Email, Message.</li>
<li><strong>Add Drop Down (aka Pulldown Select)</strong><br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/DropDown.png" alt="Drop Down Menu" title="DropDown" width="194" height="73" class="alignnone size-full wp-image-2351" /><br />
To add your drop-down options, click the small icon to the right of the pulldown box</li>
<li><strong>Add Radio Button</strong><br />
Enter the question, then click the individual options to edit:<br /><img src="http://www.hyperarts.com/blog/wp-content/uploads/Jot-Radio.png" alt="" title="Jot Radio" width="235" height="157" class="alignnone size-full wp-image-2370" /></li>
<li><strong>Editing Properties</strong> (the gear icon)<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Properties.png" alt="" title="Properties" width="123" height="55" class="alignnone size-full wp-image-2352" /><br />You can change the size of the field, or change its order in the form (which can also do by clicking and dragging), or delete or duplicate the question.</li>
<li><strong>Add a Checkbox</strong><br />
The Checkbox configuration options are the same as the Radio Buttons:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Jot-Checkbox.png" alt="" title="Jot Checkbox" width="222" height="121" class="alignnone size-full wp-image-2373" /></li>
<li><strong>Toolbar </strong><br />
The toolbar options change depending on which field you&#8217;re editing. This is the main toolbar for &#8220;Form Style&#8221;:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Toolbar-Jot.png" alt="" title="Toolbar - Jot" width="543" height="59" class="alignnone size-full wp-image-2354" /></li>
<li><strong>Themes</strong> &#8211; Attractive one-click theming options. I chose the &#8220;Default&#8221; theme for its simplicity.</li>
<li><strong>Clean up</strong><br />
I got rid of the header and just kept the form.</li>
</ul>
<h3>JotForm Setup &#038; Share</h3>
<p>After you have created your form, you then need to set some options for the email that is sent with the form data, as well as generate the code you will need to insert into your Static FBML tab.</p>
<ul>
<li><strong>Setup &#038; Share &#8211; Email Alerts:</strong><br />
Click the &#8220;Setup &#038; Share&#8221; tab to activate these choices:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Jot-Setup-Share.png" alt="" title="Jot Setup Share" width="218" height="90" class="alignnone size-full wp-image-2376" /></li>
<li>Click &#8220;Notification&#8221; to edit Subject of email<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Jot-Subject-Line.png" alt="" title="Jot Subject Line" width="209" height="85" class="alignnone size-full wp-image-2356" /></li>
<li><strong>Set From address and Recipient</strong><br />
Click the &#8220;Reply-To and Recipient Settings&#8221; to set &#8220;Sender Name&#8221; and &#8220;Sender E-mail&#8221; (you can set this to the values the user inputs in your form, using {yourEmail} or whatever value the email field has.<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Reply-To-Settings.png" alt="" title="Reply-To Settings" width="448" height="61" class="alignnone size-full wp-image-2357" /></li>
<li><strong>Set redirect after form is submitted.</strong><br />
Click the &#8220;Thank You&#8221; icon to set what the user sees after submitting the form (Default Thank You page; Custom URL; Thank You message)<br /><img src="http://www.hyperarts.com/blog/wp-content/uploads/Jot-Setup-Share.png" alt="" title="Jot Setup Share" width="218" height="90" class="alignnone size-full wp-image-2376" /></li>
</ul>
<h3>Generate the code for your Static FBML</h3>
<ul>
<li>Click &#8220;Share Form&#8221; (the &#8220;globe&#8221; icon in the top navigation) to get the code for your Facebook Static FBML tab. In the popup window, click &#8220;Advanced Options&#8221; at bottom of window:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Advanced-Options.png" alt="" title="Advanced Options" width="143" height="78" class="alignnone size-full wp-image-2358" />.</li>
<li>Click &#8220;Full Source Code&#8221; in left navigation. (<del datetime="2010-06-09T12:31:43+00:00">DO NOT select &#8220;Social Networks&#8221; &#8212; there&#8217;s a &#8220;Facebook&#8221; option there and instructions for adding to Static FBML, but the code provided DOES NOT WORK!)</del>; Per a Jotform employee&#8217;s comment below, Jotform has now fixed the &#8220;Social Network&#8221; tab under &#8220;Advanced Options&#8221; so that the code it generates works in Facebook. But it doesn&#8217;t support validation or CAPTCHA.</li>
<li>Click in the &#8220;Full Source Code&#8221; field to highlight all the content and copy this to your clipboard (Mac: Command+c; Windows: Control+c).</li>
<li>Per <a href="http://www.jotform.com/help/22-Adding-Form-to-Facebook">these instructions provided in the JotForm Forum</a>,<br />
replace the last 3 or 4 lines at the bottom of the copied source code (between the last &lt;/div> and &lt;/form>) with &#8220;&lt;input type=&#8221;submit&#8221; value=&#8221;Submit&#8221; >&#8221; so the code will work in Facebook.</li>
<h3>HyperArts JotForm Example</h3>
<p>Check out <a href="http://www.facebook.com/pages/HyperArts-Examples/124380727586182?v=app_7146470109" target="_blank">our example of a JotForm form on a Static FBML tab</a>.</p>
<p>You can customize the CSS for the form in the &lt;style> tags. I added:</p>
<p class="code"><code><br />
    label { font-weight:normal; }<br />
   .form-label-top { font-weight:bold; }<br />
</code></p>
<p>to bold just the form field labels, but leave the options normal.</p>
<h3>Recipient Email Format</h3>
<p>Here&#8217;s the HTML version of the JotForm email that is sent to the specified recipient of form data:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/JotForm-Email.png" alt="" title="JotForm Email" width="429" height="228" class="aligncenter size-full wp-image-2422" /></p>
<p>If you have questions about using JotForm, rather than ask them here, please use <a href="http://www.jotform.com/answers/" title="JotForm Support" target="_blank">the JotForm Support Forum</a>.</p>
<p>And, please, if your experience differs from this tutorial, let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-jotform/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Add a Contact Form to Your Facebook Static FBML Tab using Allforms</title>
		<link>http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-allforms/</link>
		<comments>http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-allforms/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 04:38:16 +0000</pubDate>
		<dc:creator>timware</dc:creator>
				<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[AllForms]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[FBML]]></category>
		<category><![CDATA[form processing]]></category>
		<category><![CDATA[online form services]]></category>
		<category><![CDATA[Static FBML]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=2391</guid>
		<description><![CDATA[In researching the best options for online form-creation services for Facebook Static FBML tabs, I determined that the two best were, in my opinion, JotForm and Allforms. Although JotForm offered the most attractive interface for form creation, the most flexibility for design, and more features, I liked Allforms because it supports form validation, as well [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/allforms_logo.gif" alt="Allforms Logo" title="Allforms Logo" width="188" height="59" class="alignleft size-full wp-image-2317 noborder" />In researching <a href="http://www.hyperarts.com/blog/best-online-form-services-facebook-fan-pages-static-fbml" title="Best Form Creation and Hosting Services for Facebook Static FBML tab pages">the best options for online form-creation services for Facebook Static FBML tabs</a>, I determined that the two best were, in my opinion, <a href="http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-jotform" title="JotForm Tutorial">JotForm</a> and <a href="http://allforms.mailjol.net/" title="Allforms" target="_blank">Allforms</a>. </p>
<p>Although JotForm offered the most attractive interface for form creation, the most flexibility for design, and more features, I liked Allforms because it supports form validation, as well as CAPTCHA. And, if you&#8217;re comfortable working with CSS and HTML, you can do further customization of the Allforms form you create.</p>
<p>Another plus is you can create a form with HTML and CSS and use Allform&#8217;s free service to create just the form processor. Pretty cool&#8230;.<br />
<span id="more-2391"></span></p>
<h3>Setting up Allforms</h3>
<p>Allforms offers two tiers of service, free and &#8220;Plus&#8221; (<a href="http://allforms.mailjol.net/"  target="_blank" title="Allform Account Options">Compare Allform&#8217;s Account Features.</a>).</p>
<ul>
<li>Register for an account (click &#8220;Register&#8221; at top right). There are two options: Free and &#8220;Plus&#8221; (<a href="http://allforms.mailjol.net/" title="Allforms Pricing" target="_blank">Price comparison</a>);</li>
<li>After registering, click through to create your first form.</li>
<li><strong>Options:</strong> All the options and styling choices are on the one screen. You add new questions via the left column, and you style the form (just colors) in the right menu (the color options say &#8220;For Plus Accounts Only&#8221; but these options work in a free account, as well. At least they did for me).</li>
<li><strong>Name Your Form:</strong> Give your form a name, replacing &#8220;Sample Form&#8221;;</li>
<li><strong>Add Questions:</strong> Use the &#8220;Add a Question&#8221; in the left nav to add a new question to your form.</li>
<p><strong>Color Options:</strong> You can change the hexadecimal color options in the right menu to your taste:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/color-chart.gif" alt="Allforms Color Optios" title="color-chart" width="529" height="389" class="alignnone size-full wp-image-2394" /><br />
Unfortunately, you can&#8217;t get rid of the numbers! (Except by manually editing the HTML code generated.)</p>
<li><strong>Form Validation &#8211; Required Fields:</strong> Under &#8220;Required Questions&#8221; set the required fields.</li>
<li><strong>Success Page URL:</strong> Set the &#8220;Custom Success Page&#8221; URL to the page where the user is directed after submitting the form;</li>
<li><strong>Email Recipient:</strong> Set &#8220;E-mail Addresses&#8221; to whomever you want to receive the form data via email;</li>
<li><strong>Subject Line:</strong> Set &#8220;E-mail Subject&#8221; to the Subject Line for the email you receive from the form submission;</li>
<li><strong>HTML or Plain Text Email Format:</strong> Set &#8220;E-mail Format&#8221; to HTML for best results, <em>IF</em> your email reader supports HTML email (most do these days);</li>
<li><strong>CAPTCHA:</strong> &#8220;Enable Anti-Spam&#8221; Validation is mandatory with the free account;</li>
<li>
When you&#8217;ve finished adding all your questions and chosen all options, click &#8220;Continue&#8221;;</li>
</ul>
<h3>Copy the CSS and HTML code for your form</h3>
<p>On next screen, under &#8220;Putting the form directly onto your website or webpages&#8221; copy the code in the box. Paste this code, as is, into your Static FBML box.</p>
<p>You can check out <a href="http://www.facebook.com/pages/HyperArts-Examples/124380727586182?v=app_10442206389">our Allforms example on Facebook</a>.</p>
<h3>Allforms Recipient Email &#8211; HTML Format</h3>
<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/Allforms-Email1.png" alt="" title="Allforms Email" width="608" height="488" class="aligncenter size-full wp-image-2429" /></p>
<h3>Allforms Support</h3>
<p>For further support with Allforms, please check out <a href="http://allforms.mailjol.net/forum.php">their support forums and FAQs</a>.</p>
<p>If you find that any information in this tutorial is incorrect, inaccurate or could be improved, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/add-contact-form-to-facebook-static-fbml-tab-allforms/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Facebook Shrinking Images on Fan Page Tabs &#8211; The Fix</title>
		<link>http://www.hyperarts.com/blog/facebook-shrinking-images-fan-page-tabs-static-fbml/</link>
		<comments>http://www.hyperarts.com/blog/facebook-shrinking-images-fan-page-tabs-static-fbml/#comments</comments>
		<pubDate>Thu, 27 May 2010 13:56:49 +0000</pubDate>
		<dc:creator>timware</dc:creator>
				<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[facebook images]]></category>
		<category><![CDATA[facebook platform]]></category>
		<category><![CDATA[Static FBML]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=2251</guid>
		<description><![CDATA[I noticed this morning that images on my Static FBML tabs had inexplicably shrunk to about half their size. I hadn&#8217;t made any changes, so apparently Facebook has either introduced a bug or changed the rules. Update (but see my fix below for immediate relief!): Facebook sez: &#8220;A fix for this problem will be pushed [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/facebook_shrink.gif" alt="Facebook Shrinking Images" title="facebook_shrink" width="100" height="100" class="alignleft size-full wp-image-2252" />I noticed this morning that images on my Static FBML tabs had inexplicably shrunk to about half their size. I hadn&#8217;t made any changes, so apparently Facebook has either introduced a bug or changed the rules.</p>
<p class="clear">
<h3>Update (but see my fix below for immediate relief!):</h3>
<p><a href="http://bugs.developers.facebook.com/show_bug.cgi?id=10589" title="Facebook Bug Report" target="_blank">Facebook sez:</a> &#8220;A fix for this problem will be pushed out to all of the web servers this afternoon.&#8221;<br />
<span id="more-2251"></span><br />
<a href="http://forum.developers.facebook.com/viewtopic.php?pid=230349" target="_blank">Explanation of the problem by Jerry Cain, Facebook software developer:</a></p>
<blockquote><p>We noticed that images weren&#8217;t being proxied when the application tabs were loading. That means the domains hosting the images are pinged directly every single time the tab is rendered, and that can be used to discern who the logged in user is, what page they navigated from, etc. We pushed the proxying fix this afternoon, but the fix incorrectly introduced downsizing and downsampling when it didn&#8217;t have to. The fix I just checked in still proxies the image, but at the original size and bit depth.</p></blockquote>
<h3>The fix for your shrunken images</h3>
<p>Even though Facebook is caching and shrinking your images, there&#8217;s a way to at least have them at the correct size so that your layout doesn&#8217;t break, although they&#8217;ll be a bit blurry / fuzzy because you&#8217;re basically stretching a smaller image to be larger. But it&#8217;s the lesser of two evils.</p>
<p>The fix is pretty easy. You must make sure that you specify width and height parameters for your images, either the old-school way, in the &lt;img> tag, with (and the values shown below <em>are just examples</em>!):</p>
<p class="code"><code><br />
&lt;img src="..." width="520" height="70" /><br />
<!--formatted--></code></p>
<p>or assigning the image an ID and then using CSS:</p>
<p class="code"><code><br />
&lt;img src="..." id="myimage">.<br />
<!--formatted--></code></p>
<p>Then, in your CSS:</p>
<p class="code"><code><br />
img#myimage { width:520px; height:70px; }<br />
</code></p>
<p>Where this can get tricky is when you&#8217;re using <strong>background images</strong> via CSS and there&#8217;s no way to specify the image&#8217;s dimensions, particularly if it&#8217;s tiling horizontally or vertically.</p>
<h3>External Stylesheets to the Rescue!</h3>
<p>I had been spooked a month or so ago when <a href="http://www.hyperarts.com/blog/facebook-static-fbml-external-stylesheets/" title="Facebook and CSS - External or Inlined?">Facebook had a glitch and wasn&#8217;t pulling in external stylesheets, but made no announcement about it.</a> They eventually began supporting external CSS again, but I decided to just inline the CSS in the &lt;style type=&#8221;text/css&#8221;> &#8230; &lt;/style> tags.</p>
<p>Today, in addressing this new shrinking-image bug, I went back to external CSS and then the background images showed up at full size!</p>
<p>As usual, there is some randomness to this, as some of my images that lacked height and width parameters weren&#8217;t affected, but many were, and suffered for it!</p>
<p>My advice would be to make sure all images have height and width parameters. If you&#8217;re using background images via CSS and inlining them via the &lt;style> tags, and they&#8217;re getting shrunk, try using external CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/facebook-shrinking-images-fan-page-tabs-static-fbml/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Multiple YouTube Videos Side-by-Side in Rows with Facebook&#8217;s Static FBML Tabs</title>
		<link>http://www.hyperarts.com/blog/multiple-videos-side-by-side-rows-facebook-static-fbml-tabs/</link>
		<comments>http://www.hyperarts.com/blog/multiple-videos-side-by-side-rows-facebook-static-fbml-tabs/#comments</comments>
		<pubDate>Sat, 22 May 2010 19:06:13 +0000</pubDate>
		<dc:creator>timware</dc:creator>
				<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[Embed Flash]]></category>
		<category><![CDATA[embed YouTube]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Static FBML]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=2208</guid>
		<description><![CDATA[A number of people have asked how to add multiple videos to their Static FBML tabs, and have them display in rows, side by side. Of course, you can create a YouTube channel or playlist of videos and embed that in your Static FBML tab, but if you want to show individual videos (or Flash) [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-371.png" alt="" title="FBML tutorial" width="75" height="75" class="alignleft size-full wp-image-1846" /> A number of people have asked how to add multiple videos to their Static FBML tabs, and have them display in rows, side by side.</p>
<p>Of course, you can <a href="http://www.hyperarts.com/blog/tutorial-embed-youtube-channel-slideshow-static-fbml-page/" title="YouTube Channel or Playlist Embed in Static FBML">create a YouTube channel or playlist of videos and embed that in your Static FBML tab</a>, but if you want to show individual videos (or Flash) on your Static FBML tab, and be able to have them align horizontally, here&#8217;s how:<br />
<span id="more-2208"></span></p>
<h3>Displaying multiple videos in a row in Static FBML</h3>
<p>In my example, each row will be inside the &#8220;multivideos&#8221; DIV and contain the two videos, each in a separate DIV. I recommend limiting the width of your videos to 250 pixels so that two can fit inside a 520-pixel container (the <a href="http://www.hyperarts.com/blog/changes-facebook-boxes-tabs-fbml/" title="Facebook Change to Maximum Width of Static FBML Application Tabs"><em>anticipated</em> new maximum width of application tabs</a>, such as Static FBML). </p>
<p>If you want more videos in a row, you&#8217;ll need to adjust the width of the videos, as well as change the width values of the CSS classes. </p>
<p>As shown in the code below, you need to first create a few CSS classes which you will set in your tab:</p>
<div class="indent">
.multivideos (contains the individual videos for each row)</p>
<p>.video1 (contains the first video in the row)</p>
<p>.videos (contains additional videos in the row)</p>
<p>.clear (you need a &#8220;clearing&#8221; DIV after two or more floated elements &#8211; .video1 and .videos &#8211; in order for the .multivideos containing DIV to expand to accommodate the two floated DIVs inside it).
</p></div>
<p>To get the correct URL for the YouTube video, just navigate to the video&#8217;s page on YouTube, then click the &#8220;Embed&#8221; button, which is below the video:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-116.png" alt="Embed YouTube Video" title="Embed YouTube Video" width="387" height="40" class="alignnone size-full wp-image-2222" /></p>
<p>Copy the value from the embed code:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/YouTube-embed.gif" alt="YouTube embed code" title="YouTube-embed" width="459" height="90" class="alignnone size-full wp-image-2224" /></p>
<h3>Setting the videos to autoplay when activation image is clicked</h3>
<p>If you want to set your video to autoplay after the user clicks the activation image, add &#8220;autoplay=1&#8243; after the &#8220;&#038;&#8221; at the end of the video&#8217;s URL (if there&#8217;s no &#8220;&#038;&#8221;, add &#8220;&#038;autoplay=1&#8243;), as in my example code.</p>
<p>Of course, you can, and should, choose a different activation image for your video.</p>
<h3>The Video Rows Code</h3>
<p>Here is the code, which will work as-is if you paste it into the &#8220;FBML&#8221; box in your Static FBML tab. You can simply change the &#8220;swfsrc&#8221; value to point to the video you wish to embed.</p>
<p class="code"><code><br />
&lt;style type=&quot;text/css&quot;&gt;<br />
.videorow { width:520px; clear:both; margin-bottom:5px;}<br />
.video1 { float:left; width:250px;}<br />
.videos { float:left; width:250px; margin-left:5px;}<br />
.clear { font-size: 1px; line-height: 1px; height: -1%; clear:both; }<br />
&lt;/style&gt;<br />
&lt;div class=&quot;videorow&quot;&gt;<br />
&lt;div class=&quot;video1&quot;&gt;<br />
&lt;fb:swf<br />
swfbgcolor=&quot;000000&quot; imgstyle=&quot;border-width:3px; border-color:white;&quot;<br />
swfsrc=&#039;http://www.youtube.com/v/qrO4YZeyl0I&amp;hl=en_US&amp;fs=1&amp;autoplay=1&#039;<br />
imgsrc=&#039;http://i567.photobucket.com/albums/ss117/hyperarts/click-to-play.gif&#039; width=&#039;250&#039; height=&#039;150&#039; /&gt;<br />
&lt;/div&gt;<br />
&lt;div class=&quot;videos&quot;&gt;<br />
&lt;fb:swf<br />
swfbgcolor=&quot;000000&quot; imgstyle=&quot;border-width:3px; border-color:white;&quot;<br />
swfsrc=&#039;http://www.youtube.com/v/1mB0tP1I-14&amp;hl=en_US&amp;fs=1&amp;autoplay=1&#039;<br />
imgsrc=&#039;http://i567.photobucket.com/albums/ss117/hyperarts/click-to-play.gif&#039; width=&#039;250&#039; height=&#039;150&#039; /&gt;<br />
&lt;/div&gt;<br />
&lt;p class=&quot;clear&quot;&gt;&lt;/p&gt;<br />
&lt;/div&gt; &lt;!-- END videorow --&gt;<br />
&lt;div class=&quot;videorow&quot;&gt;<br />
&lt;div class=&quot;video1&quot;&gt;<br />
&lt;fb:swf<br />
swfbgcolor=&quot;000000&quot; imgstyle=&quot;border-width:3px; border-color:white;&quot;<br />
swfsrc=&#039;http://www.youtube.com/v/bESGLojNYSo&amp;hl=en_US&amp;fs=1&amp;autoplay=1&#039;<br />
imgsrc=&#039;http://i567.photobucket.com/albums/ss117/hyperarts/click-to-play.gif&#039; width=&#039;250&#039; height=&#039;200&#039; /&gt;<br />
&lt;/div&gt;<br />
&lt;div class=&quot;videos&quot;&gt;<br />
&lt;fb:swf<br />
swfbgcolor=&quot;000000&quot; imgstyle=&quot;border-width:3px; border-color:white;&quot;<br />
swfsrc=&#039;http://www.youtube.com/v/-7NoOhmVMac&amp;hl=en_US&amp;fs=1&amp;autoplay=1&#039;<br />
imgsrc=&#039;http://i567.photobucket.com/albums/ss117/hyperarts/click-to-play.gif&#039; width=&#039;250&#039; height=&#039;200&#039; /&gt;<br />
&lt;/div&gt;<br />
&lt;p class=&quot;clear&quot;&gt;&lt;/p&gt;<br />
&lt;/div&gt; &lt;!-- END multivideos --&gt;<br />
<!--formatted--></code></p>
<p>You can see the above example <a href="http://www.facebook.com/pages/HyperArts-Examples/124380727586182?v=app_4949752878" target="_blank" title="Static FBML video rows">here</a>. (For an &#8220;interesting&#8221; experience, I recommend playing all four at once!)</p>
<h3>Calculating video dimensions for best display of videos and activation images</h3>
<p>Most YouTube videos are either 640 x 385 pixels or 480 x 385 pixels. You will need to scale the width and height values in your fb:swf so that the videos and the &#8220;activation&#8221; images (imgsrc) aren&#8217;t distorted by having the wrong aspect ratio (ratio of width to height).</p>
<p>In my example, I placed the two 640 x 385 videos in row one and the two 480 x 385 videos in row two, for a better visual display.</p>
<p>I also used a generic &#8220;click to play&#8221; activation image which I uploaded to <a href="http://www.photobucket.com" title="Photobucket" target="_blank">Photobucket&#8217;s image-hosting service</a>. If you don&#8217;t have access to a Web server to which you can upload images, Photobucket is a great alternative.</p>
<p>For additional instructions on adding YouTube videos or Flash to Static FBML, <a href="http://www.hyperarts.com/blog/tutorial-embed-youtube-channel-slideshow-static-fbml-page/" title="Embed YouTube or Flash in Static FBML tabs">check out our tutorial</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/multiple-videos-side-by-side-rows-facebook-static-fbml-tabs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FBML Tutorial Videos</title>
		<link>http://www.hyperarts.com/blog/facebook-pages-fbml-tutorial-videos/</link>
		<comments>http://www.hyperarts.com/blog/facebook-pages-fbml-tutorial-videos/#comments</comments>
		<pubDate>Fri, 21 May 2010 20:00:26 +0000</pubDate>
		<dc:creator>Analisa</dc:creator>
				<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[custom tabs]]></category>
		<category><![CDATA[embedding]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[FBML]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[instructions]]></category>
		<category><![CDATA[MP3]]></category>
		<category><![CDATA[pages]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[slideshow]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=2180</guid>
		<description><![CDATA[We have been asked lots of questions about FBML and developing custom tabs for Facebook Pages. Often they are the same basic questions and we are happy to answer them&#8230;But sometimes telling you how to do things is not nearly as effective as showing you! Here are some videos that show you set-by-step instructions for [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1846" title="FBML tutorial" src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-371.png" alt="" width="75" height="75" />We have been asked lots of questions about FBML and developing custom tabs for Facebook Pages. Often they are the same basic questions and we are happy to answer them&#8230;But sometimes <em>telling</em> you how to do things is not nearly as effective as <em>showing </em>you!</p>
<p>Here are some videos that show you set-by-step instructions for optimizing your Facebook page and custom FBML tabs with video, music, photos and more:</p>
<h3 style="text-align: center;">How to add FBML to your Facebook Page</h3>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/r2Hru1eWJf0&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/r2Hru1eWJf0&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h3 style="text-align: center;"><span id="more-2180"></span>How to Embed a Flickr Slideshow</h3>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/Q3DbipKO5Ss&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Q3DbipKO5Ss&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
<h3 style="text-align: center;">How to host and add images to FBML</h3>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/jn4kpA3i8no&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jn4kpA3i8no&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
<h3 style="text-align: center;">How to embed MP3s in FBML</h3>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/T-IKIiTASQU&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/T-IKIiTASQU&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
<h3 style="text-align: center;">How to embed a YouTube video in FBML</h3>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/bS8MiNxZAMw&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="385" src="http://www.youtube.com/v/bS8MiNxZAMw&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/facebook-pages-fbml-tutorial-videos/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>How to Add Facebook&#8217;s XFBML Like Button &amp; Social Plugins to Your Web Pages &amp; WordPress Posts</title>
		<link>http://www.hyperarts.com/blog/how-to-add-facebook-like-button-social-plugins-to-wordpress-posts/</link>
		<comments>http://www.hyperarts.com/blog/how-to-add-facebook-like-button-social-plugins-to-wordpress-posts/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 23:24:46 +0000</pubDate>
		<dc:creator>timware</dc:creator>
				<category><![CDATA[LINKS: WordPress]]></category>
		<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[like button]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[social graph]]></category>
		<category><![CDATA[social networks]]></category>
		<category><![CDATA[social plugins]]></category>
		<category><![CDATA[social web]]></category>
		<category><![CDATA[Wordpress Plugins]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=1999</guid>
		<description><![CDATA[Facebook&#8217;s new Open Graph protocol is now official, having been announced and launched this past Wednesday at the Facebook f8 Conference. It is the successor to Facebook Connect which will be slowly phased out, and it is a big improvement, making it much easier to &#8220;socialize&#8221; your Web pages into Facebook&#8217;s hyper-expanding social network. I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hyperarts.com/blog/wp-content/uploads/facebook-plugin-300x299-150x150.jpg" alt="Facebook" title="facebook-plugin-300x299" width="150" height="150" class="alignleft size-thumbnail wp-image-2041 noborder" />Facebook&#8217;s new <a href="http://developers.facebook.com/docs/opengraph" title="Facebook Open Graph Protocol" target="_blank">Open Graph protocol</a> is now official, having been announced and launched this past Wednesday at the <a href="http://www.facebook.com/f8" title="Facebook f8 Conference" target="_blank">Facebook f8 Conference</a>. It is the successor to Facebook Connect which will be slowly phased out, and it is a big improvement, making it much easier to &#8220;socialize&#8221; your Web pages into Facebook&#8217;s hyper-expanding social network.</p>
<p>I must admit it was hard to sit still at the f8 conference after <a href="http://apps.facebook.com/feightlive/insidef8.php?_fb_fromhash=bba171c7ba9c25adf9d49f601e74cefc" title="Zuckerberg Keynote at f8">Mark Zuckerberg made the announcement in his keynote address</a> and I attended a couple <a href="http://apps.facebook.com/feightlive/insidef8.php?_fb_fromhash=bba171c7ba9c25adf9d49f601e74cefc" target="_blank" title="Facebook f8 Sessions">sessions</a> that delved deeper into the Social Plugins and the Open Graph protocol. As soon as possible, which happens to be today, I decided to start experimenting by adding some <a href="http://developers.facebook.com/plugins" title="Facebook Social Plugins Selection" target="_blank">social plugins</a> to my WordPress blog.</p>
<p>I decided I could save others a lot of time if I wrote up a tutorial. So here it is&#8230;.</p>
<p><span id="more-1999"></span></p>
<h3>Adding the Facebook Social Plugins to your Web Page or Blog &#8212; XFBML or iFrame?</h3>
<p>Facebook offers two methods to add their social plugins to your Web page or blog posts: </p>
<ol>
<li>A simple iframe which can be easily dropped into the Web page code;</li>
<li>The &lt;fb:like> XFBML tag, which requires that your page/post make a call to the <a href="http://developers.facebook.com/docs/reference/javascript/" title="Facebook JavaScript SDK" target="_blank">JavaScript SDK</a> and that your page be set up as a Facebook application (quite easy).</li>
</ol>
<p>I decided to go the XFBML route which, although a bit more complicated, is more feature rich than the iframe method. For example, after clicking on your Like/Recommend button, the user can add a comment to the profile post. With the XFBML Like button, the post on the user&#8217;s personal profile looks like this (if, and only if, they add a comment):<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-210.png" alt="Facebook Like Comment" title="Facebook Like Comment" width="541" height="155" class="alignnone size-full wp-image-2158" /></p>
<p>With the iFrame Like button (or if the user doesn&#8217;t add a comment with your XFBML version), the post on a user&#8217;s profile shows up like this:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-311.png" alt="Facebook Like Button without Comment" title="Facebook Like Button without Comment" width="433" height="40" class="alignnone size-full wp-image-2159" /></p>
<h3>New WordPress Plugins for Facebook Social Plugins</h3>
<p>If you&#8217;d be happy with the simpler iframe method, there are already <a href="http://wordpress.org/extend/plugins/search.php?q=facebook+social+plugins&#038;sort=" title="Facebook Like WordPress Social Plugins" target="_blank">several WordPress plugins to add the Like button</a>. And here&#8217;s <a href="http://www.wpbeginner.com/wp-tutorials/how-to-add-facebook-like-button-in-wordpress/" target="_blank">a good post on adding the iframe Like button</a>. But, remember, with the iframe method you can&#8217;t use the extended features such as the user being able to add a comment when &#8220;liking&#8221; your post or blog. There is also <a href="http://wordpress.org/extend/plugins/simple-facebook-connect/" title="Add XFBML Facebook Social Plugins to WordPress" target="_blank">a WordPress plugin that will add the XFBML social plugins to your blog</a>, by Otto.</p>
<h3>Create an Application &#8211; Tell Facebook Your Website, Web Page or Post is an Application</h3>
<p>The Web page or blog post to which you will add Facebook&#8217;s social plugins or other features that interact with Facebook&#8217;s Graph API will be viewed by Facebook as an &#8220;application,&#8221; which allows the page or post to use the JavaScript SDK. Here is the drill:</p>
<p>While logged in to Facebook, go to <a href="http://developers.facebook.com/setup/" title="Create a Facebook Application" target="_blank">Create an Application page</a>. You will see this:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-191.png" alt="Create an Application  - Facebook" title="Create an Application" width="259" height="189" class="alignnone size-full wp-image-2059 noborder" /></p>
<ul>
<li>Enter the &#8220;Site name&#8221; value &#8212; it will be the name of the application. Just give it a short descriptive title (I used &#8220;HyperArts Blog&#8221;);</li>
<li>Under the &#8220;Connect&#8221; tab in your new application, enter the full URL to the website or Web page (I used &#8220;http://www.hyperarts.com/blog/&#8221; &#8211; but individual posts will have a specific URL directly to the post via some PHP code in the Like button code, as described below.)<br />
<strong class="red">NOTE: Make sure the Connect URL <em>exactly</em> matches your site URL</strong><br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Facebook-Connect.gif" alt="" title="Facebook-Connect" width="500" height="173" class="alignnone size-full wp-image-2441" /></li>
<li>Select the appropriate locale;</li>
<li>Enter the CAPTCHA characters, and click through, and <em>viola</em>!  There&#8217;s your application. </li>
</ul>
<p>The &#8220;Application ID&#8221; value is the one you&#8217;ll want for our purposes in this post. You can always access this &#8220;application&#8221; by going to the <a href="http://www.facebook.com/developers/" target="_blank" title="Facebook Developers Dashboard">Developer Dashboard</a>:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/app-ID.gif" alt="Facebook Application ID" title="app-ID" width="519" height="262" class="aligncenter size-full wp-image-2002" /> </p>
<p>With your Web page or blog set up as an application with an app ID, you can now use the JavaScript SDK. There are <a href="http://developers.facebook.com/docs/api" title="Facebook Graph API" target="_blank">many other things you can do with your application via the Facebook Graph API</a>, but this is outside the scope of this post.</p>
<h3>Add Meta Tags to your WordPress Blog Header File</h3>
<p>You&#8217;ll need to add the meta tags to your &#8220;header.php&#8221; file located in your theme&#8217;s folder (wp-content > themes > [your theme] > header.php).</p>
<p>You&#8217;ll need to add a couple new values to the &lt;html> tag of your header:</p>
<p class="code"><code><br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;<br />
 xmlns:og=&quot;http://opengraphprotocol.org/schema/&quot;<br />
 xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot; &lt;?php language_attributes(); ?&gt;&gt;<br />
<!--formatted--></code></p>
<p>And then add the following meta tags (taken from our blog) to your header.php:</p>
<p class="code"><code><br />
	&lt;meta property=&quot;fb:admins&quot; content=&quot;YOUR-ADMIN-ID&quot;/&gt;<br />
	&lt;meta property=&quot;fb:app_id&quot; content=&quot;YOUR-APP-ID&quot; /&gt;<br />
	&lt;meta property=&quot;og:type&quot; content=&quot;article&quot; /&gt;<br />
    &lt;?php if(is_home()) {<br />
    	?&gt;&lt;meta property=&quot;og:title&quot; content=&quot;Blog&quot; /&gt;&lt;?php<br />
    	} else {<br />
    		?&gt;&lt;meta property=&quot;og:title&quot; content=&quot;&lt;?php the_title_attribute( $args ); ?&gt;&quot; /&gt;&lt;?php<br />
    		}<br />
    	?&gt;<br />
    &lt;?php if (is_home())<br />
		echo &#039;&lt;meta property=&quot;og:url&quot; content=&quot;YOUR-APP-URL&quot; /&gt;&#039;;<br />
		else echo &#039;&lt;meta property=&quot;og:url&quot; content=&quot;&#039;.get_permalink().&#039;&quot; /&gt;&#039;;<br />
	?&gt;<!--formatted--></code></p>
<h3>fb:admins</h3>
<p>Replace YOUR-ADMIN-ID with your Facebook User ID. To easily get your Facebook User ID, you can use another aspect of the social graph: <a href="http://graph.facebook.com/timware" target="_blank" title="Facebook Social Graph">http://graph.facebook.com/timware</a> (substitute your username for &#8220;timware&#8221;). This will pull up the information that is publicly available for that user. You&#8217;ll want the &#8220;id&#8221; value for our purposes here.</p>
<h3>fb:app_id</h3>
<p>Replace YOUR-APP-ID with the Application ID assigned to your website when you set it up on Facebook, as described above.</p>
<h3>og:title</h3>
<p>For the &#8220;og:title&#8221; attribute, you&#8217;ll want this to return the title for your blog post. As you can see from the above example, this simply involves a bit of PHP code that pulls in the post&#8217;s title.</p>
<h3 id="og-type">og:type</h3>
<p>As you see above, I utilized a PHP conditional statement in header.php to have the &lt;meta property=&#8221;og:type&#8221; content=&#8221;blog&#8221; /> tag for the home page and the &lt;meta property=&#8221;og:type&#8221; content=&#8221;article&#8221; /> for individual posts. This comes by way of Otto who has <a href="http://ottopress.com/" title="OttoPress Blog - WordPress" target="_blank">an excellent blog on WordPress</a>, as well as <a href="http://wordpress.org/extend/plugins/simple-facebook-connect/" title="Facebook Social Plugins - WordPress Plugin" target="_blank">a Facebook Connect plugin for WordPress</a>. And this approach is also supported in this <a href="http://github.com/artlung/Open-Graph-Protocol-Plugin-for-WordPress/" target="_blank">GitHub post</a>.</p>
<p>As for the implications, in terms of Insights and the display of Pages in your &#8220;Home > Ads and Pages&#8221; section of your personal profile, we&#8217;ll have to wait and see.</p>
<p>You&#8217;ll also need to add the &lt;fb:like> XFBML to your index.php file for your theme, as well as the call to the JavaScript SDK. I added it as the first content after the &#8220;main-content&#8221; DIV. You will then see the Admin Page option next to the Like button.</p>
<h3>og:url</h3>
<p>I used some PHP to set the URL for our blog&#8217;s landing page to the blog URL set in the application (YOUR-APP-URL). On the individual pages or posts, it will fill in the Permalink for the page/post. In &#8220;single.php&#8221; (for individual blog posts) and &#8220;page.php&#8221; (for pages), we omit the &#8220;href&#8221; value in the &#8220;Like&#8221; button code (fb:like).</p>
<h3>og:description</h3>
<p>The &#8220;og:description&#8221; meta tag: If you omit this meta tag, the value will be the &#8220;description&#8221; meta tag for the post, and that is what will show up as the description on a user&#8217;s Facebook profile when they &#8220;Recommend&#8221; or &#8220;Like&#8221; your post. (We use the <a href="http://wordpress.org/extend/plugins/headspace2/" title="Headspace SEO Plugin for WordPress" target="_blank">WordPress SEO plugin Headspace</a> which gives you the ability to create custom title and meta tags for each post. Highly recommended!)</p>
<h3>og:image</h3>
<p>This is simply the full/absolute URL to the image you want to have appear when someone &#8220;Likes&#8221; your page and it&#8217;s added to their personal profile stream. We omit this meta tag so that it uses the lead image from the blog post.</p>
<p>The below image is from my profile after I &#8220;Recommended&#8221; a blog post:<br />
<img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-59.png" alt="Facebook Recommend" title="Facebook Recommend" width="517" height="124" class="alignnone size-full wp-image-2442" /></p>
<p>The green logo is the logo pulled in with the &#8220;og:image&#8221; meta tag (make sure you make this value the FULL URL to the image!).</p>
<p>The title of the post is linked in blue, and the description meta tag content is the description below the title. The &#8220;SEO for 2010 &#8211; Easier &#038; Harder!&#8221; is the comment I added when I used the &#8220;Recommend&#8221; link on the post. The commenting feature can be used only if you use XFBML instead of iframes for the Like button, as mentioned earlier in this post.</p>
<p>And that takes care of the meta tags. There are <a href="http://developers.facebook.com/docs/opengraph#extra-data" title="Social Graph Meta Data Tags" target="_blank">a number of additional social graph meta tags</a> you might want to check out.</p>
<h3>Adding the Like Button to your Individual WordPress Posts</h3>
<p>The below code includes the call to the JavaScript SDK mentioned earlier and the Like button XFBML code. To add the Like button to each post, you will need to edit the single.php file (wp-content > themes > YOUR THEME > single.php). For our blog&#8217;s theme, I put the following code just before the closing tag of the &lt;div class=&#8221;postbody entry&#8221;> &#8230; &lt;/div>:</p>
<p class="code"><code><br />
	&lt;div id=&quot;fb-root&quot;&gt;&lt;/div&gt;<br />
	&lt;script&gt;<br />
	  window.fbAsyncInit = function() {<br />
		FB.init({appId: &#039;YOUR APP ID&#039;, status: true, cookie: true,<br />
				 xfbml: true});<br />
	  };<br />
	  (function() {<br />
		var e = document.createElement(&#039;script&#039;); e.async = true;<br />
		e.src = document.location.protocol +<br />
		  &#039;//connect.facebook.net/en_US/all.js&#039;;<br />
		document.getElementById(&#039;fb-root&#039;).appendChild(e);<br />
	  }());<br />
	&lt;/script&gt;<br />
	&lt;fb:like action=&#039;recommend&#039; colorscheme=&#039;light&#039;<br />
	layout=&#039;standard&#039; show_faces=&#039;true&#039; width=&#039;500&#039;/&gt;<br />
<!--formatted--></code></p>
<h3>Adding the Like Button to your Individual WordPress Pages</h3>
<p>For WordPress Pages, the only difference from the above code is the URL in the &lt;fb:like> tag. Add the Like button to Pages by adding the above code for Posts &#8212; but with the below code for &lt;fb:like> tag where the only difference is the PHP code for the &#8220;href&#8221; value &#8212; to the page.php file (wp-content > themes > YOUR THEME > page.php). For our blog&#8217;s theme, I put the code just before the closing tag of the &lt;div class=&#8221;entry&#8221;> &#8230; &lt;/div>:</p>
<p class="code"><code><br />
	&lt;fb:like action=&#039;recommend&#039; colorscheme=&#039;light&#039;<br />
	layout=&#039;standard&#039; show_faces=&#039;true&#039; width=&#039;500&#039;/&gt;<br />
<!--formatted--></code></p>
<p>The only thing you need to change in the above code for both posts and pages is YOUR APP ID, to the value you get from your application&#8217;s page on the <a href="http://www.facebook.com/developers/" title="Facebook Developers Page" target="_blank">Facebook Developer dashboard</a>, as described earlier.</p>
<p>After saving your changes to the &#8220;single.php&#8221; file, you should be ready to go.</p>
<h3>&#8220;Like&#8221; or &#8220;Recommend&#8221;?</h3>
<p>For our blog, which contains more how-tos and tutorials than editorial content, I changed the &#8220;Like&#8221; button to be a &#8220;Recommend&#8221; button, simply by changing the &#8220;action&#8221; attribute in the &lt;fb:like> tag from &#8220;like&#8221; to &#8220;recommend&#8221;. &#8220;Recommend&#8221; is also more appropriate when someone wants to share a page on, say an environmental disaster, and clicking &#8220;Like&#8221; isn&#8217;t really appropriate.</p>
<p>I then added, via an iframe, the <a href="http://developers.facebook.com/docs/reference/plugins/recommendations" title="Recommendations Facebook Social Plugin" target="_blank">&#8220;Recommendations&#8221; social plugin</a> which shows our blog posts that people have recommended via the button, and how many times each post was recommended.</p>
<p>Finally, I added the <a href="http://developers.facebook.com/docs/reference/plugins/like-box" title="Like Box Facebook Social Plugin" target="_blank">&#8220;Like Box&#8221; social plugin</a> which displays a box that displays Fan Page data to select from, including connections (with pictures) and the stream. I just opted for the connections.</p>
<p>If anyone has any more insight into this, please comment&#8230;.</p>
<h3>Facebook Social Plugins Resources</h3>
<ul>
<li><a href="http://ottopress.com/2010/how-to-setup-your-facebook-connect-application/" title="How to Set Up Your Facebook Connect Application" target="_blank">Otto on WordPress Blog: How to Set Up Your Facebook Connection Application (Excellent!)</a></li>
<li><a href="http://blog.facebook.com/blog.php?post=384733792130" title="Facebook - About Social Plugins" target="_blank">Facebook | Answers to Your Questions on Personalized Web Tools</a></li>
<li><a href="http://www.prod.facebook.com/sitetour/connect.php#!/help/?page=1068" title="Facebook Social Plugins Help Center" target="_blank">Facebook Social Plugins Help Center</a></li>
<li><a href="http://developers.facebook.com/docs/opengraph" target="_blank">Facebook Open Graph protocol</a></li>
<li><a href="http://developers.facebook.com/plugins" target="_blank">Available Social Plugins</a></li>
<li><a href="http://www.insidefacebook.com/2010/04/23/facebook-overhauls-page-and-app-insights-adds-domain-analytics-features-and-an-api/" title="Facebook Social Plugins" target="_blank">Inside Facebook Reviews Facebook Social Plugins</a></li>
<li><a href="http://www.facebook.com/f8" title="Facebook f8 Conference" target="_blank">Facebook f8 Conference</a></li>
<li><a href="http://developers.facebook.com/docs/api" title="Facebook Graph API" target="_blank">Facebook Graph API</a></li>
<li><a href="http://developers.facebook.com/docs/reference/plugins/like" target="_blank">Like Button</a></li>
<li><a href="http://developers.facebook.com/docs/reference/javascript/" target="_blank">Facebook JavaScript SDK</a></li>
<li><a href="http://developers.facebook.com/docs/guides/web" title="Facebook for Web Sites" target="_blank">Facebook for Web Sites [sic]</a></li>
<li><a href="http://developers.facebook.com/showcase/" title="Facebook Platform Showcase" target="_blank">Facebook Platform Showcase</a></li>
<li><a href="http://developers.facebook.com/setup/" title="Create a Facebook Application" target="_blank">Create a Facebook Application</a></li>
<li><a href="http://www.insidefacebook.com/2010/04/29/how-to-programmatically-administer-off-facebook-pages-with-the-open-graph-api/" title="How to Programmatically Administer Off-Facebook Pages with the Open Graph API" target="_blank">How to Programmatically Administer Off-Facebook Pages with the Open Graph API | Inside Facebook</a></li>
<li><a href="http://www.insidefacebook.com/2010/04/21/with-the-open-graph-protocol-any-url-can-be-treated-just-like-a-facebook-page/" title="More on Open Graph from Inside Facebook" target="_blank">More on Open Graph from Inside Facebook</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/how-to-add-facebook-like-button-social-plugins-to-wordpress-posts/feed/</wfw:commentRss>
		<slash:comments>113</slash:comments>
		</item>
		<item>
		<title>Facebook Fan Pages &#8211; Show Content to Fans &#8211; Hide from Non-Fans &#8211; FBML</title>
		<link>http://www.hyperarts.com/blog/facebook-fan-pages-content-for-fans-only-static-fbml/</link>
		<comments>http://www.hyperarts.com/blog/facebook-fan-pages-content-for-fans-only-static-fbml/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 06:26:08 +0000</pubDate>
		<dc:creator>timware</dc:creator>
				<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[facebook fan page]]></category>
		<category><![CDATA[FBML]]></category>
		<category><![CDATA[Static FBML]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=1459</guid>
		<description><![CDATA[A concise tutorial on using FBML to show content to fans only and hide content from non-fans, on your Static FBML application tab.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hyperarts.com/blog/wp-content/uploads/icon_facebook-75x75.gif"><img src="http://www.hyperarts.com/blog/wp-content/uploads/icon_facebook-75x75.gif" alt="" title="Facebook FBML" width="75" height="75" class="alignleft size-full wp-image-1290" /></a>If you want to show content to your fans, and require that a visitor to your Fan Page become a fan in order to view the content, here&#8217;s a nice bit of FBML  to render content on your Facebook Fan Page only to fans. Easy as pie&#8230;.</p>
<p><strong class="red">NOTE:</strong> It is easy to get confused about whether or not this working when you&#8217;re testing. Remember, if you&#8217;re an admin of the Fan Page you&#8217;re using this FBML in, and you&#8217;re logged in, you will see the content whether or not you&#8217;re actually a fan of the Page. People get confused about this and think the tags aren&#8217;t working.</p>
<p><strong>ALSO NOTE:</strong> If you follow the below instructions and it&#8217;s not working, try removing the &lt;fb:fbml version=&#8221;1.1&#8243;> &lt;/fb:fbml> tags. I think Facebook may have changed its API.</p>
<p><strong class="red">FINALLY:</strong> If you want to copy and paste my code, MAKE SURE you convert all quotes to plain-text (straight up and down) quotes! <strong>Otherwise, your code will not work</strong>!</p>
<h3>Content for Fans Only</h3>
<p>First, on your Static FBML page, begin with the following:</p>
<div class="code"><code><br />
&lt;fb:fbml version=”1.1″&gt;<br />
<!--formatted--></code></div>
<p>Wrap the content you want to hide from non-fans within these tags:</p>
<div class="code"><code><br />
&lt;fb:visible-to-connection&gt;&lt;/fb:visible-to-connection&gt;<br />
<!--formatted--></code></div>
<p>Then end your page with:</p>
<div class="code"><code><br />
&lt;/fb:fbml&gt;<br />
<!--formatted--></code></div>
<p>And that&#8217;s it! The content contained between &lt;fb:visible-to-connection> and &lt;/fb:visible-to-connection> will be visible to fans only.</p>
<h3>How to Show Different Content to Fans and non-Fans</h3>
<div class="code"><code><br />
&lt;fb:fbml version="1.1"><br />
&lt;fb:visible-to-connection><br />
Fans will see this content.<br />
&lt;fb:else>Non-fans will see this content.&lt;/fb:else><br />
&lt;/fb:visible-to-connection><br />
&lt;/fb:fbml>
</div>
<p><!--formatted--></code></p>
<h3>Removing the Space above the Non-Fan Content</h3>
<p>Many folks complain that before a user becomes a fan, and the &#8220;non-fan&#8221; content is displayed, the &#8220;fans-only&#8221; content still takes up the space it would if it were being displayed. To fix this, put paragraph tags (&lt;p> &#8230; &lt;/p>) around the image or the text for the non-fan content, and set a negative margin on the paragraph tag equal to the height of the fans-only content.</p>
<p>In the example below, the fans-only content is 100px tall:</p>
<p>&lt;fb:else>&lt;p style=&#8221;margin-top:-100px;&#8221;>&lt;img src=&#8221;[IMAGE URL]&#8220;>&lt;/p>&lt;/fb:else></p>
<p>OR</p>
<p>&lt;fb:else>&lt;p style=&#8221;margin-top:-100px;&#8221;>Text content for fans only&lt;/p></p>
<p>If your fans-only image is bigger than your non-fans image, and you find that your image is getting cut off:</p>
<p>Surround the entire &lt;fb:visible-to-connection> &#8230; &lt;/fb:visible-to-connect> with a &lt;div> tag that includes a style setting the height to the height of the tallest image (600 pixels in the below example):</p>
<p class="code" id="cutoff"><code><br />
&lt;div style="height:600px;"><br />
&lt;fb:visible-to-connection><br />
[content]<br />
&lt;/fb:visible-to-connection><br />
&lt;/div><br />
<!--formatted--></code></p>
<h3 style="color:#c00;">Troubleshooting</h3>
<p>If you aren&#8217;t having success implementing this code, it is most likely due to one of the issues described below. PLEASE carefully read this post and the troubleshooting tips below before asking questions via the comments.</p>
<ul>
<li><strong>IF YOU SEE BOTH FANS-ONLY &#038; NON-FANS CONTENT:</strong> To test whether you&#8217;ve implemented this feature correctly, you MUST NOT be logged in as an admin for the page you&#8217;re adding this to, or you&#8217;ll see both the content for fans and for non-fans. The best way to test is to create a user profile for testing and log in as that user. You can then &#8220;Like&#8221; the page and &#8220;un-Like&#8221; the page to test the display of content. To &#8220;unlike&#8221; a page, click on the Wall tab for the page and at the bottom of the left column you&#8217;ll see an &#8220;Unlike&#8221; link. Click that to unlike the page;</li>
<li><strong>NO &#8220;CURLY&#8221; OR &#8220;FANCY&#8221; FORMATTED QUOTES:</strong> Your quotes, whether single or double &#8212; and ALL your code &#8212; MUST be plain-text. If your quotes aren&#8217;t straight up and down, then they&#8217;re formatted quotes and should be fixed or your code will NOT work;</li>
<li><strong>MATCHING QUOTES:</strong> Make sure quotes around values are both the same, either single or double, but they have to match!</li>
<li><strong>HEIGHT SETTINGS:</strong> My fix for the extra space above the non-fan content uses an <em>example height</em>. Make sure you set the height value and the &#8220;margin-top&#8221; negative values for your individual case.</li>
<li><strong>TEST YOUR URLS:</strong> If you can&#8217;t access the URL for an image or file directly in your browser, it won&#8217;t work in your code. Make sure your URLs are correct;</li>
<li><strong>URLS must be properly formed:</strong> After the domain name (&#8220;TLD&#8221;), URLs are CASE SENSITIVE. They should also contain NO SPACES or, as mentioned above, no specially formatted characters.</li>
</ul>
<h3>Other Resources</h3>
<p><a href="http://wiki.developers.facebook.com/index.php/Fb:visible-to-connection" target="_blank">Facebook Developer Wiki &#8211; fb:visible-to-connection</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/facebook-fan-pages-content-for-fans-only-static-fbml/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
		<item>
		<title>Adding iFrames to your Facebook Application &#8211; 2010</title>
		<link>http://www.hyperarts.com/blog/adding-iframes-to-facebook-application-2010-static-fbml/</link>
		<comments>http://www.hyperarts.com/blog/adding-iframes-to-facebook-application-2010-static-fbml/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 06:02:18 +0000</pubDate>
		<dc:creator>timware</dc:creator>
				<category><![CDATA[Social Media / Inbound Marketing]]></category>
		<category><![CDATA[Static FBML & FBML]]></category>
		<category><![CDATA[Web Coding]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[FBML]]></category>
		<category><![CDATA[iframes]]></category>
		<category><![CDATA[Static FBML]]></category>

		<guid isPermaLink="false">http://www.hyperarts.com/blog/?p=1419</guid>
		<description><![CDATA[In early 2010, Facebook made some modifications to the API which made the embedding of iFrames more restricted. Although they are no longer supported in Static FBML tabs, iFrames can still be implemented on application Canvas Pages. However, rather than an iFrame loading automatically &#8212; as it previously did on Canvas Pages &#8212; a user [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hyperarts.com/blog/wp-content/uploads/icon_facebook-75x75.gif"><img src="http://www.hyperarts.com/blog/wp-content/uploads/icon_facebook-75x75.gif" alt="" title="Facebook FBML" width="75" height="75" class="alignleft size-full wp-image-1290" /></a>In early 2010, Facebook made some modifications to the API  which made the embedding of iFrames more restricted. Although they are no longer supported in <a href="/blog/tutorial-facebook-pages-with-static-fbml-application/">Static FBML tabs</a>, iFrames can still be implemented on application Canvas Pages. However, rather than an iFrame loading automatically &#8212; as it previously did on Canvas Pages &#8212; a user action &#8212; a click &#8212; is now required to load the iFrame.</p>
<p><a href="http://www.hyperarts.com/blog/changes-facebook-boxes-tabs-fbml/">In a PowerPoint that Facebook circulated in late 2009</a>, Facebook explained the upcoming changes:</p>
<blockquote><p>
<strong>iFrames</strong><br />
Preserving iFrames (on a custom tab)<br />
If you currently use an iFrame in your page and must preserve the content of one or more of your iFrames: Create a wrapper application that lives on a canvas page. This application can have iFrames since it sits on a canvas page. Have this light weight application include the image of what you want to display, with an &#8220;Activate&#8221; button. Link the &#8220;Activate&#8221; button to the canvas page wrapper application. More information <a href="http://wiki.developers.facebook.com/index.php/Fb:iframe">here</a>. </p></blockquote>
<p>And here is that &#8220;wrapper application,&#8221; written in JavaScript:<br />
<span id="more-1419"></span></p>
<div class="code"><code><br />
&lt;a onClick=&quot;outside_location.setInnerFBML(link_1);&quot; style=&quot;cursor: pointer;&quot;&gt;Let&#039;s see that iframe....&lt;/a&gt;</p>
<p>&lt;div id=&quot;outside_location&quot;&gt;&lt;/div&gt;<br />
&lt;fb:js-string var=&quot;link_1&quot;&gt;<br />
&lt;fb:iframe height=&quot;500&quot; allowTransparency=&quot;true&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; style=&quot;width:100%; border:none&quot; src=&quot;http://URL-TO-OUTSIDE-LOCATION&quot;&gt;&lt;/fb:iframe&gt;<br />
&lt;/fb:js-string&gt;</p>
<p>&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;<br />
var outside_location = document.getElementById(&#039;outside_location&#039;);<br />
&lt;/script&gt;<br />
<!--formatted--></code></div>
<p>There are two flavors of Facebook applications &#8212; iFrame and FBML &#8212; depending on whether you will render your canvas page in an iFrame or with FBML. Obviously, to embed an iFrame you&#8217;ll want to create an &#8220;iFrame&#8221; application. There are a number of resources on the Web for creating a Facebook application and, actually, it&#8217;s really not that hard. Here are several:</p>
<ul>
<li><a href="http://www.emanueleferonato.com/2009/09/20/developing-a-facebook-application-for-absolute-beginners/" target="_blank">Developing a Facebook App for Absolute Beginners &#8211; Emmanuele Feronato</a></li>
<li><a href="http://www.keebler.net/blog/2007/06/02/facebook-application-basics/" target="_blank">Facebook Application Basics</a></li>
<li><a href="http://wiki.developers.facebook.com/index.php/Creating_a_Platform_Application" target="_blank">Facebook Developer Wiki &#8211; Creating a Platform Application</a></li>
</ul>
<p>Once you have created your Facebook iFrame application, you can visit your application page, if you&#8217;re logged in to your Facebook account, by going to <a href="http://www.facebook.com/developers/apps.php" target="_blank">http://www.facebook.com/developers/apps.php</a> where you will see your application listed in the left column.</p>
<h3>Server Requirements for hosting a Facebook Application</h3>
<ul>
<li>Make sure your Web server supports PHP, preferably PHP5;</li>
<li>You&#8217;ll need FTP access to your server so you can create a directory and add files;</li>
<li>You need to <a href="http://github.com/facebook/php-sdk/" title="Facebook Official Client Library" target="_blank">download the Official Facebook PHP 5 Client Library</a> and upload it to your server (<em>if</em> your server has PHP 5 &#8212; if your server has PHP 4 instead of PHP 5, <a href="http://pearhub.org/get/facebook-0.1.0.tgz" title="Facebook PHP 4 Client Library" target="_blank">download the older Client Library</a>). Click the &#8220;Download Source&#8221; button and select either &#8220;ZIP&#8221; or &#8220;TAR&#8221; compression option in the popup window:
<p><a href="http://github.com/facebook/php-sdk/"><img src="http://www.hyperarts.com/blog/wp-content/uploads/Picture-58.png" alt="GitHub Link for PHP 5 Client Library" title="GitHub Screen Cap" width="437" height="134" class="alignnone size-full wp-image-2154" /></a></p>
<p> After unpacking (unzipping) the file, install the folder &#8220;src&#8221; in a directory you create and name &#8220;facebook-platform&#8221; (not a required directory name, but a good choice) at the document-root level (eg &#8220;httpdocs&#8221; or &#8220;public_html&#8221; or &#8220;html&#8221; &#8211; the name varies) of your server (where the home page file is). </li>
<li>More info is available on the <a href="<a href="http://wiki.developers.facebook.com/index.php/Creating_a_Platform_Application" target="_blank">Facebook Developer Wiki</a>.</li>
</ul>
<p>In the directory you create on your Web server for the &#8220;Canvas Callback URL&#8221; for your Facebook iFrame application, you&#8217;ll have two files: </p>
<ul>
<li>index.php &#8211; contains the content that will be rendered in the app;</li>
<li>appinclude.php &#8211; contains some meta info about the app.</li>
</ul>
<p>For your &#8220;index.php&#8221; file, you&#8217;ll need to render the &#8220;wrapper application&#8221; referenced above in PHP:</p>
<div class="code"><code><br />
&lt;?php</p>
<p>// File: &#039;index.php&#039; </p>
<p>require_once &#039;appinclude.php&#039;;</p>
<p>echo &#039;&lt;a onClick=&quot;outside_location.setInnerFBML(link_1);&quot; style=&quot;cursor: pointer;&quot;&gt;Let\&#039;s see that iframe....&lt;/a&gt;&#039;;</p>
<p>echo &#039;&lt;div id=&quot;outside_location&quot;&gt;&lt;/div&gt;&#039;;</p>
<p>echo &#039;&lt;fb:js-string var=&quot;link_1&quot;&gt;&#039;;</p>
<p>echo &#039;&lt;iframe height=&quot;500&quot; allowTransparency=&quot;true&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; style=&quot;width:100%; border:none&quot; src=&quot;[ABSOLUTE URL TO iFRAME CONTENT]&quot;&gt;&#039;;</p>
<p>echo &#039;&lt;/iframe&gt;&#039;;</p>
<p>echo &#039;&lt;/fb:js-string&gt;&#039;;</p>
<p>echo &#039;&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;<br />
var outside_location = document.getElementById(&quot;outside_location&quot;);<br />
&lt;/script&gt;&#039;;<br />
?&gt;<br />
<!--formatted--></code></div>
<p>For the &#8220;appinclude.php&#8221;:</p>
<div class="code"><code><br />
&lt;?php<br />
require_once ($_SERVER[&quot;DOCUMENT_ROOT&quot;] . &#039;/facebook-platform/src/facebook.php&#039;);</p>
<p>// *** Add your Facebook API Key, Secret Key here ***<br />
$appapikey = &#039;[APPLICATION API KEY]&#039;;<br />
$appsecret = &#039;[APPLICATION SECRET KEY]&#039;;<br />
$facebook = new Facebook($appapikey, $appsecret);<br />
// $user_id = $facebook-&gt;require_login();</p>
<p>?&gt;<br />
<!--formatted--></code></div>
<p>Regarding the above, replace &#8220;[APPLICATION API KEY]&#8221; and &#8220;[APPLICATION SECRET KEY]&#8221; with the ones generated when you create your application, and make sure your have the correct URL to the &#8220;facebook.php&#8221; file.</p>
<p>The &#8220;$user_id&#8221; is commented out (with the &#8220;//&#8221; preceding it) because it will cause the application not to function.</p>
<h3>How to Hide the Activation Image or Text After User Clicks</h3>
<p>In order to hide the activation image or text once it&#8217;s been clicked, you need to add a bit of FBML to the href, the &#8220;clicktohide&#8221; parameter. See below for how to implement this&#8230;</p>
<p class="code"><code><br />
&lt;?php<br />
//<br />
require_once &#039;appinclude.php&#039;;<br />
echo &#039;&lt;div id=&quot;iframeLinkDiv&quot;&gt;&lt;a clicktohide=&quot;iframeLinkDiv&quot; onClick=&quot;outside_location.setInnerFBML(link_1);&quot; style=&quot;cursor: pointer;&quot;&gt;&lt;img src=&quot;ABSOLUTE URL OF IMAGE&quot; border=&quot;0&quot; alt=&quot;Photobucket&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&#039;;<br />
echo &#039;&lt;div id=&quot;outside_location&quot;&gt;&lt;/div&gt;&#039;;<br />
echo &#039;&lt;fb:js-string var=&quot;link_1&quot;&gt;&#039;;<br />
echo &#039;&lt;iframe height=&quot;660px&quot; allowTransparency=&quot;true&quot; frameborder=&quot;0&quot; scrolling=&quot;yes&quot; style=&quot;width:760px; border:none&quot; src=&quot;ABSOLUTE URL OF IFRAMED PAGE&quot;&gt;&#039;;<br />
echo &#039;&lt;/iframe&gt;&#039;;<br />
echo &#039;&lt;/fb:js-string&gt;&#039;;<br />
echo &#039;&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;<br />
var outside_location = document.getElementById(&quot;outside_location&quot;);<br />
&lt;/script&gt;&#039;;<br />
?&gt;<br />
<!--formatted--></code></p>
<h3>External Resources</h3>
<ul>
<li><a href="http://www.keebler.net/blog/2007/06/02/facebook-application-basics/" target="_blank">Facebook Application Basics</a></li>
<li><a href="http://wiki.developers.facebook.com/index.php/Creating_a_Platform_Application" target="_blank">Facebook Developer Wiki &#8211; Creating a Platform Application</a></li>
<li><a href="http://wiki.developers.facebook.com/index.php/Choosing_between_an_FBML_or_IFrame_Application" target="_blank">Facebook Developer Wiki &#8211; Choosing between an FBML or iFrame Application</a></li>
<li><a href="http://wiki.developers.facebook.com/index.php/Category:IFrame_Applications" target="_blank">Facebook Developer Wiki &#8211; iFrame Applications</a></li>
<li><a href="http://www.emanueleferonato.com/2009/09/20/developing-a-facebook-application-for-absolute-beginners/" target="_blank">Developing a Facebook App for Absolute Beginners &#8211; Emmanuele Feronato</a></li>
<li><a href="http://bringitonhome.pbworks.com/Facebook-applications" target="_blank">Tutorial &#8211; Bring It On Home</a></li>
</ul>
<p>I can only offer very limited support for Facebook app development. But if you post questions here, others may be able to help out. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperarts.com/blog/adding-iframes-to-facebook-application-2010-static-fbml/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
	</channel>
</rss>
