<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developer.myspace.com/community/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tutorials and Tips</title><link>http://developer.myspace.com/community/forums/47.aspx</link><description>Figured out something really useful?  Share it with the community.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20910.1126)</generator><item><title>Example: Flash/Flex 2- AS3</title><link>http://developer.myspace.com/community/forums/thread/1854.aspx</link><pubDate>Mon, 25 Feb 2008 07:10:26 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:1854</guid><dc:creator>viphak@myspace</dc:creator><slash:comments>8</slash:comments><comments>http://developer.myspace.com/community/forums/thread/1854.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=1854</wfw:commentRss><description>&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;mx:Application xmlns:mx=&amp;quot;http://www.adobe.com/2006/mxml&amp;quot; layout=&amp;quot;absolute&amp;quot; creationComplete=&amp;quot;init();&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:HTTPService &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id=&amp;quot;viewerProfileRequest&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result=&amp;quot;viewerProfileRequest_OnResult(event)&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fault=&amp;quot;viewerProfileRequest_OnFault(event)&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useProxy=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:HTTPService &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id=&amp;quot;friendsRequest&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result=&amp;quot;friendsRequest_OnResult(event)&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fault=&amp;quot;friendsRequest_OnFault(event)&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useProxy=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Panel title=&amp;quot;MySpace Flex App&amp;quot; width=&amp;quot;441&amp;quot; height=&amp;quot;326&amp;quot; paddingLeft=&amp;quot;10&amp;quot; paddingRight=&amp;quot;10&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text=&amp;quot;&amp;quot; fontWeight=&amp;quot;bold&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:TabBar dataProvider=&amp;quot;mainViewStack&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:TabBar&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:ViewStack width=&amp;quot;400&amp;quot; height=&amp;quot;150&amp;quot; id=&amp;quot;mainViewStack&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Canvas label=&amp;quot;Output&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;150&amp;quot; id=&amp;quot;outputView&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:TextArea x=&amp;quot;0&amp;quot; y=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot; height=&amp;quot;100%&amp;quot; id=&amp;quot;outputTextArea&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Canvas&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Canvas label=&amp;quot;Profile&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;150&amp;quot; id=&amp;quot;profileView&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Panel x=&amp;quot;0&amp;quot; y=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot; height=&amp;quot;100%&amp;quot; layout=&amp;quot;absolute&amp;quot; title=&amp;quot;Viewer Profile&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Image x=&amp;quot;10&amp;quot; y=&amp;quot;10&amp;quot; width=&amp;quot;92&amp;quot; height=&amp;quot;90&amp;quot; id=&amp;quot;profileImage&amp;quot; source=&amp;quot;{profileXml.apiNS::imageuri}&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label x=&amp;quot;121&amp;quot; y=&amp;quot;10&amp;quot; text=&amp;quot;{profileXml.apiNS::userid}&amp;quot; id=&amp;quot;userIdLabel&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label x=&amp;quot;121&amp;quot; y=&amp;quot;36&amp;quot; text=&amp;quot;{profileXml.apiNS::displayname}&amp;quot; id=&amp;quot;displayNameLabel&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label x=&amp;quot;121&amp;quot; y=&amp;quot;62&amp;quot; text=&amp;quot;{profileXml.apiNS::weburi}&amp;quot; id=&amp;quot;webUriLabel&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Panel&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Canvas&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Canvas label=&amp;quot;My Friends&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;150&amp;quot; id=&amp;quot;friendsView&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:DataGrid x=&amp;quot;0&amp;quot; y=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot; height=&amp;quot;100%&amp;quot; dataProvider=&amp;quot;{userXml}&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:columns&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:DataGridColumn headerText=&amp;quot;userid&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:itemRenderer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Component&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text=&amp;quot;{data.*::userid}&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Component&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:itemRenderer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:DataGridColumn&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:DataGridColumn headerText=&amp;quot;displayname&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:itemRenderer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Component&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Label text=&amp;quot;{data.*::displayname}&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Component&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:itemRenderer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:DataGridColumn&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:DataGridColumn headerText=&amp;quot;imageuri&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:itemRenderer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Component&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Image source=&amp;quot;{data.*::imageuri}&amp;quot; width=&amp;quot;20&amp;quot; height=&amp;quot;20&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Component&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:itemRenderer&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:DataGridColumn&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:columns&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:DataGrid&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Canvas&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:ViewStack&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:TextArea x=&amp;quot;20&amp;quot; y=&amp;quot;185&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;20&amp;quot; visible=&amp;quot;true&amp;quot; id=&amp;quot;osTokenTextArea&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:HBox width=&amp;quot;100%&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:LinkButton label=&amp;quot;Get Viewer Profile&amp;quot; id=&amp;quot;profileLinkButton&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:LinkButton label=&amp;quot;Get Friends&amp;quot; id=&amp;quot;friendsLinkButton&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:LinkButton label=&amp;quot;Get Info&amp;quot; id=&amp;quot;urlLinkButton&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:LinkButton label=&amp;quot;Clear&amp;quot; id=&amp;quot;clearLinkButton&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:HBox&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Panel&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:Script&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;![CDATA[&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.events.MouseEvent;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import mx.rpc.events.FaultEvent;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import mx.rpc.events.ResultEvent;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import mx.controls.Alert;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public static var OPEN_SOCIAL_TOKEN:String = &amp;quot;opensocial_token&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public static var OPEN_SOCIAL_MODE:String = &amp;quot;opensocial_surface&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public static var OPEN_SOCIAL_KEY:String = &amp;quot;opensocial_consumer_key&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public static var DETAIL_TYPE:String = &amp;quot;detailtype&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public static var NS_API_V1:String = &amp;quot;api-v1.myspace.com&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public static var NS_XSI:String = &amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public static var NS_XSD:String = &amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public static var URL_ROOT_API:String = &amp;quot;http://api.msappspace.com/opensocial&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [Bindable]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public var friendsXml:XML;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [Bindable]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public var userXml:XMLList;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [Bindable]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public var profileXml:XML;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public var apiNS:Namespace;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [Bindable]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public var os_token:String;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public function init():void { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; apiNS = new Namespace(NS_API_V1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; os_token = getOpenSocialToken();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; profileLinkButton.addEventListener(MouseEvent.CLICK, profileLinkButton_OnClick);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; friendsLinkButton.addEventListener(MouseEvent.CLICK, friendsLinkButton_OnClick);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlLinkButton.addEventListener(MouseEvent.CLICK, urlLinkButton_OnClick);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clearLinkButton.addEventListener(MouseEvent.CLICK, clearLinkButton_OnClick);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; osTokenTextArea.text = os_token;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public function getOpenSocialToken():String {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var token:String = Application.application.parameters[OPEN_SOCIAL_TOKEN];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return token;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public function getOpenSocialSurface():String {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var mode:String = Application.application.parameters[OPEN_SOCIAL_MODE];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (mode == null) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; mode = &amp;quot;canvas&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return mode;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public function getDetailType():String {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var detail:String = Application.application.parameters[DETAIL_TYPE];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (detail == null) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; detail = &amp;quot;BASIC&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return detail;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; private function clearOutput():void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; outputTextArea.text = &amp;quot;&amp;quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; private function getViewer():void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var serverUrl:String = &amp;quot;http://api.msappspace.com/opensocial/v1&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var viewerUrl:String = &amp;quot;/VIEWER&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var profileUrl:String = &amp;quot;/profile.XML&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var token:String = osTokenTextArea.text;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var surface:String = &amp;quot;canvas&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var detail:String = &amp;quot;BASIC&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; viewerProfileRequest.url = serverUrl + viewerUrl + profileUrl + &amp;quot;?&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; viewerProfileRequest.url += OPEN_SOCIAL_TOKEN + &amp;quot;=&amp;quot; + token;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; viewerProfileRequest.url += &amp;quot;&amp;amp;&amp;quot; + OPEN_SOCIAL_MODE + &amp;quot;=&amp;quot; + surface;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; viewerProfileRequest.url += &amp;quot;&amp;amp;&amp;quot; + DETAIL_TYPE + &amp;quot;=&amp;quot; + detail;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; viewerProfileRequest.resultFormat = &amp;quot;e4x&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; viewerProfileRequest.send();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; private function getFriends():void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var serverUrl:String = &amp;quot;http://api.msappspace.com/opensocial/v1&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var viewerUrl:String = &amp;quot;/VIEWER&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var friendsUrl:String = &amp;quot;/friends.XML&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var token:String = osTokenTextArea.text;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var surface:String = &amp;quot;canvas&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var detail:String = &amp;quot;BASIC&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; friendsRequest.url = serverUrl + viewerUrl + friendsUrl + &amp;quot;?&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; friendsRequest.url += OPEN_SOCIAL_TOKEN + &amp;quot;=&amp;quot; + token;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; friendsRequest.url += &amp;quot;&amp;amp;&amp;quot; + OPEN_SOCIAL_MODE + &amp;quot;=&amp;quot; + surface;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; friendsRequest.url += &amp;quot;&amp;amp;&amp;quot; + DETAIL_TYPE + &amp;quot;=&amp;quot; + detail;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; friendsRequest.resultFormat = &amp;quot;e4x&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; friendsRequest.send();&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function friendsRequest_OnResult(event:ResultEvent):void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; friendsXml = event.result as XML;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userXml = friendsXml.apiNS::friends.apiNS::user as XMLList;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputTextArea.text = friendsXml.toString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function friendsRequest_OnFault(event:FaultEvent):void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(event.fault.message, &amp;quot;Could not call REST API&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function viewerProfileRequest_OnResult(event:ResultEvent):void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; profileXml = event.result as XML;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputTextArea.text = profileXml.toXMLString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function viewerProfileRequest_OnFault(event:FaultEvent):void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(event.fault.message, &amp;quot;Could not call REST API&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public function profileLinkButton_OnClick(e:MouseEvent):void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; getViewer();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public function friendsLinkButton_OnClick(e:MouseEvent):void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; getFriends();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public function urlLinkButton_OnClick(e:MouseEvent):void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; clearOutput();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i:String in Application.application.parameters) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputTextArea.text += i + &amp;quot;:&amp;quot; + Application.application.parameters[i] + &amp;quot;\n&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public function clearLinkButton_OnClick(e:MouseEvent):void {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; clearOutput();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ]]&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/mx:Script&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/mx:Application&amp;gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to develop a Myspace Application using Server Side Code</title><link>http://developer.myspace.com/community/forums/thread/8021.aspx</link><pubDate>Fri, 18 Apr 2008 12:37:14 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:8021</guid><dc:creator>Russ Cobbe</dc:creator><slash:comments>42</slash:comments><comments>http://developer.myspace.com/community/forums/thread/8021.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=8021</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;A lot of developers use the Javascript container to do all the application programming but you may have code existing in some other language that can be turned into a mySpace application.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;The following explains building an application this way from start to finish.&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;This article assumes you have a server outside of myspace that can run some web programming language such as PHP, ASP, iHTML, Cold Fusion, Python etc….&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;It would also be helpful to have a database server running on that machine (or at least accessible) such as mySQL, Postgres or MS SQL server.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;The first thing to do is to create a table in your database server that has at least the following information and call it USERS.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I am going to use MS SQL server datatypes for simplicity, change appropriately for your db server of choice&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Networkid (big integer) – this is the users id on the social network system&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Networktypeid (int) – this is the identifier for the network (we use 1- facebook, 2 – bebo, 4 – friendster, 8 – myspace, 16 – orkut, 32 – hi5, they are spaced numerically this way for bit operations at some point in the future)&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Dateaddded (datetime) – the date the user installed&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Session_key (varchar 32) – not used on all networks&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Browser (varchar 256) – handy for knowing what browsers are being used and can be helpful for seeing trends if people are having problems and removing&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Active (int) – we use an int since we generally do more than 1 and 0 for active and not active&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Friends (varchar 8000) – we sometimes want to store the string of friends for doing things more efficiently than going back to the social network site for the data.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Some TOS’s might not allow this so check on those first&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Username (varchar 256) – the name of the user&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Create a new application on mySpace to experiment with this.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;On the upload application XML you can load up an xml file but its not strictly needed so skip this step.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Most of the data on the next page is just info about your application.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The four fields that matter are &lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Install Callback URL, this is a url on your server that is hit by the myspace system when a user wants to install your application.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;What you would do on this url is generally the following&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;create a user account (check if it exists or not first, if it exists set active=1 since it might have been an account created already and been removed previously)&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;set a cookie perhaps (although not sure this will work on the install page actually)&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;on some networks you could set the default profile data here&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;do your first call back to the myspace servers to get the users name&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;The query string sent to your server looks like this and the networkid value to store in the users table is the opensocial_owner_id (and opensocial_viewer_id should be the same in this case)&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;country=US&amp;amp;lang=en&amp;amp;newinstall=1&amp;amp;oauth_consumer_key=http%3A%2F%2Fwww.myspace.com%2F364547168&amp;amp;oauth_nonce=633439974091302607&amp;amp;oauth_signature=cO26z1kgt0STq%2Bk8hc5e1nb2ybY%3D&amp;amp;oauth_signature_method=HMAC-SHA1&amp;amp;oauth_timestamp=1208400609&amp;amp;oauth_token=&amp;amp;oauth_version=1.0&amp;amp;opensocial_owner_id=250077925&amp;amp;opensocial_viewer_id=250077925&amp;amp;pto=COMMENTS%2CBLOG%2CBULLETINS%2CPROFILE%2CSEND_MESSAGE &lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Uninstall Callback URL, this is the url on your server that is hit by the myspace system when a user wants to unfortunately uninstall your application.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Generally this simply does marks the record in your users table as inactive.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The output from this page is just thrown away and no user ever sees it so it doesn’t need to have any real output.&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Oauth Consumer Key and Oauth Consumer Secret.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;These are needed later on to sign requests you make back to the myspace servers.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;After saving this page go to the Edit App Source link.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;You have 3 tabs which I’ll discuss below&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Canvas Surface&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;For the App type select External iframe.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Set the display height to what the main page of the application is going to need.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;You can always change this later if needed and there are ways programmatically to reset it (adjustheight).&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The external iframe URL is the home page of your application on your server.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;So enter the specific URL that users will go to when they go to your application.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Profile Surface&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;The profile surface is what is shown to other users when they view the user,&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;who has the application installed, profile.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Home Surface&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;The home surface is what the user sees on their own private home page when they have the application installed.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;In most cases the javascript for the profile and home surfaces is going to be the same or very close.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The following is an example of a basic script to put in here.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;/* global */&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;body { font-family: verdana, arial, sans-serif; font-size: 11px; margin: 0; padding: 0; text-align: left; }&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;h1, h2, h3, h4, h5{ font-size: 13px; color: #333; margin: 0px; padding:0px; }&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;a { color:#3b5998; text-decoration: none; }&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;a:hover { text-decoration: underline; }&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;.clear { clear:both; }&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;a img { border: 0px; }&amp;lt;/style&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;lt;div id=&amp;quot;target&amp;quot; style=&amp;quot;font-weight:bold;padding:10px;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;lt;div id=&amp;quot;loader&amp;quot; style=&amp;quot;color: #ccc;padding-left:20px;&amp;quot;&amp;gt;Loading application data...&amp;lt;/div&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;var app_host =&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&amp;quot;http://www.yourserverurl.com&amp;quot;;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;var app_id =&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&amp;quot;100000&amp;quot;;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;lt;/script&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;function getProfile() {&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;var req_params = new Object();&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;req_params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.SIGNED;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;req_params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;var req = gadgets.io.makeRequest(app_host + &amp;quot;/myprofile.ihtml&amp;quot;, signRequestCompleted, req_params);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;function canvasURL(url) {&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;var cview = gadgets.views.getSupportedViews()[&amp;quot;canvas&amp;quot;];&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;gadgets.views.requestNavigateTo(cview, url);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;function signRequestCompleted(data) {&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;document.getElementById(&amp;#39;target&amp;#39;).innerHTML = data.text;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;document.getElementById(&amp;#39;loader&amp;#39;).style.display = &amp;#39;none&amp;#39;;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;getProfile();&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;&amp;lt;/script&amp;gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;The only things you really need to worry about are the appid value (change from 100000 to your app id (to find your app id, you can rollover the profile tab and it will have appid= in the URL string), change the myprofile.ihtml to the page on your server that will generate the HTML for the profile page and app_host which is your servers URL.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;So now you are pretty much setup on the myspace end of things.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The rest of the code goes on your server using your language of choice.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Your code can do whatever it wants on your server and can make specific requests back to the myspace server using the RESTful API.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;There are various resources you can call such as to get the user information or the friends for a user etc….&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;All requests have to be signed with oAuth authentication on myspace.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Other networks use different schemes.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Making Requests to mySpace&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;To do a request to myspace you need to use the oAUTH signature method.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Requests are simple http GET’s or POST’s to the myspace servers to get information about a user or other data.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;There are PHP libraries for this but since we don’t use PHP we had to figure this out on our own.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;This is what needs to be done in a generic way that should be translatable to any language.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;This example gets the friends of a user. You have to generate a signature string first.&lt;/font&gt;&lt;/p&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;The string to generate the signature on is made like this all concatenated together&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;GET&amp;amp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;plus the request URL urlencoded (ie: &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;a href="http://api.myspace.com/v1/users/#####/friends"&gt;&lt;span style="FONT-FAMILY:Arial;"&gt;&lt;font size="3"&gt;http://api.myspace.com/v1/users/#####/friends&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;(where the ##### are the userid of the person you are getting the friends for)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;append an &amp;amp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;string together the actual request which has &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;oauth_consumer_key=yourkey&amp;amp;oauth_nonce=noncevalue&amp;amp;oauth_signature_method=HMAC-SHA1&amp;amp;oauth_timestamp=atimestamp&amp;amp;oauth_token=&amp;amp;oauth_version=1.0&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;(note the oauth_token has no value but must be there, The order of the parameters matters, they need to be in alphabetical order.&amp;nbsp;) &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Then you URL encode the above and append it to your string you are building up.&amp;nbsp; So your base string might look something like this (note what is and isn&amp;#39;t url encoded ie its, &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;GET&amp;amp;urlencodedhostrequest&amp;amp;urlencodedrequeststring)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;GET&amp;amp;http%3A%2F%2Fapi.myspace.com%2Fv1%2Fusers%2F6549232%2Ffriends&amp;amp;oauth_consumer_key%3Dhttp%253A%252F%252Fwww.myspace.com%252F354364031%26oauth_nonce%3D1206638068.1040%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1206638068%26oauth_token%3D%26oauth_version%3D1.0&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Then you need to hash it with HMAC-SHA1 and base64 encode it so the text value would be your string and the key (and this is important) is your consumer&amp;nbsp;secret with an &amp;amp; appended to the end of it.&amp;nbsp; (we couldn&amp;#39;t find a command line tool that would do an HMAC-SHA1 and base64 encode so we wrote one in C.&amp;nbsp; Contact me if you would like it)&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Then you urlencode the result of that and that is your signature.&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Then you have to form your query string which has all the same stuff you built up in your request plus the signature so like this&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;oauth_consumer_key=yourkey&amp;amp;oauth_nonce=noncevalue&amp;amp;oauth_signature_method=HMAC-SHA1&amp;amp;oauth_signature=yourgensighere&amp;amp;oauth_timestamp=atimestamp&amp;amp;oauth_token=&amp;amp;oauth_version=1.0&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;So your whole get request might look something like this&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="mso-bidi-font-size:10.0pt;"&gt;&lt;a href="http://api.myspace.com/v1/users/#####/friends?oauth_consumer_key=http%3A%2F%2Fwww.myspace.com%2F354364031&amp;amp;oauth_nonce=633421365057774247&amp;amp;oauth_signature=GASxMIk34F62SsLY4j6N8oMNrLA%3D&amp;amp;oauth_signature_method=HMAC-SHA1&amp;amp;oauth_timestamp=120653"&gt;&lt;span style="FONT-FAMILY:Arial;"&gt;&lt;font size="3"&gt;http://api.myspace.com/v1/users/#####/friends?oauth_consumer_key=http%3A%2F%2Fwww.myspace.com%2F354364031&amp;amp;oauth_nonce=633421365057774247&amp;amp;oauth_signature=GASxMIk34F62SsLY4j6N8oMNrLA%3D&amp;amp;oauth_signature_method=HMAC-SHA1&amp;amp;oauth_timestamp=1206539705&amp;amp;oauth_token=&amp;amp;oauth_version=1.0&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;That request is then made by your server code and the result back is an XML structure that you can then parse to get the information you need.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Cookie and P3P considerations&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;If you want to set a cookie on the users browser it may or may not work depending on the browser security settings and the network.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Since this is in an iframe it’s a 3&lt;sup&gt;rd&lt;/sup&gt; party cookie so you need to set a P3P policy and add the following headers to responses sent back by your server.&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;P3P: CP=&amp;quot;ADM DEV PSA OUR IND ONL UNI PUR NAV CNT STA INT&amp;quot;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;In general though we have found it better to pass variables in query strings or hidden form post variables when navigating within your application.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Profile and Home Pages&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;These pages on your server (myprofile.ihtml in the above examples) are requested by the myspace server on every view by a user.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;The opensocial_viewer_id variable in the query string identifies the user viewing the profile and opensocial_owner_id identifies the profile being viewed.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;This page on your server would output whatever HTML (or JS) that you want to display to the user.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;You can use logic to show different things based on who is viewing or what profile they are using.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;For example you can show their score in a game or a quote or news or weather for their location or whatever your app is going to do.&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;It is also possible to build an application that is cross platform across all the different social networking sites as we have done with our iDRINK and Treasure Hunt applications.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Those each have a single code base that works on all the networks.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;This has obvious advantages to keeping code standardized and easier to maintain.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;So while opensocial’s goal is to make cross platform applications it isn’t strictly necessary to make that happen. &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;I’ll leave it to another article to explain all the in’s and out’s of accomplishing this.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;Feel free to offer suggestion on areas on the above that need expanding or clarifying and I will update as needed.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;I hope you find the above useful.&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;To find out more about what my companies do visit &lt;/font&gt;&lt;a href="http://www.inline.net/"&gt;&lt;span style="FONT-FAMILY:Arial;"&gt;&lt;font size="3"&gt;http://www.inline.net&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;font face="Times New Roman" size="3"&gt; or for more information on the iHTML programming language, visit &lt;/font&gt;&lt;a href="http://www.ihtml.com/"&gt;&lt;span style="FONT-FAMILY:Arial;"&gt;&lt;font size="3"&gt;http://www.ihtml.com&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Looking for an application promotion tool, visit &lt;a href="http://www.snapsavvy.com/"&gt;http://www.snapsavvy.com&lt;/a&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Unable to able to upload xap file on myspace open platform</title><link>http://developer.myspace.com/community/forums/thread/43834.aspx</link><pubDate>Fri, 23 Oct 2009 12:00:05 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:43834</guid><dc:creator>Mayur</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/43834.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=43834</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi ,&lt;/p&gt;&lt;p&gt;I created a silverlight xap file and wanted to upload the same on myspace open platform , but while uploading i followed following steps&lt;/p&gt;&lt;p&gt;1. Go to MyApps-&amp;gt;Surface-&amp;gt;CanvasSurface &lt;/p&gt;&lt;p&gt;2. select &lt;span style="width:150px;line-height:20px;"&gt;App Type -&amp;gt; &lt;/span&gt;HTML/JavaScript Source&lt;/p&gt;&lt;p&gt;3. using&amp;nbsp; Upload source file , upload xap file &lt;/p&gt;&lt;p&gt;4. following code is generated&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;object width=&amp;quot;100%&amp;quot; height=&amp;quot;100%&amp;quot; data=&amp;quot;data:application/x-silverlight-2,&amp;quot; type=&amp;quot;application/x-silverlight-2&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name=&amp;quot;source&amp;quot; value=&amp;quot;http://cache01-widget01.myspacecdn.com/1/l_d8d00bb2e8824f989630758d29145a94.xap&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name=&amp;quot;minRuntimeVersion&amp;quot; value=&amp;quot;2.0.31005.0&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name=&amp;quot;autoUpgrade&amp;quot; value=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name=&amp;quot;EnableHtmlAccess&amp;quot; value=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Display installation image. --&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;a href=&amp;quot;http://go.microsoft.com/fwlink/?LinkID=124807&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=&amp;quot;text-decoration: none;&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img src=&amp;quot;http://go.microsoft.com/fwlink/?LinkId=108181&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alt=&amp;quot;Get Microsoft Silverlight&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=&amp;quot;border-style: none&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/object&amp;gt;&lt;/p&gt;&lt;p&gt;Now when i save it , now when i add this application to my profile it dosent work . Please tell me which step was wrong&amp;nbsp; &lt;/p&gt;</description></item><item><title>develop myspace application</title><link>http://developer.myspace.com/community/forums/thread/42548.aspx</link><pubDate>Fri, 31 Jul 2009 12:22:07 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:42548</guid><dc:creator>Deepika</dc:creator><slash:comments>1</slash:comments><comments>http://developer.myspace.com/community/forums/thread/42548.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=42548</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to know&amp;nbsp; software requirements to develop application&amp;nbsp; and how&amp;nbsp; to connect myspace from my website.&amp;nbsp; &lt;/p&gt;</description></item><item><title>I need a good tip or 2!</title><link>http://developer.myspace.com/community/forums/thread/18212.aspx</link><pubDate>Sat, 23 Aug 2008 06:18:52 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:18212</guid><dc:creator>Renee</dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/18212.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=18212</wfw:commentRss><description>&lt;p&gt;I am right now watching the myspace developers vids, I am surprised by how dumbfounded I am with these apps, I did not seriously think it would be this hard for me to get a hang of!&lt;/p&gt;&lt;p&gt;&amp;nbsp;I want to create an app very similiar to mob, heroes, and outworld, I am sure there are more but those just to name a few, I notice those apps are sooo very smiliar that there must be a base they used and tweaked from there right? Can someone please point me in the right direction?&lt;/p&gt;&lt;p&gt;I have spent the entire day on ww3 schools site not knowing under which area am I even suppose to look into to learn about the apps, I have even downloaded the render files from outworld and mobster to see if I can reverse engineer and the only thing I have managed to reverse engineer is the canvas page and not even sure if I did that right either???&lt;/p&gt;&lt;p&gt;Making apps is no where near as easy as making a site and uploading ready made stuff!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I need apps for dummies please! ;) &lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to post to your external web space from the profile or home surface. (For starters)</title><link>http://developer.myspace.com/community/forums/thread/22813.aspx</link><pubDate>Wed, 01 Oct 2008 23:40:58 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:22813</guid><dc:creator>David</dc:creator><slash:comments>7</slash:comments><comments>http://developer.myspace.com/community/forums/thread/22813.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=22813</wfw:commentRss><description>




&lt;div class="Section1"&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;Hi, I was reading the forums and information websites about myspace developing this week. As a staring developer you have need on easy to understand information and tutorials.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;I noticed lots of starting developers have problems with posting forms to external applications. This is why I decided to make a step by step, and well explained tutorial about this subject. The application described here, will handle the posting from the profile or the home surface. But the forms are made and handled from the external PHP on your domain. English is not my native tong so excuse me for my bad English! I walk you thru the source code step by step explaining every part in dept.&lt;/span&gt;&lt;/p&gt;
&lt;h1&gt;&lt;span&gt;Creating the application&lt;/span&gt;&lt;/h1&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;You are reading this tutorial, so recon you already have a developers account with MySpace, and you already know how to create your application! This information you can find on so many places, so it&amp;#39;s out of scope of this tutorial. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;The only thing you need for this tutorial, you find on the “Edit App information” tab of your application. Look for “OAuth Settings”, make a copy of both your customer key and customer secret, you will need those later in the PHP script. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;OK now its time to make our hands dirty!&lt;/span&gt;&lt;/p&gt;
&lt;h1&gt;&lt;span&gt;The script on myspace&lt;/span&gt;&lt;/h1&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;The code we describe here is the script you will use on the myspace developers page of the application. I wrote it for the home surface, but it&amp;#39;s tested on all the surfaces provided. The code I use here is a how to, so all the rest is not really important and clean!&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&amp;lt;div id=&amp;quot;AppBody&amp;quot; &amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;All code on the myspace developer’s page is HTML, so we need to do some HTML work like you know. The div I create here, is to provide my script with a way to write the output to. I will make a write function to write my HTML in it, so it will show. The next thing I do, is opening the script. In fact this is the only HTML I do on the developers page!&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;// Global variables needed for the application&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;var url=&amp;quot;http://yoursomain/tutorial.php&amp;quot;; &lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;When I do a javascript I mostly start with my global variables. It is good practice because that way they are easy to find. Here I only need 1, the url to the external php script.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr style="HEIGHT:80pt;"&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;HEIGHT:80pt;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;function init()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;var params = {};&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.POST;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.SIGNED;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;gadgets.io.makeRequest(url, response, params);&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;The init function is used to do the first request to the external application. This time we don’t need to post anything to the site, we only need the initial HTML to start with. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;The first we do in our function, is making a object variable for our parameters, I named it params. This time we only need the method we use, what is the POST method. We also need to sign our request! One thing I noticed reading the forums, was the fact most people get into a 401 error, and this is the reason why. So the next we set in our parameters is the AuthorisationType, and we choose signed.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;The last we do in the init routine is making the request. And we use the global url variable for the address. The name of our response function, what I called response and last but not least the parameters we just made.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;function WriteBody(html)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;document.getElementById(&amp;quot;AppBody&amp;quot;).innerHTML = html;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;This is an ugly function I use to write the result to the div. I don’t go into this function, when you don’t understand it, a good book about javascript will do wonders. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;The next function is more complex, but also very easy to understand.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;function doMRPost() &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;{ &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;var params = {};&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;var postdata = {};&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;for(a=0; a&amp;lt;document.ApForm.elements.length; a++)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;postdata[document.ApForm&lt;img src="http://developer.myspace.com/Community/emoticons/emotion-13.gif" alt="Angel" /&gt;.name] = document.ApForm&lt;img src="http://developer.myspace.com/Community/emoticons/emotion-13.gif" alt="Angel" /&gt;.value;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.POST;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;params[gadgets.io.RequestParameters.POST_DATA] = gadgets.io.encodeValues(postdata);&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.SIGNED;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;gadgets.io.makeRequest(url, response, params);&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;This is the function we will use to do the posting of a form. In my application I use a constant name for all my forms &amp;quot;ApForm&amp;quot;, so I did build my doMRPost function especially for this technique. First we make 2 object variables. The first is just like in the init function and is used for the parameters. The next one we use to collect the POST data. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;We don’t know what fields we have to post from our form, this is different for every form. Because of this we need to collect the fieldnames and values to use them in the postdata. This we do in the for loop!&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;We use document.ApForm.elements.length to get the amount of fields in the form. While we run throe the fields, we make an entry with the fieldname in our postdata variable, and we give it the value of the corresponding field. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;After the for loop we set the parameters for the request, but this time we also add a parameter for the posted data. Don’t forget to sign your request like in the init function! After all of this work we make the request.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;function response(mrResponse) {&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;WriteBody(mrResponse.text);&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;init();&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;Here you see the function we already used 2 times. It’s also a very easy one, it only writes the information to the div we created for our application output.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;After this function we make a call to the init function to start the application. All we need to do now is close the script.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;h1&gt;&lt;span&gt;The PHP script&lt;/span&gt;&lt;/h1&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;Now that we have our application in place at myspace, we only need to make the script we want to use. Here is a easy example, I made up for the tutorial. It is something really simple and useless. All it will do is show a picture of the owner, and place a Title and text.&amp;nbsp; You post title and text from the form. When it starts the title and text are empty.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;Before you start coding, download the PHP myspace library and install it on your website. The myspace classes use HTTP_Request, so make sure it is installed on your hosting. If it is not installed, now is the time to do it! When you don’t have that access, ask the system administrator. After this is done, we can start the programming.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;require_once(&amp;#39;myspace/MySpaceAPI.php&amp;#39;);&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;At the start we use the require_once function to let our script know we will use the MySpaceAPI library.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$key = &amp;#39;http://www.myspace.com/yourApiNumber&amp;#39;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$secret = &amp;#39;your secred&amp;#39;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$myspace = new MySpaceAPI($key,$secret);&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;Next we make a few variables, we will use these as constants in the program. At the start of the tutorial I told you where to get your key and secret. This is the place to use them. The last line is where we make an occurrence of the MySpaceAPI class.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$owner = $_GET[&amp;quot;opensocial_owner_id&amp;quot;];&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$result = $myspace-&amp;gt;get_user($owner);&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$html = &amp;quot;&amp;lt;img src=&amp;#39;&amp;quot;.$result[&amp;quot;largeimageuri&amp;quot;].&amp;quot;&amp;#39; width=&amp;#39;200 px&amp;#39;&amp;gt;&amp;lt;br&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$html .= &amp;quot;&amp;lt;h1&amp;gt;&amp;quot;.$_POST[&amp;quot;titel&amp;quot;].&amp;quot;&amp;lt;/h1&amp;gt;&amp;lt;br&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$html .= $_POST[&amp;quot;text&amp;quot;].&amp;quot;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;Like told I want a picture of the owner on the application. To do this we first load a variable $owner with the owner ID. This variable we use to get the user from the myspace class and put it in result. The get_user method returns a array with all the information we need. This array we load in our result variable.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;After this I start building the HTML. I use the $html variable to do this. You see how I put the picture in the variable, and the last 2 lines add the title and text we take from the $_POST global variable. The first time there is nothing posted so that time it stays empty.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;Now we need to add the form to the $html variable.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table class="MsoTableGrid" style="BORDER-RIGHT:medium none;BORDER-TOP:medium none;BORDER-LEFT:medium none;BORDER-BOTTOM:medium none;BORDER-COLLAPSE:collapse;" cellspacing="0" cellpadding="0" class="MsoTableGrid"&gt;

&lt;tr&gt;
&lt;td class="" style="BORDER-RIGHT:black 1pt solid;PADDING-RIGHT:5.4pt;BORDER-TOP:black 1pt solid;PADDING-LEFT:5.4pt;PADDING-BOTTOM:0cm;BORDER-LEFT:black 1pt solid;WIDTH:460.6pt;PADDING-TOP:0cm;BORDER-BOTTOM:black 1pt solid;"&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$html .= &amp;quot;&amp;lt;form name=&amp;#39;ApForm&amp;#39;&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$html .= &amp;quot;The title &amp;lt;input id=&amp;#39;text&amp;#39; type=&amp;#39;text&amp;#39; name=&amp;#39;titel&amp;#39; /&amp;gt;&amp;lt;br&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$html .= &amp;quot;text &amp;lt;input id=&amp;#39;text&amp;#39; type=&amp;#39;text&amp;#39; name=&amp;#39;text&amp;#39; /&amp;gt;&amp;lt;br&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$html .= &amp;quot;&amp;lt;input class=&amp;#39;But&amp;#39; type=&amp;#39;button&amp;#39; name=&amp;#39;but&amp;#39; value=&amp;#39;Submit&amp;#39; onclick=&amp;#39;doMRPost();&amp;#39; /&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;$html .= &amp;quot;&amp;lt;/form&amp;gt;&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;echo($html);&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN-BOTTOM:0pt;LINE-HEIGHT:normal;"&gt;&lt;span style="FONT-SIZE:8pt;"&gt;?&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;We all know HTML, so it is easy to follow this part of the script. Just notice we set the name of the form to ApForm, this is also what we use in our post routine at the MySpace developers page. Also notice we use a name for all our fields, we need that to fill the postdata in the script at MySpace.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;Take a close look at the button we make. Specially the onclick is important, like you can see it calls to the function we made for posting on the MySpace developers page! &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;At the end we use echo to send the $html variable to the script. That&amp;#39;s is all we need to do. It is an easy to use technique, you can use it for all your needs. I really hope this tutorial will help all the starting application developers. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span&gt;David&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description></item><item><title>How to test a myspace app</title><link>http://developer.myspace.com/community/forums/thread/42549.aspx</link><pubDate>Fri, 31 Jul 2009 14:08:15 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:42549</guid><dc:creator>Fernanda</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/42549.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=42549</wfw:commentRss><description>&lt;p&gt;I would want to know if there is a way and how I can do, to test a myspace app (not published yet) that is installed in a public profile. &lt;/p&gt;&lt;p&gt;I want to test how this work when I access this profile without being logged in.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;Fernanda &lt;br /&gt;&lt;/p&gt;</description></item><item><title>flash navigateToURL sandbox error 2146</title><link>http://developer.myspace.com/community/forums/thread/27118.aspx</link><pubDate>Mon, 10 Nov 2008 03:02:45 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:27118</guid><dc:creator>Toonamo</dc:creator><slash:comments>6</slash:comments><comments>http://developer.myspace.com/community/forums/thread/27118.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=27118</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have develped a widget that i run through clearspring. &lt;/p&gt;&lt;p&gt;you can view it on my server&lt;/p&gt;&lt;p&gt;http://phonocraft.net/clients/blackmountain/indiemusicassault2008/&lt;/p&gt;&lt;p&gt;or on my profile in the music section&lt;/p&gt;&lt;p&gt;http://www.myspace.com/toonamo&lt;/p&gt;&lt;p&gt;Basically everything runs fine including loading php files off my server to run the internal functions. &lt;/p&gt;&lt;p&gt;What i need to know is how to i make links for the sponsers i have. I know that myspace has set the network access to internal so that external links will not work. Does anyone know a work around?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;here is the code so you know what i am using now.&lt;/p&gt;&lt;p&gt;&lt;blockquote style="overflow-x: scroll;"&gt;&lt;pre style="margin: 0px;"&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;bmp.addEventListener(MouseEvent.CLICK, bmpClick);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function bmpClick(event:MouseEvent):void{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bmpURL:URLRequest = new URLRequest (&amp;quot;http://www.blackmountainproductions.net/&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; navigateToURL(bmpURL, &amp;#39;_blank&amp;#39;);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;&lt;/pre&gt;&lt;/blockquote&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>third-party application oauth process by Restful API</title><link>http://developer.myspace.com/community/forums/thread/38785.aspx</link><pubDate>Tue, 14 Apr 2009 12:41:22 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:38785</guid><dc:creator>Jesse</dc:creator><slash:comments>7</slash:comments><comments>http://developer.myspace.com/community/forums/thread/38785.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=38785</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&amp;nbsp;meet a problem when i develop a third-part application on windows mobile platform.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When application do the oauth process as the follow docment&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://wiki.developer.myspace.com/index.php?title=OAuth_REST_API_Usage_-_Authentication_Process"&gt;http://wiki.developer.myspace.com/index.php?title=OAuth_REST_API_Usage_-_Authentication_Process&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; step1 is ok ,and can get the server&amp;#39;s response. step2,I open browser and let user to do the authentication,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; but the problem is if i put the useid which is not the id i&amp;nbsp;get the comsumer_key and comsumer_seceret, the browser will do not &amp;nbsp;redirction the call_back URL which was set by step3 and the browser will goto the myspace home page.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; how can i do? i do not know how to do?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; anyone can help me. please&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Example: JQuery UI</title><link>http://developer.myspace.com/community/forums/thread/22.aspx</link><pubDate>Sat, 12 Jan 2008 00:06:23 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:22</guid><dc:creator>viphak@myspace</dc:creator><slash:comments>11</slash:comments><comments>http://developer.myspace.com/community/forums/thread/22.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=22</wfw:commentRss><description>&lt;pre&gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://api.msappspace.com/AppRendering/js/jquery-1.2.1.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://api.msappspace.com/AppRendering/js/jquery.ui-1.0/ui.tabs.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://api.msappspace.com/AppRendering/js/jquery.ui-1.0/ui.dialog.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://api.msappspace.com/AppRendering/js/jquery.ui-1.0/ui.resizable.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://api.msappspace.com/AppRendering/js/jquery.ui-1.0/ui.mouse.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://api.msappspace.com/AppRendering/js/jquery.ui-1.0/ui.draggable.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://www.viphaklay.com/jquery/plugins/dimensions_1.2/jquery.dimensions.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
                @import url(&amp;quot;http://api.msappspace.com/AppRendering/js/jquery.ui-1.0/themes/flora/flora.all.css&amp;quot;);
&amp;lt;/style&amp;gt;

&amp;lt;!--[if IE 6]&amp;gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
                #my-tabs {
                padding-bottom: 20px;
                }

&amp;lt;/style&amp;gt;
&amp;lt;![endif]--&amp;gt;

&amp;lt;!--[if IE 7]&amp;gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
                #my-tabs {
                padding-bottom: 24px;
                }
&amp;lt;/style&amp;gt;
&amp;lt;![endif]--&amp;gt;



                &amp;lt;div id=&amp;quot;my-tabs&amp;quot; class=&amp;quot;flora&amp;quot;&amp;gt;
            &amp;lt;ul id=&amp;quot;tabList&amp;quot;&amp;gt;
                &amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#my-tab1&amp;quot;&amp;gt;&amp;lt;span&amp;gt;Tab1&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
                &amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#my-tab2&amp;quot;&amp;gt;&amp;lt;span&amp;gt;Tab2&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
                &amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;#my-tab3&amp;quot;&amp;gt;&amp;lt;span&amp;gt;Tab3&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
            &amp;lt;/ul&amp;gt;

            &amp;lt;div id=&amp;quot;my-tab1&amp;quot;&amp;gt;
                                ahhhhhhhhhhh
            &amp;lt;/div&amp;gt;
            &amp;lt;div id=&amp;quot;my-tab2&amp;quot;&amp;gt;
                                yay!
            &amp;lt;/div&amp;gt;
            &amp;lt;div id=&amp;quot;my-tab3&amp;quot;&amp;gt;
                                wahoooo!
            &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
        

&amp;lt;input id=&amp;quot;showLink&amp;quot; type=&amp;quot;button&amp;quot; value=&amp;quot;show me&amp;quot; /&amp;gt;

&amp;lt;span id=&amp;quot;divSurprise&amp;quot; style=&amp;quot;display:none; border:1px solid black&amp;quot;&amp;gt;
Surprise!
&amp;lt;img src=&amp;quot;http://www.viphaklay.com/jquery/spinner.gif&amp;quot;/&amp;gt;
&amp;lt;img src=&amp;quot;http://www.viphaklay.com/jquery/spinner.gif&amp;quot;/&amp;gt;
&amp;lt;img src=&amp;quot;http://www.viphaklay.com/jquery/spinner.gif&amp;quot;/&amp;gt;
&amp;lt;img src=&amp;quot;http://www.viphaklay.com/jquery/spinner.gif&amp;quot;/&amp;gt;
&amp;lt;img src=&amp;quot;http://www.viphaklay.com/jquery/spinner.gif&amp;quot;/&amp;gt;
&amp;lt;/span&amp;gt;

&amp;lt;div id=&amp;quot;my-dialog&amp;quot; class=&amp;quot;flora&amp;quot; title=&amp;quot;vipy rules&amp;quot;&amp;gt;Drag me somwhere!&amp;lt;/div&amp;gt;


&amp;lt;script type=&amp;#39;text/javascript&amp;#39;&amp;gt;

  $(document).ready(function(){

    $(&amp;quot;#my-tabs &amp;gt; ul&amp;quot;).tabs();

    $(&amp;quot;#my-dialog&amp;quot;).dialog({ height: 100, width: 100});

    $(&amp;quot;#showLink&amp;quot;).click(function () {
                if ($(&amp;quot;#showLink&amp;quot;).val() == &amp;quot;show me&amp;quot;) {
                                $(&amp;quot;#showLink&amp;quot;).val(&amp;quot;hide me&amp;quot;);
                } else {
                                $(&amp;quot;#showLink&amp;quot;).val(&amp;quot;show me&amp;quot;);
                }

        $(&amp;quot;#divSurprise&amp;quot;).toggle(&amp;quot;slow&amp;quot;);
    });
    
  });

&amp;lt;/script&amp;gt;
&lt;/pre&gt;</description></item><item><title>Inviting friends with iframed canvis</title><link>http://developer.myspace.com/community/forums/thread/29364.aspx</link><pubDate>Tue, 25 Nov 2008 11:31:46 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:29364</guid><dc:creator>The Generic Coding Crew</dc:creator><slash:comments>3</slash:comments><comments>http://developer.myspace.com/community/forums/thread/29364.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=29364</wfw:commentRss><description>&lt;p&gt;Currently, i have my canvis to iframe out to a certan site. but i would like to do a multi friends inviter despite that my canvis calls out to another site? Possible? Is there a way to put a friends inviter on the site its calling out to? What can I do.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And how do I do a multi friend picker&amp;nbsp;&lt;/p&gt;</description></item><item><title>Interface with myspace im??</title><link>http://developer.myspace.com/community/forums/thread/32645.aspx</link><pubDate>Mon, 29 Dec 2008 04:44:26 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:32645</guid><dc:creator>Aaron</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/32645.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=32645</wfw:commentRss><description>&lt;p&gt;How can I interface my web application with myspace im??? &lt;/p&gt;</description></item><item><title>Python: How to connect to MySpace from external website using OAuth (request_token, authorize, access_token)</title><link>http://developer.myspace.com/community/forums/thread/32289.aspx</link><pubDate>Tue, 23 Dec 2008 12:05:47 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:32289</guid><dc:creator>calendae</dc:creator><slash:comments>1</slash:comments><comments>http://developer.myspace.com/community/forums/thread/32289.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=32289</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Found this on the internet, tested, it works.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;import time, hashlib, urllib, hmac, base64, random, webbrowser&lt;br /&gt;from restclient import GET&lt;br /&gt;&lt;br /&gt;CONSUMER_KEY = u&amp;#39;http://www.myspace.com/123456789&amp;#39;&lt;br /&gt;CONSUMER_SECRET = u&amp;#39;XXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;#39;&lt;br /&gt;SIGNATURE_METHOD = u&amp;#39;HMAC-SHA1&amp;#39;&lt;br /&gt;VERSION = u&amp;#39;1.0&amp;#39;&lt;br /&gt;&lt;br /&gt;REQUEST_TOKEN_URL = &amp;#39;http://api.myspace.com/request_token&amp;#39;&lt;br /&gt;AUTHORIZATION_URL = &amp;#39;http://api.myspace.com/authorize&amp;#39;&lt;br /&gt;ACCESS_TOKEN_URL = &amp;#39;http://api.myspace.com/access_token&amp;#39;&lt;br /&gt;&lt;br /&gt;oauth_token_secret = u&amp;#39;&amp;#39;&lt;br /&gt;oauth_token = u&amp;#39;&amp;#39;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;def gen_signature(url, params):&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for p in params:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params[p] = urllib.quote(params[p], &amp;#39;&amp;#39;)&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; params_keys = params.keys()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; params_keys.sort()&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sig = &amp;#39;&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for key in params_keys:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sig += key +&amp;#39;=&amp;#39;+ params[key] +&amp;#39;&amp;amp;&amp;#39;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sig = &amp;#39;GET&amp;amp;&amp;#39; + urllib.quote(url, &amp;#39;&amp;#39;) + &amp;#39;&amp;amp;&amp;#39; + urllib.quote(sig[:-1])&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #print sig&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; key = urllib.quote(CONSUMER_SECRET) + &amp;#39;&amp;amp;&amp;#39; + oauth_token_secret&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; m = hmac.new(key, sig, hashlib.sha1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; m = base64.b64encode(m.digest())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return urllib.quote(m)&lt;br /&gt;&lt;br /&gt;def gen_nonce():&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return hashlib.md5(str(int(time.time())) + str(random.random())).hexdigest()&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;def parse_response(response):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; response = response.split(&amp;#39;&amp;amp;&amp;#39;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return {&amp;#39;oauth_token&amp;#39;: response[0].split(&amp;#39;=&amp;#39;)[1], &amp;#39;oauth_token_secret&amp;#39;: response[1].split(&amp;#39;=&amp;#39;)[1]}&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;def do_get(url, params):&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return GET(url + &amp;#39;?&amp;#39; + urllib.urlencode(params) + &amp;#39;&amp;amp;oauth_signature=&amp;#39; + gen_signature(url, params))&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;def pause():&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &amp;#39;&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time.sleep(1)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;# Obtain Request Token&amp;nbsp;&amp;nbsp; &lt;br /&gt;print &amp;#39;REQUEST TOKEN&amp;#39;&lt;br /&gt;pause()&lt;br /&gt;params = {&amp;#39;oauth_consumer_key&amp;#39;: CONSUMER_KEY, &amp;#39;oauth_version&amp;#39;: VERSION, &amp;#39;oauth_timestamp&amp;#39;: u&amp;#39;&amp;#39;+str(int(time.time())), &amp;#39;oauth_nonce&amp;#39;: u&amp;#39;&amp;#39;+gen_nonce(), &amp;#39;oauth_signature_method&amp;#39;: SIGNATURE_METHOD}&lt;br /&gt;response = parse_response(do_get(REQUEST_TOKEN_URL, params))&lt;br /&gt;oauth_token = response[&amp;#39;oauth_token&amp;#39;]&lt;br /&gt;oauth_token_secret = response[&amp;#39;oauth_token_secret&amp;#39;]&lt;br /&gt;&lt;br /&gt;# Authorize Token&lt;br /&gt;print &amp;#39;AUTORIZE TOKEN&amp;#39;&lt;br /&gt;pause()&lt;br /&gt;params = {&amp;#39;oauth_consumer_key&amp;#39;: CONSUMER_KEY, &amp;#39;oauth_version&amp;#39;: VERSION, &amp;#39;oauth_timestamp&amp;#39;: u&amp;#39;&amp;#39;+str(int(time.time())), &amp;#39;oauth_nonce&amp;#39;: u&amp;#39;&amp;#39;+gen_nonce(), &amp;#39;oauth_signature_method&amp;#39;: SIGNATURE_METHOD, &amp;#39;oauth_token&amp;#39;: oauth_token, &amp;#39;oauth_callback&amp;#39;: &amp;#39;http://localhost&amp;#39;}&lt;br /&gt;webbrowser.open(AUTHORIZATION_URL + &amp;#39;?&amp;#39; + urllib.urlencode(params) + &amp;#39;&amp;amp;oauth_signature=&amp;#39; + gen_signature(AUTHORIZATION_URL, params))&lt;br /&gt;&lt;br /&gt;# Time to authorized the token with the browser&lt;br /&gt;raw_input(&amp;quot;Press enter when token is authorized...&amp;quot;)&lt;br /&gt;&lt;br /&gt;# Exchange Request Token with an Access Token&lt;br /&gt;print &amp;#39;EXCHANGE TOKEN&amp;#39;&lt;br /&gt;pause()&lt;br /&gt;params = {&amp;#39;oauth_consumer_key&amp;#39;: CONSUMER_KEY, &amp;#39;oauth_version&amp;#39;: VERSION, &amp;#39;oauth_timestamp&amp;#39;: u&amp;#39;&amp;#39;+str(int(time.time())), &amp;#39;oauth_nonce&amp;#39;: u&amp;#39;&amp;#39;+gen_nonce(), &amp;#39;oauth_signature_method&amp;#39;: SIGNATURE_METHOD, &amp;#39;oauth_token&amp;#39;: oauth_token}&lt;br /&gt;response = parse_response(do_get(ACCESS_TOKEN_URL, params))&lt;br /&gt;&lt;br /&gt;oauth_token = response[&amp;#39;oauth_token&amp;#39;]&lt;br /&gt;oauth_token_secret = response[&amp;#39;oauth_token_secret&amp;#39;]&lt;br /&gt;&lt;br /&gt;oauth_token = urllib.unquote(oauth_token)&lt;br /&gt;oauth_token_secret = urllib.unquote(oauth_token_secret)&lt;br /&gt;&lt;br /&gt;# Request Data&lt;br /&gt;print &amp;#39;REQUEST DATA&amp;#39;&lt;br /&gt;pause()&lt;br /&gt;params = {&amp;#39;oauth_consumer_key&amp;#39;: CONSUMER_KEY, &amp;#39;oauth_version&amp;#39;: VERSION, &amp;#39;oauth_timestamp&amp;#39;: u&amp;#39;&amp;#39;+str(int(time.time())), &amp;#39;oauth_nonce&amp;#39;: u&amp;#39;&amp;#39;+gen_nonce(), &amp;#39;oauth_signature_method&amp;#39;: SIGNATURE_METHOD, &amp;#39;oauth_token&amp;#39;: oauth_token, &amp;#39;format&amp;#39;: &amp;#39;json&amp;#39;}&amp;nbsp;&amp;nbsp; &lt;br /&gt;print do_get(&amp;#39;http://api.myspace.com/v2/people/@me/@self&amp;#39;, params)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>anyone figure out rss feeds</title><link>http://developer.myspace.com/community/forums/thread/30724.aspx</link><pubDate>Sat, 06 Dec 2008 11:50:59 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:30724</guid><dc:creator>IslamicArea.com</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/30724.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=30724</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey there was a tut on here before but i dont think it works anymore,&lt;/p&gt;&lt;p&gt;but we need a way to grab rss data from a url, anyone share? &lt;br /&gt;&lt;/p&gt;</description></item><item><title> OpenSocial Developer Garage, Pune - India, 08 </title><link>http://developer.myspace.com/community/forums/thread/28873.aspx</link><pubDate>Fri, 21 Nov 2008 04:33:24 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:28873</guid><dc:creator>Pravin</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/28873.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=28873</wfw:commentRss><description>Hi All,
&lt;br /&gt; &lt;p&gt;A group of OpenSocial enthusiasts from Pune have come together to
arrange a conference on OpenSocial. This event is aimed to unite all
the OpenSocial Apps Developers from all over the country and just share/code/have fun and maybe inspire a few wannabee..
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Venue :- Pune, India.
&lt;br /&gt; Date :- 20 Dec, 2008
&lt;br /&gt; Please take a look at &lt;a href="http://developergarage.in/" target="_blank" rel="nofollow"&gt;http://developergarage.in/&lt;/a&gt; for more details.
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;This is a closed event and is an invitation only event, only about
200-250 applicants will get chance to participate. (the ratio of
newbies to professionals would be around 20-80%). We already got around 100 registration.
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;We are sure this will be a great help towards awareness of OpenSocial
and building a strong OpenSocial developers community. As this is a
&lt;br /&gt; event arranged by some enthusiast developers like us and not by any organization this will be event completely oriented towards OpenSocial
&lt;br /&gt; and not marketing any company or jobs.
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;We have a code lab where interested developers will developer application for \&amp;quot;India I care\&amp;quot;. Last one hour is dedicated for
application showcase. Some of the application owners can showcase their applications.
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;We have below opportunities for you that you may be interested -
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;i. Speaking at this event so that other developers will get help from
your knowledge. Speakers registration form is here &lt;a href="http://developergarage.in/speakers/" target="_blank" rel="nofollow"&gt;http://developergarage.in/speakers/&lt;/a&gt;
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;ii. You would like to attend this event so that you can listen to technical sessions. Soon we will announce the finalized speakers at
&lt;br /&gt; our site. You will find some well known speakers there. You can
register as participant over here &lt;a href="http://developergarage.in/register/" target="_blank" rel="nofollow"&gt;http://developergarage.in/register/&lt;/a&gt;.
&lt;br /&gt; You will get confirmation of registration before 15 Dec 2008.
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;iii. If your organization would like to sponsor the event you can redirect them to &lt;a href="http://developergarage.in/sponsors/budgets/" target="_blank" rel="nofollow"&gt;http://developergarage.in/sponsors/budgets/&lt;/a&gt;
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;iv. You may like to participate at code lab and help other developers
to build this application for a &amp;nbsp;NGO.
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;If you are interested let us know ASAP otherwise all seats will get occupied.
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Thanks,
&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Pravin Nirmal
&lt;br /&gt; &lt;a href="http://www.myphpdunia.com/" target="_blank" rel="nofollow"&gt;http://www.myphpdunia.com&lt;/a&gt;
  &lt;/p&gt;</description></item><item><title>VIDEO Using Jerome's Php Client Lib --aka-- REST API with php---</title><link>http://developer.myspace.com/community/forums/thread/28485.aspx</link><pubDate>Tue, 18 Nov 2008 13:33:41 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:28485</guid><dc:creator>Climate</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/28485.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=28485</wfw:commentRss><description>&lt;a href="http://myspace-php-rest-api.googlecode.com/files/myspace_php_rest_api_sscreencast.swf"&gt;Video ScreenCast on not screwing up&lt;/a&gt;
&lt;p&gt;
&lt;/p&gt;
Source and Video are also posted on Google.&lt;p&gt;
&lt;/p&gt;&lt;a href="http://code.google.com/p/myspace-php-rest-api/"&gt;http://code.google.com/p/myspace-php-rest-api/&lt;/a&gt;

&lt;p&gt;
&lt;/p&gt;
Thanks.
&lt;p&gt;
&lt;/p&gt;</description></item><item><title>banner in scrollbox for band pages </title><link>http://developer.myspace.com/community/forums/thread/21786.aspx</link><pubDate>Wed, 24 Sep 2008 11:18:19 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:21786</guid><dc:creator>Kristina </dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/21786.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=21786</wfw:commentRss><description>been looking for codes and tried a few but none work on myspace th want to put a banner code box on my band page with the image above it but it not working&lt;br /&gt;</description></item><item><title>Help on links</title><link>http://developer.myspace.com/community/forums/thread/25925.aspx</link><pubDate>Wed, 29 Oct 2008 01:40:28 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:25925</guid><dc:creator>jeremy</dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/25925.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=25925</wfw:commentRss><description>&lt;p&gt;How do I make a page for my links to switch to? I have it set up similar to mobsters,mafia, outworld, etc. &lt;/p&gt;
&lt;p&gt;I have set up the buttons but I can&amp;#39;t figure out how to make them go anywhere, when you click on &amp;quot;Next&amp;quot; or &amp;quot;I messed up&amp;quot; it doesn&amp;#39;t go anywhere. Not much programming exp. but I pretty much have the first page done. Help?&lt;/p&gt;</description></item><item><title>Sample Java Code</title><link>http://developer.myspace.com/community/forums/thread/24280.aspx</link><pubDate>Wed, 15 Oct 2008 10:54:53 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:24280</guid><dc:creator>onmobile</dc:creator><slash:comments>1</slash:comments><comments>http://developer.myspace.com/community/forums/thread/24280.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=24280</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Could anyone provide me with a sample Java code that authenticates a user and allows him to&amp;nbsp; upload pictures and videos.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks in Advance,&lt;br /&gt;Ananth&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Resizable Iframes for your apps</title><link>http://developer.myspace.com/community/forums/thread/24056.aspx</link><pubDate>Mon, 13 Oct 2008 15:15:22 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:24056</guid><dc:creator>Dmitry</dc:creator><slash:comments>1</slash:comments><comments>http://developer.myspace.com/community/forums/thread/24056.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=24056</wfw:commentRss><description>&lt;p&gt;Hey, All!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Cause I had this prob and no solutions on the forums, I decided to make small post about this in the blog..&lt;/p&gt;&lt;p&gt;So here is small howto about making resizable iframes: &lt;a href="http://www.makeperl.com/2008/10/myspace-resizable-height-iframe_10.html"&gt;Myspace resizable (height) iframe applications solution&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Source: http://www.makeperl.com/2008/10/myspace-resizable-height-iframe_10.html &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to create Application Canvas?</title><link>http://developer.myspace.com/community/forums/thread/22565.aspx</link><pubDate>Tue, 30 Sep 2008 10:16:03 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:22565</guid><dc:creator>Md.</dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/22565.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=22565</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Actually I have made an app for mysapce. But I can&amp;#39;t manage it in the CANVAS page. So, I can&amp;#39;t paly it in the myspace.&lt;/p&gt;&lt;p&gt;How Can i Use Canvas page to take the game in it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in Advance&lt;/p&gt;&lt;p&gt;sohel&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Passing data from external sources into a gadget</title><link>http://developer.myspace.com/community/forums/thread/18840.aspx</link><pubDate>Thu, 28 Aug 2008 20:45:31 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:18840</guid><dc:creator>Google</dc:creator><slash:comments>5</slash:comments><comments>http://developer.myspace.com/community/forums/thread/18840.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=18840</wfw:commentRss><description>Is there an example describing the best way to address specific gadgets from external pages?  

Say I have a web site with photos on it and I&amp;#39;d like users to be able to select a photo from the site and use it on their myspace page in a gadget that I also provide.  Ideally, I&amp;#39;d like to make a button that passes some data to a specific gadget if the owner has it installed, and redirects to the myspace gadget install page if they do not.  Alternatively, being able to write to the app data store externally would probably make this work, as I could write to some known key and then read from that key in my gadget.

Any tips about either of these approaches?</description></item><item><title>help</title><link>http://developer.myspace.com/community/forums/thread/15648.aspx</link><pubDate>Fri, 01 Aug 2008 22:05:13 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:15648</guid><dc:creator>Pk_P|RaTE</dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/15648.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=15648</wfw:commentRss><description>right just to start&lt;br /&gt;i am compleatly new to this html/java language&lt;br /&gt;the extent of what i know is this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;quot;&amp;quot;&amp;quot;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;my first web page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;body bgcolor=&amp;quot;#000000&amp;quot;&lt;br /&gt;link=&amp;quot;#FFFFFF&amp;quot;&lt;br /&gt;text=&amp;quot;#FFFFFF&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Welcome to my first web page,&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;a href=&amp;quot;page1.html&amp;quot;&amp;gt;&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt; click here to continue&amp;lt;/p&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;hr&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;&lt;br /&gt;if someone is willing to teach and help i am willing to learn&lt;br /&gt;&lt;br /&gt;thanks&lt;br /&gt;sencerly&lt;br /&gt;pkpirate&lt;br /&gt;&lt;br /&gt;p.s i dont want alot of spam male saying stuff like &amp;quot;you noob&amp;quot; and &amp;quot;why the heck did you join if you dont know how to code&amp;quot;&lt;br /&gt;&lt;br /&gt;im here to learn and we all got to start somewhere&lt;br /&gt;</description></item><item><title>Confused</title><link>http://developer.myspace.com/community/forums/thread/20970.aspx</link><pubDate>Tue, 16 Sep 2008 23:51:01 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:20970</guid><dc:creator>BaByT Da Yungin Da Newe$t Trap$tar</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/20970.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=20970</wfw:commentRss><description>&lt;p&gt;Well, as I am waiting for me to be approved. I want to know one thing.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What language do I have to learn.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I read something about Javascript, HTML and CSS in the learn tab, but it didn&amp;#39;t say speifically what is used.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Help me with this question?&lt;/p&gt;&lt;em&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&lt;/em&gt;</description></item><item><title>Developer requirements?</title><link>http://developer.myspace.com/community/forums/thread/20865.aspx</link><pubDate>Tue, 16 Sep 2008 01:22:04 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:20865</guid><dc:creator>Z /-\ ( l-l</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/20865.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=47&amp;PostID=20865</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m completely new to Javascript, apps, etc., but I&amp;#39;m a college student willing to learn the needed skills on the side. I may even be interested in taking some online programming courses.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Before I go completely gung-ho on this (promising) MySpace App development, though, I noticed a required field in your Developer Application form.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I do not own or work for a developing company nor do I have a website. Do I need to start a company and/or website to start developing (seeing as it is marked as a required field). If not, what do I enter in this field?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;EDIT: Ah, shoot. I put this in the wrong forum. My bad. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>