<?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>undefined-type &#187; social share</title>
	<atom:link href="http://undefined-type.com/tag/social-share/feed/" rel="self" type="application/rss+xml" />
	<link>http://undefined-type.com</link>
	<description>Flex,Flash &#38; AIR</description>
	<lastBuildDate>Wed, 18 Nov 2009 09:48:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Social Network Links</title>
		<link>http://undefined-type.com/2009/04/social-network-links/</link>
		<comments>http://undefined-type.com/2009/04/social-network-links/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 16:54:10 +0000</pubDate>
		<dc:creator>Bäcker</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[social]]></category>
		<category><![CDATA[social share]]></category>

		<guid isPermaLink="false">http://undefined-type.com/?p=524</guid>
		<description><![CDATA[Wanted to post some Social media links on a site that I&#8217;m building but couldn&#8217;t find any good summary information, well, so here we go.

 
 
Facebook
http://www.facebook.com/sharer.php?u=&#8217;+encodeURIComponent(u)+&#8217;&#38;t=&#8217;+encodeURIComponent(t) 
u = url to site
t = title of link

 
 
Delicious
&#8220;http://delicious.com/save?url=&#8221;+u+&#8221;&#38;title=&#8221;+t;
u = url to site
t = title of link
m = metadata for link

 
 
MySpace
&#8220;http://www.myspace.com/Modules/PostTo/Pages/?u=&#8221;+u+&#8221;&#38;sa=2&#38;t=&#8221;+t+&#8221;&#38;c=&#8221; 
u = url to site
t = title of link

 [...]]]></description>
			<content:encoded><![CDATA[<p>Wanted to post some Social media links on a site that I&#8217;m building but couldn&#8217;t find any good summary information, well, so here we go.</p>
<p><a href="http://undefined-type.com/wp-content/uploads/2009/04/share_facebook.jpg" rel="lightbox[524]"><img class="alignleft size-full wp-image-535" title="share_facebook" src="http://undefined-type.com/wp-content/uploads/2009/04/share_facebook.jpg" alt="share_facebook" width="100" height="38" /></a></p>
<p> </p>
<p><strong> <br />
Facebook</strong></p>
<p>http://www.facebook.com/sharer.php?u=&#8217;+encodeURIComponent(u)+&#8217;&amp;t=&#8217;+encodeURIComponent(t) </p>
<p>u = url to site<br />
t = title of link</p>
<p><strong><a href="http://undefined-type.com/wp-content/uploads/2009/04/share_delicious.jpg" rel="lightbox[524]"><img class="alignleft size-full wp-image-536" title="share_delicious" src="http://undefined-type.com/wp-content/uploads/2009/04/share_delicious.jpg" alt="share_delicious" width="80" height="24" /></a></strong></p>
<p><strong> </strong></p>
<p> </p>
<p><strong>Delicious</strong><br />
&#8220;http://delicious.com/save?url=&#8221;+u+&#8221;&amp;title=&#8221;+t;<br />
u = url to site<br />
t = title of link<br />
m = metadata for link</p>
<p><strong><a href="http://undefined-type.com/wp-content/uploads/2009/04/share_myspace.jpg" rel="lightbox[524]"><img class="alignleft size-full wp-image-537" title="share_myspace" src="http://undefined-type.com/wp-content/uploads/2009/04/share_myspace.jpg" alt="share_myspace" width="86" height="29" /></a></strong></p>
<p><strong> </strong></p>
<p> </p>
<p><strong>MySpace</strong><br />
&#8220;http://www.myspace.com/Modules/PostTo/Pages/?u=&#8221;+u+&#8221;&amp;sa=2&amp;t=&#8221;+t+&#8221;&amp;c=&#8221; <br />
u = url to site<br />
t = title of link</p>
<p><strong><a href="http://undefined-type.com/wp-content/uploads/2009/04/share_digg.jpg" rel="lightbox[524]"><img class="alignleft size-full wp-image-538" title="share_digg" src="http://undefined-type.com/wp-content/uploads/2009/04/share_digg.jpg" alt="share_digg" width="49" height="32" /></a></strong></p>
<p><strong> </strong></p>
<p> </p>
<p><strong>Digg</strong><br />
&#8220;http://digg.com/submit?url=&#8221;+u+&#8221;&amp;title=&#8221;+t+&#8221;&amp;bodytext=&#8221;; <br />
u = url to site<br />
t = title of link</p>
<p><strong><a href="http://undefined-type.com/wp-content/uploads/2009/04/share_twitter.jpg" rel="lightbox[524]"><img class="alignleft size-full wp-image-539" title="share_twitter" src="http://undefined-type.com/wp-content/uploads/2009/04/share_twitter.jpg" alt="share_twitter" width="88" height="30" /></a></strong></p>
<p><strong> </strong></p>
<p> </p>
<p><strong>Twitter</strong><br />
&#8220;http://twitter.com/home/?status=&#8221;+t+&#8221; &#8220;+u<br />
u = url to site<br />
t = title of link</p>
<p><strong><a href="http://undefined-type.com/wp-content/uploads/2009/04/share_stumble.jpg" rel="lightbox[524]"><img class="alignleft size-full wp-image-540" title="share_stumble" src="http://undefined-type.com/wp-content/uploads/2009/04/share_stumble.jpg" alt="share_stumble" width="32" height="33" /></a></strong></p>
<p><strong> </strong></p>
<p> </p>
<p><strong> <br />
Stumbleupon</strong><br />
&#8220;http://stumbleupon.com/submit?url=&#8221;+u+&#8221;&amp;title=&#8221;+t <br />
u = url to site<br />
t = title of link</p>
<p>Createad a simple js file to use for html pages or why not Flash applications. Send the types; <em>facebook,delicious,myspace,digg,twitter or stumbleupon. </em><br />
<strong> socialShare(type, link, title);</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> socialShare<span style="color: #009900;">&#40;</span>type<span style="color: #339933;">,</span>link<span style="color: #339933;">,</span>title<span style="color: #339933;">,</span>meta<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> shareURL<span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> u <span style="color: #339933;">=</span> encodeURIComponent<span style="color: #009900;">&#40;</span>link<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> t <span style="color: #339933;">=</span> encodeURIComponent<span style="color: #009900;">&#40;</span>title<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> m <span style="color: #339933;">=</span> encodeURIComponent<span style="color: #009900;">&#40;</span>meta<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>m<span style="color: #009900;">&#41;</span> m <span style="color: #339933;">=</span> t<span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> w <span style="color: #339933;">=</span> <span style="color: #CC0000;">626</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> h <span style="color: #339933;">=</span> <span style="color: #CC0000;">436</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">switch</span><span style="color: #009900;">&#40;</span>type<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">&quot;facebook&quot;</span> <span style="color: #339933;">:</span>
			shareURL <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://www.facebook.com/sharer.php?u=&quot;</span><span style="color: #339933;">+</span>u<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;amp;t=&quot;</span><span style="color: #339933;">+</span>t<span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">&quot;delicious&quot;</span> <span style="color: #339933;">:</span>
			shareURL <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://delicious.com/save?url=&quot;</span><span style="color: #339933;">+</span>link<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;amp;title=&quot;</span><span style="color: #339933;">+</span>title<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;amp;q=&quot;</span><span style="color: #339933;">+</span>title<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;amp;meta=&quot;</span><span style="color: #339933;">+</span>encodeURIComponent<span style="color: #009900;">&#40;</span>m<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">&quot;myspace&quot;</span> <span style="color: #339933;">:</span>
			shareURL <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://www.myspace.com/Modules/PostTo/Pages/?u=&quot;</span><span style="color: #339933;">+</span>link<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;amp;sa=2&amp;amp;t=&quot;</span><span style="color: #339933;">+</span>title<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;amp;c=&quot;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">&quot;digg&quot;</span> <span style="color: #339933;">:</span>
			shareURL <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://digg.com/submit?url=&quot;</span><span style="color: #339933;">+</span>link<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;amp;title=&quot;</span><span style="color: #339933;">+</span>title<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;amp;bodytext=&quot;</span><span style="color: #339933;">;</span>
			w <span style="color: #339933;">=</span> <span style="color: #CC0000;">730</span><span style="color: #339933;">;</span>
			h <span style="color: #339933;">=</span> <span style="color: #CC0000;">550</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">&quot;twitter&quot;</span> <span style="color: #339933;">:</span>
			w <span style="color: #339933;">=</span> <span style="color: #CC0000;">760</span><span style="color: #339933;">;</span>
			shareURL <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://twitter.com/home/?status=&quot;</span><span style="color: #339933;">+</span>title<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot; &quot;</span><span style="color: #339933;">+</span>link
			<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">&quot;stumbleupon&quot;</span> <span style="color: #339933;">:</span>
			shareURL <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;http://stumbleupon.com/submit?url=&quot;</span><span style="color: #339933;">+</span>link<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;amp;title=&quot;</span><span style="color: #339933;">+</span>title
			<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	window.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>shareURL<span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;sharer&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;toolbar=0,status=0,scrollbars=yes,resizable=yes,width=&quot;</span><span style="color: #339933;">+</span>w<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;,height=&quot;</span><span style="color: #339933;">+</span>h<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>return <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><a href="http://undefined-type.com/wp-content/uploads/2009/04/socialshare.js">Download Social Share javascript</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://undefined-type.com/2009/04/social-network-links/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

