<?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>A Dash of Web and Mobile Development &#187; Web Development</title>
	<atom:link href="http://blog.iangclifton.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.iangclifton.com</link>
	<description>Discussing trends and technologies in web and mobile development</description>
	<lastBuildDate>Fri, 03 Feb 2012 05:15:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Setting An Image For Facebook Link Sharing</title>
		<link>http://blog.iangclifton.com/2009/12/31/setting-an-image-for-facebook-link-sharing/</link>
		<comments>http://blog.iangclifton.com/2009/12/31/setting-an-image-for-facebook-link-sharing/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 10:02:03 +0000</pubDate>
		<dc:creator>Ian G. Clifton</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://blog.iangclifton.com/?p=82</guid>
		<description><![CDATA[When you attach a link to share on Facebook, you&#8217;re typically presented with up to nine thumbnails pulled from img tags on that site. In many cases, one of these thumbnails will work fine, but sometimes the images aren&#8217;t ideal &#8230; <a href="http://blog.iangclifton.com/2009/12/31/setting-an-image-for-facebook-link-sharing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When you attach a link to share on Facebook, you&#8217;re typically presented with up to nine thumbnails pulled from img tags on that site.  In many cases, one of these thumbnails will work fine, but sometimes the images aren&#8217;t ideal or the site owner wants a specific image to show up.  Fortunately, there&#8217;s a simple tag you can add to solve this problem.<span id="more-82"></span></p>
<p><code>&lt;link rel="image_src" href="http://example.com/logo.png" /&gt;</code></p>
<p>Just put that tag in the head portion of your HTML, and the image specified (in this case &#8220;logo.png&#8221;) will be the new default (and only) choice for Facebook sharing.  There are a few things that you should know though.  First, Facebook caches these images, so you may not see the immediate change.  I&#8217;m not sure exactly how long the cache is, but I saw changes in under 24 hours on a site I was working on.  The other really big thing to know about is that Facebook has specific rules for the image:</p>
<blockquote><p>The thumbnail&#8217;s width or height must be at least 50 pixels, and cannot exceed 130&#215;110 pixels. The ratio of both height divided by width and width divided by height (w / h, h / w) cannot exceed 3.0. For example, an image of 126&#215;39 pixels will not be displayed, as the ratio of width divided by height is greater than 3.0 (126 / 39 = 3.23). Images will be resized proportionally. </p></blockquote>
<p>That&#8217;s per the <a href="http://wiki.developers.facebook.com/index.php/Facebook_Share/Specifying_Meta_Tags">developer wiki</a>.  Although some other sites also make use of the tag and specified image, your image must meet these requirements for it to work with Facebook sharing.  If your image does not meet these requirements, it will not show up at all, and no other options will show up either.  People will not be able to select any thumbnail when sharing your site.</p>
<p>It&#8217;s also worth noting that Facebook makes use of the traditional meta tags (title and description), so you should be sure to include those on your pages.  I know many people have gotten out of the habit of adding them in because they were most commonly used with search indexing, but most search engines use context from your actual content instead of those tags.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.iangclifton.com/2009/12/31/setting-an-image-for-facebook-link-sharing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using The Delicious API With Yahoo Accounts</title>
		<link>http://blog.iangclifton.com/2009/10/27/using-the-delicious-api-with-yahoo-accounts/</link>
		<comments>http://blog.iangclifton.com/2009/10/27/using-the-delicious-api-with-yahoo-accounts/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 06:56:54 +0000</pubDate>
		<dc:creator>Ian G. Clifton</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[delicious]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://blog.iangclifton.com/?p=70</guid>
		<description><![CDATA[On October 19th, Delicious announced that they began support of Yahoo IDs. Unfortunately, that blog post did not mention how this affects using the Delicious API. At the time of writing this, there is no mention at all in the &#8230; <a href="http://blog.iangclifton.com/2009/10/27/using-the-delicious-api-with-yahoo-accounts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On October 19th, Delicious announced that they began support of Yahoo IDs.  Unfortunately, <a href="http://blog.delicious.com/blog/2009/10/delicious-is-now-about-you-too.html">that blog post</a> did not mention how this affects using the Delicious API.  At the time of writing this, there is no mention at all in the <a href="http://delicious.com/help/api">Delicious API docs</a> either.<span id="more-70"></span></p>
<p>I am working on integrating Delicious within an existing application, so I decided to create a test account.  That&#8217;s when I first ran into issues with the Yahoo integration because I was required to go through the ridiculous Yahoo registration process instead of the previous Delicious sign up.  After trying a million different usernames and getting the initial CAPTCHA wrong, I had an account and my testing could begin.</p>
<p>My script was not successfully adding a bookmark, so I tested it directly in the browser and realized I couldn&#8217;t log in.  I tried the username and the username@yahoo.com, but neither worked.  I was able to sign in via Yahoo, so I know I was using the right password.  I tried my old Delicious account from 2006 that I never associated with Yahoo, and it worked fine.</p>
<p>I ran into a <a href="http://support.delicious.com/forum/comments.php?DiscussionID=3430&#038;page=1">thread of people having the same issue</a>, and then I stumbled across a <a href="http://developer.yahoo.net/forum/index.php?showtopic=3065">Yahoo developer forum thread</a> that clued me in on the comments that appeared in the <a href="http://blog.delicious.com/blog/2009/10/delicious-is-now-about-you-too.html">blog post</a> about the integration.  A comment from &#8220;Chris&#8221; revealed a bit more:</p>
<blockquote><p>Apologies. It looks like our help pages didn’t get updated.<br />
For accounts created with a yahoo ID, you can use pretty much the same api’s except:<br />
1) You need to use OAuth, as per http://developer.yahoo.com/oauth/, with Delicious as a scope<br />
2) use /v2 as the path rather than /v1<br />
3) You can use http rather than https</p></blockquote>
<p>The problem with this (well, <em>one</em> problem with this) is that it requires two different ways of handling user authentication for the same service.  There is currently no indication of best practices (e.g., should the user self-identify as being a standard Delicious account holder vs. a Yahoo account user or do we check submitted IDs to determine which method should be used to access the API?).  There is also no indication of whether developers should expect to support two types of IDs forever.</p>
<p>The biggest reason this is so frustrating is because an API change so significant should be planned months in advance with plenty of forewarning for all developers.  Instead, the effect to the API isn&#8217;t even mentioned in announcement blog post nor is anything posted in the API docs.  Disappointed wouldn&#8217;t accurately describe how I felt when I stumbled into these issues&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.iangclifton.com/2009/10/27/using-the-delicious-api-with-yahoo-accounts/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

