<?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>Walrus In A Canoe &#187; Web Development</title>
	<atom:link href="http://walrusinacanoe.com/category/web-development/feed" rel="self" type="application/rss+xml" />
	<link>http://walrusinacanoe.com</link>
	<description>For me and you.</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:06:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Facebook AS3 API &#8211; Not getting response from auth.sessionChange or auth.login after password login?</title>
		<link>http://walrusinacanoe.com/web-development/884</link>
		<comments>http://walrusinacanoe.com/web-development/884#comments</comments>
		<pubDate>Wed, 11 Jan 2012 03:53:31 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=884</guid>
		<description><![CDATA[Facebook&#8217;s AS3 API has handy built in methods for dealing with Javascript / Flash communication regarding authentication and other Facebook events. However, it doesn&#8217;t always work when it should. Consider the situation below: Facebook.addJSEventListener('auth.login', onSessionChange); var opts:Object = {scope:"publish_stream, user_photos, create_event"}; Facebook.login(onResult, opts); In this case, we simply want to login and get the response [...]]]></description>
			<content:encoded><![CDATA[<p>Facebook&#8217;s AS3 API has handy <a href="https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/" target="_blank">built in methods</a> for dealing with Javascript / Flash communication regarding authentication and other Facebook events. However, it doesn&#8217;t always work when it should. Consider the situation below:</p>
<pre>Facebook.addJSEventListener('auth.login', onSessionChange);
var opts:Object = {scope:"publish_stream, user_photos, create_event"};
Facebook.login(onResult, opts);</pre>
<p>In this case, we simply want to login and get the response from Facebook when our user has completed authentication. </p>
<p>This works when the user is already logged into Facebook and Flash merely needs to register the application instance. However, if the user has to deal with the login prompt, the API does something funny. Flash will receive the response from Facebook but it will not necessarily be ready on Facebook&#8217;s server by the time you get it. Meaning your method receiving your <strong>auth.login </strong>event  will be called but if you try to do anything like &#8230;</p>
<pre>Facebook.api('/me',onMeResult);</pre>
<p>&#8230; your result will be an unauthenticated user error.</p>
<p>So the problem is that Facebook doesn&#8217;t assure it&#8217;s ready on its end before it sends you the response. My solution is terrible but it works &#8212; consider using a timer for your first API call with one second intervals from your <strong>auth.login</strong> method. In case the user cannot log in you might want to limit it to 5 cycles since no one will realistically time out longer than 5 seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/web-development/884/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Javascript Update / OAuth 2.0 Requirement breaking login pop-up?</title>
		<link>http://walrusinacanoe.com/web-development/847</link>
		<comments>http://walrusinacanoe.com/web-development/847#comments</comments>
		<pubDate>Fri, 16 Dec 2011 01:10:37 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=847</guid>
		<description><![CDATA[In their December 2011 changes to the Javascript SDK, Facebook has caused certain websites using the AS3 API to break. The issue arises with the login pop-up window no longer appearing when Facebook.login is called. The problem lies within the perms parameter used in Facebook.login. You must now use scope instead. var opts:Object = {scope:"publish_stream, user_photos, [...]]]></description>
			<content:encoded><![CDATA[<p>In their December 2011 changes to the Javascript SDK, Facebook has caused certain websites using the AS3 API to break. The issue arises with the login pop-up window no longer appearing when <strong>Facebook.login</strong> is called.</p>
<p>The problem lies within the <strong>perms</strong> parameter used in <strong>Facebook.login</strong>. You must now use <strong>scope</strong> instead.</p>
<pre>var opts:Object = {scope:"publish_stream, user_photos, create_event"};
Facebook.login(onResult, opts); </pre>
<p>This solve was found at the <a href="http://groups.google.com/group/facebook-actionscript-api?hl=en">facebook-actionscript-api</a> Google Code group. Thanks guys!</p>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/web-development/847/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to send URL Variables into a Facebook App / Tab</title>
		<link>http://walrusinacanoe.com/garbage/844</link>
		<comments>http://walrusinacanoe.com/garbage/844#comments</comments>
		<pubDate>Wed, 14 Dec 2011 04:41:31 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Garbage]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=844</guid>
		<description><![CDATA[If you need to send URL variables into a Facebook App (within a Page tab), doing so is surprisingly easy. Firstly, know that the JSON-based object you are interacting with is called signed_request. It is used primarily for internal communication between Facebook and your app. However, Facebook does give you one app_data variable to use [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to send URL variables into a Facebook App (within a Page tab), doing so is surprisingly easy.</p>
<p>Firstly, know that the JSON-based object you are interacting with is called <strong><a href="https://developers.facebook.com/docs/authentication/signed_request/" target="_blank">signed_request</a></strong>. It is used primarily for internal communication between Facebook and your app. However, Facebook does give you one <strong>app_data</strong> variable to use for your own variables. To send a variable to your Facebook app, all you need to do is set a value to <strong>app_data</strong> in your URL request and Facebook will handle communicating that data to your app&#8217;s iFrame.</p>
<p>URL example (sending data):</p>
<p>https://www.facebook.com/pages/Walrus-In-A-Canoe/?sk=app_0000000000<strong>&#038;app_data=APP_DATA_CONTENT</strong></p>
<p>For an example of retrieving your <strong>app_data</strong>, I have found some nifty code from <strong>fbadurbin</strong> on <a href="http://forum.developers.facebook.net/viewtopic.php?id=47141" target="_blank">this thread</a> which I have pasted below.</p>
<pre>$signed_request = $_REQUEST['signed_request']; // Get the POST signed_request variable.

 if(isset($signed_request)) // Determine if signed_request is blank.
 {
 $pre = explode('.',$signed_request); // Get the part of the signed_request we need.
 $json = base64_decode($pre['1']); // Base64 Decode signed_request making it JSON.
 $obj = json_decode($json,true); // Split the JSON into arrays.
 $page = $obj['page']; // Get the page array. It has a sub array.

 echo("Your App Data: " . $obj['app_data']);
 }
 else
 {
 die('No signed request avaliable.'); //If there is no signed_request, stop processing script.
 }</pre>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/garbage/844/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to connect Facebook Apps to Facebook Pages with no View App Profile button</title>
		<link>http://walrusinacanoe.com/web-development/841</link>
		<comments>http://walrusinacanoe.com/web-development/841#comments</comments>
		<pubDate>Wed, 14 Dec 2011 01:32:46 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=841</guid>
		<description><![CDATA[As of late 2011, Facebook has begun to phase out the View App Profile button you may have used to connect Facebook Apps to fan pages. The replacement technique is rather strange. You need to type a specific URL into your browser and fill out the following: https://www.facebook.com/dialog/pagetab?app_id=APP_ID&#38;redirect_uri=TAB_SOURCE_URL If you provide the correct parameters, you [...]]]></description>
			<content:encoded><![CDATA[<p>As of late 2011, Facebook has begun to phase out the <strong>View App Profile</strong> button you may have used to connect Facebook Apps to fan pages.</p>
<p>The replacement technique is rather strange. You need to type a specific URL into your browser and fill out the following:</p>
<pre>https://www.facebook.com/dialog/pagetab?app_id=<strong>APP_ID</strong>&amp;redirect_uri=<strong>TAB_SOURCE_URL</strong></pre>
<p>If you provide the correct parameters, you will receive the following dialogue box:</p>
<p><a href="http://walrusinacanoe.com/wp-content/uploads/2011/12/pageTab.png" rel="shadowbox[sbpost-841];player=img;" title="pageTab"><img class="alignnone size-full wp-image-842" title="pageTab" src="http://walrusinacanoe.com/wp-content/uploads/2011/12/pageTab.png" alt="" width="502" height="201" /></a></p>
<p>You can read more at Facebook&#8217;s official documentation below.<br />
<a href="https://developers.facebook.com/docs/reference/dialogs/add_to_page/" target="_blank">https://developers.facebook.com/docs/reference/dialogs/add_to_page/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/web-development/841/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Comments Moderation &amp; WordPress</title>
		<link>http://walrusinacanoe.com/web-development/807</link>
		<comments>http://walrusinacanoe.com/web-development/807#comments</comments>
		<pubDate>Mon, 08 Aug 2011 21:14:07 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=807</guid>
		<description><![CDATA[If you are having trouble with Facebook Comments moderation through WordPress, this may be your solution. The first thing to always check with Facebook is that you are using their most recent protocols. Facebook is notoriously changing how you must integrate it into your website, to be sure to check this link regularly: https://developers.facebook.com/docs/guides/web/ And [...]]]></description>
			<content:encoded><![CDATA[<p>If you are having trouble with Facebook Comments moderation through WordPress, this may be your solution.</p>
<p>The first thing to always check with Facebook is that you are using their most recent protocols. Facebook is notoriously changing how you must integrate it into your website, to be sure to check this link regularly: <a href="https://developers.facebook.com/docs/guides/web/" target="_blank">https://developers.facebook.com/docs/guides/web/</a></p>
<p>And the latest code (August 2011) is below. Place this below the opening &lt;body&gt; tag in your HTML document.</p>
<p><strong><code>&lt;div id="fb-root"&gt;&lt;/div&gt;<br /> &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;<br /> &lt;script&gt;<br /> FB.init({<br /> appId:'YOUR_<code>APPLICATION</code>_ID', cookie:true,<br /> status:true, xfbml:true<br /> });<br /> &lt;/script&gt;</code></strong></p>
<p>In order to have comment moderation, you&#8217;ll need to do a few things:</p>
<p>1) Set up an App and enable moderator access to whoever needs to have it.<br /> 2) Add relevant &lt;meta&gt; property tags to the &lt;head&gt; portion of your website.<br /> 3) Match the comment plugin&#8217;s href attribute to the current permalink URL.</p>
<p>There are two ways to do the <strong>&lt;meta&gt;</strong> property tags. You can either enable a specific user to have moderator access or give access to all moderators within the App. Going with the App method is more ideal because it will connect to your App&#8217;s dashboard in <a href="http://www.facebook.com/developers/" target="_blank">www.facebook.com/developers/</a>. A direct link to managing comments via the App interface would be <strong>https://developers.facebook.com/apps/{YOUR_APPLICATION_ID}/plugins?view=queue</strong>. This method&#8217;s code is below:<br /> <strong><code><br /> &lt;meta property="fb:app_id" content="{YOUR_APPLICATION_ID}"&gt;</code></strong></p>
<p>You can always read more about the comments plugin by going to <a href="https://developers.facebook.com/docs/reference/plugins/comments/" target="_blank">https://developers.facebook.com/docs/reference/plugins/comments/</a> although their documentation is typically confusing and subpar.</p>
<p>One way WordPress can make moderation break is due to the fact that page GUID&#8217;s may be different from your permalink URL&#8217;s. If you put a $post-&gt;GUID into your &lt;fb:comments href=&#8221;"&gt;, moderation will NOT work. The comments URL and the page URL must be identical. To get the page URL of a post, you can use <a href="http://codex.wordpress.org/Function_Reference/get_permalink" target="_blank">get_permalink()</a>. By feeding the permalink into your comments plugin and doing the other steps above, you should be in good shape! Just be aware that by changing permalink structure or changing URL&#8217;s you will lose all of your comments.</p>
<p>(this solution was discovered via <a href="http://forum.developers.facebook.net/viewtopic.php?id=102099" target="_blank">http://forum.developers.facebook.net/viewtopic.php?id=102099</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/web-development/807/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; How to Limit Number of Search Results</title>
		<link>http://walrusinacanoe.com/web-development/775</link>
		<comments>http://walrusinacanoe.com/web-development/775#comments</comments>
		<pubDate>Wed, 23 Feb 2011 20:51:56 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=775</guid>
		<description><![CDATA[I had a heck of a time looking for a solution to this very common problem. Fortunately, the solution is quite easy! WordPress, by default, limits your search results to 10 per page. When doing a normal query, you&#8217;d use get_posts(numberposts=99) to determine how many results appear from your query. You use a different parameter, [...]]]></description>
			<content:encoded><![CDATA[<p>I had a heck of a time looking for a solution to this very common problem. Fortunately, the solution is quite easy!</p>
<p>WordPress, by default, limits your search results to 10 per page. When doing a normal query, you&#8217;d use <strong>get_posts(numberposts=99) </strong> to determine how many results appear from your query. You use a different parameter, <strong>showposts</strong>, for search pages.</p>
<p>So how do you modify the query to show what you want? Simply take the current <strong>$query_string</strong> (generated by WordPress&#8217;s header functions) and modify its showposts. Make sure to do this before <a href="http://codex.wordpress.org/The_Loop" target="_blank">the loop</a> and you&#8217;re all good! All the code you need is below.</p>
<p><strong> </strong></p>
<p>[php]query_posts($query_string . &#8216;&amp;showposts=12&#8242;);[/php]</p>
<p><strong> </strong></p>
<p><strong><br />
 </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/web-development/775/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Pagination 404&#8242;s with Custom Post Types</title>
		<link>http://walrusinacanoe.com/web-development/742</link>
		<comments>http://walrusinacanoe.com/web-development/742#comments</comments>
		<pubDate>Mon, 31 Jan 2011 20:44:19 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=742</guid>
		<description><![CDATA[If you&#8217;re using custom post types in WordPress and your category pages are throwing 404&#8242;s every time you try to paginate, you may be running into a bug with the WordPress core (as of version 3.0.4). There is a solution &#8212; but first make sure that you have: 1) Checked your permalink settings to make [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using custom post types in WordPress and your category pages are throwing 404&#8242;s every time you try to paginate, you may be running into a bug with the WordPress core (as of version 3.0.4).</p>
<p>There is a solution &#8212; but first make sure that you have:</p>
<p>1) Checked your permalink settings to make sure there is nothing wonky. Try the recommended presets in the permalinks settings page and see if you are still having a problem.</p>
<p>2) View the same category page on the default skin. This will rule out issues that may lie within your specific code.</p>
<p>3) Cried a bit. Just kidding&#8230; kinda (I suffered for days before coming to a resolution courtesy of <a href="http://wordpress.org/support/profile/t31os_" target="_blank">Mark / t31os</a>)</p>
<p>If you&#8217;re still getting 404&#8242;s&#8230; here&#8217;s the code that saved my life. Replace<code> your_custom_type</code> with your custom type (surprise). You can put however many custom types as you&#8217;d like. Do this in your functions.php.</p>
<pre><code>[php]add_action( 'parse_query','changept' );
function changept() {
	if( is_category() &amp;&amp; !is_admin() )
		set_query_var( 'post_type', array( 'post', 'your_custom_type' ) );
	return;
}[/php]

</code></pre>
<p>Best of luck! You can view my entire sob story / thread <a href="http://wordpress.org/support/topic/custom-types-category-pagination-404?replies=16#post-1916162" target="_blank">here</a> (and give Mark all of your money if possible).</p>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/web-development/742/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Dynamically Create WordPress Posts</title>
		<link>http://walrusinacanoe.com/web-development/737</link>
		<comments>http://walrusinacanoe.com/web-development/737#comments</comments>
		<pubDate>Mon, 31 Jan 2011 20:29:13 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=737</guid>
		<description><![CDATA[If you&#8217;ve ever had a need to dynamically create (or update) WordPress posts, there&#8217;s a simple way to do so.  Use wp_insert_post. // Create post object $my_post = array( 'post_title' =&#62; 'My post', 'post_content' =&#62; 'This is my post.', 'post_status' =&#62; 'publish', 'post_author' =&#62; 1, 'post_category' =&#62; array(8,39) ); // Insert the post into the [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever had a need to dynamically create (or update) WordPress posts, there&#8217;s a simple way to do so.  Use <a href="http://codex.wordpress.org/Function_Reference/wp_insert_post" target="_blank">wp_insert_post</a>.</p>
<pre>// Create post object
  $my_post = array(
     'post_title' =&gt; 'My post',
     'post_content' =&gt; 'This is my post.',
     'post_status' =&gt; 'publish',
     'post_author' =&gt; 1,
     'post_category' =&gt; array(8,39)
  );

// Insert the post into the database
  wp_insert_post( $my_post );
</pre>
<p><br class="spacer_" /></p>
<p>If you set the ID property of your post array to a number  (i.e. $my_post['ID']  =&gt; 15), it will update an existing post rather than adding a new one. Leaving ID blank will create a new post. You cannot force a new post to acquire a specific ID.</p>
<p>For any further details, visit <a href="http://codex.wordpress.org/Function_Reference/wp_insert_post" target="_blank">wp_insert_post</a> in the WordPress Codex. For whatever reason, this documentation is not easy to find on Google, so I hope this simple article will make it easier for everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/web-development/737/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: Automatically Generate Thumbnails from Your Post Images</title>
		<link>http://walrusinacanoe.com/web-development/715</link>
		<comments>http://walrusinacanoe.com/web-development/715#comments</comments>
		<pubDate>Fri, 28 Jan 2011 04:06:38 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=715</guid>
		<description><![CDATA[WordPress automatically generates thumbnails for every image you upload. However, it does not make these thumbnails obviously accessible through code, and people have built a number of plugins to allow you to work around this. Grabbing thumbnails and resized images is essential to creating galleries or grids of similar images. Knowing a few tricks about [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress automatically generates thumbnails for every image you upload. However, it does not make these thumbnails obviously accessible through code, and people have built a number of plugins to allow you to work around this.</p>
<p>Grabbing thumbnails and resized images is essential to creating galleries or grids of similar images. Knowing a few tricks about WordPress will help you do this more efficiently and without causing conflicts with other sections of your site.</p>
<p>1) Custom thumbnail sizes. You can have WordPress generate any number of thumbnails from every image you upload. For example, put the following code in <strong>functions.php</strong>.</p>
<p><strong>if ( function_exists( &#8216;add_image_size&#8217; ) ) {</strong></p>
<p><strong>add_image_size( &#8216;press-thumb&#8217;, 226, 292, true ); </strong><br />
<strong> add_image_size( &#8216;news-thumb-small&#8217;, 63, 42, true ); </strong><br />
<strong> add_image_size( &#8216;news-thumb-medium&#8217;, 228, 146, true ); </strong><br />
<strong> add_image_size( &#8216;news-thumb-large&#8217;, 450, 230, true );</strong><br />
<strong> add_image_size( &#8216;news-thumb-xl&#8217;, 640, 390, true ); </strong></p>
<p><strong> }</strong></p>
<p>Note that creating a new image size requires WordPress to regenerate your thumbnails. Otherwise you will have odd sizes scaled to whatever you&#8217;ve recently specified. There is a handy plugin that can help you out with that.</p>
<p><strong>Regenerate Thumbnails:</strong> <a href="http://wordpress.org/extend/plugins/regenerate-thumbnails/" target="_blank">http://wordpress.org/extend/plugins/regenerate-thumbnails/</a></p>
<p>2. <strong>wp_get_attachment_link</strong></p>
<p>Every time you upload or insert images into a post, they will appear in the post&#8217;s attachments (or Gallery tab in the Upload/Insert pop-up). You can grab all of these images and select a thumbnail size using a combination of <a href="http://codex.wordpress.org/Template_Tags/get_posts"><strong>get_posts</strong></a> and <a href="http://codex.wordpress.org/Template_Tags/wp_get_attachment_link" target="_blank"><strong>wp_get_attachment_link</strong></a>.</p>
<p><strong>$args = array(</strong><br />
<strong> &#8216;post_type&#8217; =&gt; &#8216;attachment&#8217;,</strong><br />
<strong> &#8216;numberposts&#8217; =&gt; -1,</strong><br />
<strong> &#8216;post_status&#8217; =&gt; NULL,</strong><br />
<strong> &#8216;post_parent&#8217; =&gt; $post-&gt;ID,</strong><br />
<strong> &#8216;exclude&#8217; =&gt; get_post_thumbnail_id()</strong><br />
<strong> );</strong></p>
<p><strong> $attachments = get_posts($args);</strong><br />
<strong> if ($attachments) {</strong><br />
<strong> foreach ($attachments as $attachment) {</strong><br />
<strong> echo wp_get_attachment_link($attachment-&gt;ID, &#8216;media-thumb&#8217;);</strong><br />
<strong> }</strong><br />
<strong> }</strong></p>
<p>In this code we simply echo&#8217;d the attachment, but by storing it in a variable instead you can just imagine how it&#8217;d be simple to reorganize this into a gallery or image grid.</p>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/web-development/715/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Preventing Duplicate Facebook Comments in WordPress or Other Dynamic Pages</title>
		<link>http://walrusinacanoe.com/web-development/703</link>
		<comments>http://walrusinacanoe.com/web-development/703#comments</comments>
		<pubDate>Wed, 19 Jan 2011 23:55:44 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://walrusinacanoe.com/?p=703</guid>
		<description><![CDATA[Have you tried using Facebook Comments on your WordPress or dynamic website only to find that every comment is the same? The solution is simple. In your embed code, make sure that the XID is set to a unique ID, blank, or &#8220;&#8221;. When this is filled in, Facebook uses it to identify your specific [...]]]></description>
			<content:encoded><![CDATA[<p>Have you tried using Facebook Comments on your WordPress or dynamic website only to find that every comment is the same?</p>
<p>The solution is simple. In your embed code, make sure that the XID is set to a unique ID, blank, or &#8220;&#8221;. When this is filled in, Facebook uses it to identify your specific comment box in case you want to place it in multiple locations and maintain the same comments. If you leave it blank, Facebook will use the URL of the page as the box&#8217;s unique identifier, meaning that every page will get a different comment box.</p>
<p><strong>&lt;div id=”fb-root”&gt;&lt;/div&gt;&lt;script  src=”http://connect.facebook.net/en_US/all.js#appId=0000000000000&amp;amp;amp;xfbml=1″&gt;&lt;/script&gt;<br />
 &lt;fb:comments xid=”&#8221; numposts=”10″ width=”640″ publish_feed=”true”&gt;&lt;/fb:comments&gt;</strong></p>
<p>
<script src="http://connect.facebook.net/en_US/all.js#appId=0000000000000&amp;amp;amp;xfbml=1"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://walrusinacanoe.com/web-development/703/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

