<?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>Data Store API</title><link>http://developer.myspace.com/community/forums/36.aspx</link><description>Questions and Answers related to the Data Store API</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20910.1126)</generator><item><title>(Example Code) Global App Data </title><link>http://developer.myspace.com/community/forums/thread/6814.aspx</link><pubDate>Fri, 04 Apr 2008 13:24:40 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:6814</guid><dc:creator>Jeremy</dc:creator><slash:comments>10</slash:comments><comments>http://developer.myspace.com/community/forums/thread/6814.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=6814</wfw:commentRss><description>&lt;p&gt;This come up recently, and it&amp;#39;s now implemented. It works a bit differently than Person App Data, so I thought I&amp;#39;d post some code:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;!-- Some HTML for UI and output --&amp;gt;&amp;nbsp;&lt;br /&gt;&amp;lt;form name=&amp;quot;data_test&amp;quot;&amp;gt;&lt;br /&gt;Key:&amp;lt;input name=&amp;quot;key&amp;quot; value=&amp;quot;key&amp;quot;/&amp;gt;&amp;lt;/br&amp;gt;&lt;br /&gt;Value:&amp;lt;input name=&amp;quot;value&amp;quot;&amp;nbsp; value=&amp;quot;value&amp;quot;/&amp;gt;&amp;lt;/br&amp;gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;button&amp;quot; onclick=&amp;quot;updateData();&amp;quot; value=&amp;quot;Update Data&amp;quot; /&amp;gt;&amp;lt;/br&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;hr /&amp;gt;&lt;br /&gt;&amp;lt;div id=&amp;quot;output&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;input type=&amp;quot;button&amp;quot; onclick=&amp;quot;readData();&amp;quot; value=&amp;quot;Read Data&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;!-- Script section for reading and updating data --&amp;gt;&lt;br /&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; id=&amp;quot;global_data_test&amp;quot;&amp;gt;&lt;br /&gt;function updateData() {&lt;br /&gt;&amp;nbsp; var os = opensocial.Container.get();&lt;br /&gt;&amp;nbsp; var dr = os.newDataRequest();&lt;br /&gt;&amp;nbsp; var key = document.data_test.key.value;&lt;br /&gt;&amp;nbsp; var value = document.data_test.value.value;&lt;br /&gt;&amp;nbsp; dr.add(os.newUpdatePersonAppDataRequest(MyOpenSpace.Group.GLOBAL_APP_DATA, key, value), &amp;#39;appvar&amp;#39;);&lt;br /&gt;&amp;nbsp; dr.send(updateSent);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;function updateSent(response) {&lt;br /&gt;&amp;nbsp; if(response.hadError()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&amp;#39;output&amp;#39;).innerHTML = &amp;quot;Error updating data.&amp;quot;;&lt;br /&gt;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Because of the async way data is updated, you should probably&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;refresh before attempting to read.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&amp;#39;output&amp;#39;).innerHTML = &amp;quot;Global data updated!&amp;lt;br&amp;gt;&amp;lt;i&amp;gt;Wait a moment or refresh before reading.&amp;lt;/i&amp;gt;&amp;quot;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;function readData() {&lt;br /&gt;&amp;nbsp; var os = opensocial.Container.get();&lt;br /&gt;&amp;nbsp; var dr = os.newDataRequest();&lt;br /&gt;&amp;nbsp; //&amp;nbsp;I don&amp;#39;t know the name(s) of the keys, so collect them all&lt;br /&gt;&amp;nbsp; dr.add(os.newFetchPersonAppDataRequest(MyOpenSpace.Group.GLOBAL_APP_DATA, &amp;#39;*&amp;#39;), &amp;#39;appvar&amp;#39;);&lt;br /&gt;&amp;nbsp; dr.send(fetchSent);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;function fetchSent(response) {&lt;br /&gt;&amp;nbsp; var data = response.get(&amp;#39;appvar&amp;#39;).getData();&lt;br /&gt;&amp;nbsp; var html =&amp;nbsp;&amp;#39;&amp;#39;;&lt;br /&gt;&amp;nbsp; // Go through each key-value pair. Note the difference from a Person App Data call&lt;br /&gt;&amp;nbsp; // using a PersonId -- the&amp;nbsp;data collection isn&amp;#39;t keyed to an Id&amp;nbsp;or other value.&lt;br /&gt;&amp;nbsp; for(var key in data) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; html += key + &amp;quot; : &amp;quot; + data[key] + &amp;quot;&amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; document.getElementById(&amp;#39;output&amp;#39;).innerHTML = html;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;And, in case anyone is wondering - Global data is &lt;i&gt;global&lt;/i&gt; - it&amp;#39;s the same across all App installations.&lt;/p&gt;</description></item><item><title>Invite Friends not working in IE</title><link>http://developer.myspace.com/community/forums/thread/43740.aspx</link><pubDate>Mon, 12 Oct 2009 13:04:17 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:43740</guid><dc:creator>Device</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/43740.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=43740</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;We have implemented App Invite code in our application taken from your documentation.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Currently the code is working fine in Firefox but due to some reason it is not working in IE.&lt;/p&gt;&lt;p&gt;When we click on invite after selecting friends, it is not working.&lt;/p&gt;&lt;p&gt;No error messages shown or javascript error occurs.&lt;/p&gt;&lt;p&gt;Our appid is 154977.&lt;/p&gt;&lt;p&gt;Any help is appreciated.&lt;/p&gt;&lt;p&gt;Thanx, &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Simple API for Data Storage, OpenSocial 0.8</title><link>http://developer.myspace.com/community/forums/thread/38474.aspx</link><pubDate>Mon, 06 Apr 2009 18:11:32 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:38474</guid><dc:creator>Arshavir</dc:creator><slash:comments>8</slash:comments><comments>http://developer.myspace.com/community/forums/thread/38474.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=38474</wfw:commentRss><description>&lt;p&gt;There seem to be plenty of examples for using the data store API to persist widget items, but&amp;nbsp; none of these examples seem to completely work. Can someone just post a simple---working---example of posting a piece of data, getting it back via a callback, and then using it in the callback function to display it on screen. Thanks.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>opensocial FetchPersonAppData and Owner.getId()</title><link>http://developer.myspace.com/community/forums/thread/41932.aspx</link><pubDate>Sat, 27 Jun 2009 12:27:23 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:41932</guid><dc:creator>Jens</dc:creator><slash:comments>1</slash:comments><comments>http://developer.myspace.com/community/forums/thread/41932.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=41932</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;I&amp;#39;m kind of stuck on using the datastore api of opensocial. According to &lt;a href="http://code.google.com/intl/de-DE/apis/opensocial/docs/0.8/devguide.html#Persistent" target="_blank"&gt;this&lt;/a&gt;. The returned Data is indexed by the user id. When I try to get the userid of the owner object on myspace, I get something like &amp;quot;myspace:123456&amp;quot; with the number being the required user id. So I can&amp;#39;t access the fields with var mydata = data[owner.getId()]; Sure, I could parse the string returned by owner.getId but that would break the compability of that gadget with other opensocial containers, wouldn&amp;#39;t it? Am I missing something?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Jens &lt;br /&gt;&lt;/p&gt;</description></item><item><title>datastore?</title><link>http://developer.myspace.com/community/forums/thread/39360.aspx</link><pubDate>Tue, 28 Apr 2009 03:33:13 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:39360</guid><dc:creator>HexaTex</dc:creator><slash:comments>4</slash:comments><comments>http://developer.myspace.com/community/forums/thread/39360.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=39360</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;So I&amp;#39;ve spent all day looking through the myspace developers wiki and have had trouble finding information on the data storing functionallity of myspace apps.... can anyone point me in the right direction? I would love to get a working example script. &lt;/p&gt;&lt;p&gt;Thnx in advanced! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>appdata always return false, though in the http get request, the value is there.</title><link>http://developer.myspace.com/community/forums/thread/38677.aspx</link><pubDate>Fri, 10 Apr 2009 06:45:52 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:38677</guid><dc:creator>mulan</dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/38677.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=38677</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I tried the opensocial .8 get appdata api, it works before. do not know why all in a sudden, it does not returned right data.&lt;/p&gt;&lt;p&gt;from the&amp;nbsp; firefox firebug console, the get return the right data,&amp;nbsp;&lt;/p&gt;&lt;pre&gt;&amp;lt;user xsi:schemaLocation=&amp;quot;http://api.myspace.com/MySpaceAPI_1.1.xsd&amp;quot; xmlns=&amp;quot;api-v1.myspace.com&amp;quot; xmlns&lt;br /&gt;:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xmlns:xsd=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&amp;gt;&amp;lt;userid&lt;br /&gt;&amp;gt;460964847&amp;lt;/userid&amp;gt;&amp;lt;uri&amp;gt;http://api.msappspace.com/opensocial-api-v1.svc/XML/opensocial/OWNER&amp;lt;/uri&amp;gt;&amp;lt;appdata&lt;br /&gt; count=&amp;quot;1&amp;quot;&amp;gt;&lt;b&gt;&amp;lt;key name=&amp;quot;entry&amp;quot; value=&amp;quot;valueentry&amp;quot;/&amp;gt;&lt;/b&gt;&amp;lt;/appdata&amp;gt;&amp;lt;/user&amp;gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;but when in the callback function, parse the response, it always return false.&lt;/pre&gt;&lt;pre&gt;any clue?&lt;/pre&gt;&lt;pre&gt;appId=133244 &lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Saving and Retrieving data</title><link>http://developer.myspace.com/community/forums/thread/17213.aspx</link><pubDate>Fri, 15 Aug 2008 17:34:37 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:17213</guid><dc:creator>Hart</dc:creator><slash:comments>1</slash:comments><comments>http://developer.myspace.com/community/forums/thread/17213.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=17213</wfw:commentRss><description>&lt;p&gt;Is there any way to save and retrieve data per instance of an app?&amp;nbsp; What I am essentially trying to do is have the app save some data from a cookie after the user installs it, then anybody who views their app will see that saved data.&amp;nbsp; Here is the error I am getting when trying to add my app:&lt;/p&gt;&lt;p&gt;&amp;nbsp;http://api.msappspace.com/opensocial-api-v1.svc/XML/opensocial/OWNER/appdata/embedtxt?opensocial_surface=canvas&amp;amp;ts=1218821207716&lt;/p&gt;&lt;div class="netInfoResponseText netInfoText"&gt;&lt;pre&gt;&amp;lt;error xmlns=&amp;quot;api-v1.myspace.com&amp;quot;&amp;gt;&amp;lt;statuscode&amp;gt;401&amp;lt;/statuscode&amp;gt;&amp;lt;statusdescription&amp;gt;User has not installed&lt;/pre&gt;&lt;pre&gt; the current application or application does not have access to requested resource&amp;lt;/statusdescription&lt;/pre&gt;&lt;pre&gt;&amp;gt;&amp;lt;/error&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;I don&amp;#39;t understand what&amp;#39;s going wrong here, because clearly the the user in this case is the OWNER, and the user has installed the application at the time of this call... &lt;/p&gt;&lt;p&gt;&amp;nbsp;Here is my code that I am using to save and load:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;function saveData(val)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var saveVal = escape(val);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var req = opensocial.newDataRequest();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; req.add(req.newUpdatePersonAppDataRequest(&amp;quot;VIEWER&amp;quot;,&amp;quot;embedtxt&amp;quot;, saveVal),&amp;quot;data&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; req.send(onDataSaved);&lt;br /&gt;}&lt;br /&gt;function onDataSaved(){}&lt;br /&gt;&lt;br /&gt;function loadData() {&lt;br /&gt;&amp;nbsp; var req = opensocial.newDataRequest();&lt;br /&gt;&amp;nbsp; req.add(req.newFetchPersonAppDataRequest(&amp;quot;OWNER&amp;quot;,&amp;quot;embedtxt&amp;quot;),&amp;quot;data&amp;quot;);&lt;br /&gt;&amp;nbsp; req.send(onDataLoaded);&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;function onDataLoaded(returnData)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById(&amp;#39;loading&amp;#39;).style.display = &amp;#39;none&amp;#39;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dataObj = returnData.get(&amp;quot;data&amp;quot;); &lt;/p&gt;&lt;p&gt;} &lt;br /&gt;&lt;/p&gt;</description></item><item><title>is it possible to grab one of the owner's friends by id?</title><link>http://developer.myspace.com/community/forums/thread/14607.aspx</link><pubDate>Sat, 19 Jul 2008 00:03:39 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:14607</guid><dc:creator>Votigo.com</dc:creator><slash:comments>1</slash:comments><comments>http://developer.myspace.com/community/forums/thread/14607.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=14607</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;i have an app where i am trying to get soem data for the owner&amp;#39;s friends.&amp;nbsp; i dont want to use OWNER_FRIENDS and get all of the friends, just a few, and i already know their ids.&amp;nbsp; when i use the code:&amp;nbsp; &lt;/p&gt;&lt;p&gt;req.add (req.newFetchPeopleRequest(id,opt_params), &amp;#39;ownerFriends&amp;#39;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;firebug shows me that i am hitting:&lt;/p&gt;&lt;p&gt;&amp;nbsp;http://api.msappspace.com/opensocial-api-v1.svc/JSON/opensocial/VIEWER/friends/id?opensocial_surface=canvas&amp;amp;ts=1216425269968&lt;/p&gt;&lt;p&gt;&amp;nbsp;does this mean that i can only get friends of the *viewer* in this way?!&amp;nbsp; or is there a way to do the same for the owner? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>getting readyState of newFetchPersonAppDataRequest</title><link>http://developer.myspace.com/community/forums/thread/14007.aspx</link><pubDate>Thu, 10 Jul 2008 15:43:49 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:14007</guid><dc:creator>TMadmin</dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/14007.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=14007</wfw:commentRss><description>&lt;p&gt;Hello everyone,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have noticed that in parts of my code, I attempt to retrieve app data and set it as a function return value.&amp;nbsp; This works fine, however, the data may not exactly be retrieved in time, and may return the previous value of the function, or &amp;quot;undefined&amp;quot; because the data hasn&amp;#39;t been retrieved yet.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Is there any way for me to wait on readyState for newFetchPersonAppDataRequest?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to delete app data?</title><link>http://developer.myspace.com/community/forums/thread/9447.aspx</link><pubDate>Tue, 06 May 2008 17:09:40 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:9447</guid><dc:creator>Jevgenijs</dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/9447.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=9447</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying the following code to delete all data. It showing correct keys, but not deleting data. Same code works for Hi5 and Orkut. Any suggestions?&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&amp;nbsp;&amp;nbsp;&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; var request = opensocial.newDataRequest();&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; for (var key in vwdata[viewer.id]){&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; if (key &amp;amp;&amp;amp; key !== &amp;quot;undefined&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;&amp;nbsp; request.add(request.newUpdatePersonAppDataRequest(&amp;quot;VIEWER&amp;quot;,key,&amp;nbsp; &amp;quot;&amp;quot;),&amp;quot;status&amp;quot;);&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; }&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.send(status);&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Storing preference data for a given instance of an app?</title><link>http://developer.myspace.com/community/forums/thread/7281.aspx</link><pubDate>Thu, 10 Apr 2008 05:43:20 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:7281</guid><dc:creator>Roig</dc:creator><slash:comments>17</slash:comments><comments>http://developer.myspace.com/community/forums/thread/7281.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=7281</wfw:commentRss><description>&lt;p&gt;Ok... I&amp;#39;m totally retarded, I think, and maybe I just need to experiment... but what is the proper way to store preference data for a given application?&amp;nbsp; Can I store it within myspace itself... or should I just save &amp;#39;n&amp;#39; load it from my server?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Is it possible to share data between app instances?</title><link>http://developer.myspace.com/community/forums/thread/13162.aspx</link><pubDate>Tue, 01 Jul 2008 07:09:30 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:13162</guid><dc:creator>Zoasterboy</dc:creator><slash:comments>5</slash:comments><comments>http://developer.myspace.com/community/forums/thread/13162.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=13162</wfw:commentRss><description>I need to be able to persist data between two instances of an app. Is this in any ways possible? Can a user view data stored for his/her friends app?&lt;br /&gt;</description></item><item><title>Length limit on fields?</title><link>http://developer.myspace.com/community/forums/thread/13301.aspx</link><pubDate>Wed, 02 Jul 2008 22:14:09 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:13301</guid><dc:creator>Mn</dc:creator><slash:comments>6</slash:comments><comments>http://developer.myspace.com/community/forums/thread/13301.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=13301</wfw:commentRss><description>&lt;p&gt;How many characters can go in a string I store via newUpdatePersonAppDataRequest? &lt;/p&gt;</description></item><item><title>Storing Data On a Database, Retrieving In App</title><link>http://developer.myspace.com/community/forums/thread/12864.aspx</link><pubDate>Thu, 26 Jun 2008 20:22:11 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:12864</guid><dc:creator>Connor</dc:creator><slash:comments>1</slash:comments><comments>http://developer.myspace.com/community/forums/thread/12864.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=12864</wfw:commentRss><description>&lt;p&gt;Hi, I don&amp;#39;t know if this is the correct place to post this, but if someone could help, that would be great.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I am trying to do is have a canvas page (which I have) in which the user enters a value into a field and it enters it into a MySQL database. That works fine. What I need to do is get the value from the database based off of the user&amp;#39;s ID and then use it in the profile box. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 1: User Enters Data on Canvas Page (iFrame) -&amp;gt; MySQL Database&lt;br /&gt;Profile: Contacts DB -&amp;gt; DB sends data back based of off User ID&lt;/p&gt;&lt;p&gt;Once again any help would be appreciated! &lt;/p&gt;</description></item><item><title>Unable to update VIEWER data</title><link>http://developer.myspace.com/community/forums/thread/12739.aspx</link><pubDate>Wed, 25 Jun 2008 06:05:50 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:12739</guid><dc:creator>Pete</dc:creator><slash:comments>3</slash:comments><comments>http://developer.myspace.com/community/forums/thread/12739.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=12739</wfw:commentRss><description>&lt;p&gt;I have been working on a script that would allow a user insert a key
code into a field for later retrieval.&amp;nbsp; The first part of the script
checks to see if the OWNER and the VIEWER are&amp;nbsp; the same&amp;nbsp; using the ID
field.&amp;nbsp; If they are then it checks to see if there is any data in a
particular key that I have defined called &amp;quot;IDENT&amp;quot;.&amp;nbsp;&amp;nbsp; If the value comes
back as &amp;quot;undefined&amp;quot;,&amp;nbsp; the user is prompted with a form&amp;nbsp; that asks for a
pass code. When this form is submitted it goes to a function that uses
&amp;#39;UpdatePersonAppDataRequest()&amp;#39; to update the key &amp;quot;IDENT&amp;quot;.&amp;nbsp;&amp;nbsp; It then
goes to a callback function that alerts if there is an error or not.&amp;nbsp;
If there is no error it goes back to check to see if the key &amp;quot;IDENT&amp;quot;
has been updated.&lt;br /&gt;
&lt;br /&gt;
Here is the issue. When I call &amp;#39;UpdatePersonAppDataRequest()&amp;#39;&amp;nbsp; and
attempt to update the &amp;quot;IDENT&amp;quot; field it comes back with no errors, but
when I try to check to see if this field now contains a value it still
comes back as &amp;#39;undefined&amp;#39;. I have checked to see if the value is being passed from the form and it is.&amp;nbsp; Am I missing something here?&amp;nbsp; Below is the
code I have been working on.&amp;nbsp; I would appreciate any input&amp;nbsp; anyone
might have.&amp;nbsp; Thanks in advance&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;var os;&lt;br /&gt;var dataReqObj;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function init() {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; os = opensocial.Container.get();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataReqObj = os.newDataRequest();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var viewerReq = os.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ownerReq = os.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataReqObj.add(viewerReq);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataReqObj.add(ownerReq);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataReqObj.send(viewerResponse);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function viewerResponse(data) {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var viewer = data.get(opensocial.DataRequest.PersonId.VIEWER).getData();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var viewer_id = viewer.getId();&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var owner = data.get(opensocial.DataRequest.PersonId.OWNER).getData();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var owner_id = owner.getId();&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;//check to see if they have posted data yet if not we will prompt them to enter their pass key&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(owner_id == viewer_id)&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;//if the external id is undefined we need to prompt the user for a value&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ext =&amp;nbsp; viewer.getField(opensocial.Person.Field.IDENT);&lt;br /&gt;&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; if(ext == undefined) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(ext);&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; prompt_form();&amp;nbsp;&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; }else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(&amp;#39;fubar&amp;#39;);&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //end if owner&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp; // end function viewer response &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function prompt_form()&amp;nbsp;&amp;nbsp; {&lt;br /&gt;var sty = &amp;quot;.style&amp;quot;;&lt;br /&gt;var formFrame = eval(&amp;#39;document.getElementById(&amp;quot;linkbox&amp;quot;)&amp;#39; + sty);&lt;br /&gt;formFrame.visibility = &amp;quot;visible&amp;quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function keyCode() {&lt;br /&gt;var&amp;nbsp; keyfield = document.form1.keycode.value;&lt;br /&gt;var req = opensocial.newDataRequest();&lt;br /&gt;req.add(req.newUpdatePersonAppDataRequest(opensocial.DataRequest.PersonId.VIEWER,&amp;quot;IDENT&amp;quot;,&amp;quot;keyfield&amp;quot;),&amp;quot;set_data&amp;quot;);&lt;br /&gt;req.send(set_callback);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function set_callback(response) {&lt;br /&gt;&amp;nbsp; if (response.get(&amp;quot;set_data&amp;quot;).hadError()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; alert(&amp;#39;there was an error&amp;#39;)&lt;br /&gt;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; init();&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;init();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Storing owner data</title><link>http://developer.myspace.com/community/forums/thread/12700.aspx</link><pubDate>Tue, 24 Jun 2008 13:31:31 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:12700</guid><dc:creator>Pete</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/12700.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=12700</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am new to open social. Is there a way to store specific information about the owner for an application? For instance, a specific variable like a username and an acess key.&amp;nbsp; This would then be retreived and posted to the an URL that would return a specific page. &lt;/p&gt;</description></item><item><title>List all available keys</title><link>http://developer.myspace.com/community/forums/thread/12191.aspx</link><pubDate>Tue, 17 Jun 2008 18:02:30 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:12191</guid><dc:creator>TMadmin</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/12191.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=12191</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I need to be able to list all available keys.&amp;nbsp; My application creates keys for each instance of an item created---and they are prefixed with the application name.&amp;nbsp; So a key may be named&lt;br /&gt;&lt;br /&gt;myApplication_122312&lt;/p&gt;&lt;p&gt;&amp;nbsp;I need to be able to list all keys available and list them by the application &amp;quot;prefix&amp;quot;. What would I do to be able to do this? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Dynamic url for content type Options </title><link>http://developer.myspace.com/community/forums/thread/11299.aspx</link><pubDate>Tue, 03 Jun 2008 16:47:22 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:11299</guid><dc:creator>Siva</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/11299.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=11299</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;br /&gt;Is it possible to send dynamic url for content type href value? &lt;br /&gt;&lt;br /&gt;Example&amp;nbsp; :-&lt;br /&gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;var server_url=&amp;quot;&amp;quot;;&lt;br /&gt;&lt;br /&gt;function init() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Set the owner id so we don&amp;#39;t have to use it later&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var personId = opensocial.DataRequest.PersonId.OWNER;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; server_url=&amp;quot;http://www.example.com/opensocial/osMain.jsp?personId=&amp;quot;+personId &lt;br /&gt;}&lt;br /&gt;init();&lt;br /&gt;&amp;lt;/script&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;Content type=&amp;quot;url&amp;quot; href=&amp;quot;{server_url}&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;Please guide me how to pass dynamic URL in content type.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Siva&lt;/p&gt;</description></item><item><title>Is it possible to upload a photo to a user's album using OpenSocial or REST API?</title><link>http://developer.myspace.com/community/forums/thread/10707.aspx</link><pubDate>Sun, 25 May 2008 22:38:06 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:10707</guid><dc:creator>Andrei</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/10707.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=10707</wfw:commentRss><description>&lt;p&gt;Can someone tell me if it&amp;#39;s possible to upload a new photo to a user&amp;#39;s profile using the REST API? If not then is it possible to do it using Open Social? &lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;</description></item><item><title>Is Data Store What I'm Looking For?</title><link>http://developer.myspace.com/community/forums/thread/10283.aspx</link><pubDate>Sun, 18 May 2008 17:30:39 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:10283</guid><dc:creator>Zoasterboy</dc:creator><slash:comments>0</slash:comments><comments>http://developer.myspace.com/community/forums/thread/10283.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=10283</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;After trying to figure out how to get Data Store to work, and reading about how crippled it seems to be, I have a question.&lt;/p&gt;&lt;p&gt;Is Data Store what I need for the app I&amp;#39;m building?&lt;/p&gt;&lt;p&gt;The app I&amp;#39;m building will need to be able to create a few simple pieces of data for each user that uses the app. These pieces of data need to be accessible to all other users. Can Data Store do this? Or was the sharing functionality lost when Global Data was taken away?&lt;/p&gt;&lt;p&gt;Should I just look more into makeRequest and storing data server side? I would prefer not needing to store data through a 3rd party server, is there an alternative?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks! :)&amp;nbsp;&lt;/p&gt;</description></item><item><title>REST API for accessing App Data?</title><link>http://developer.myspace.com/community/forums/thread/6113.aspx</link><pubDate>Fri, 28 Mar 2008 03:36:26 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:6113</guid><dc:creator>STEVE!</dc:creator><slash:comments>5</slash:comments><comments>http://developer.myspace.com/community/forums/thread/6113.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=6113</wfw:commentRss><description>&lt;p&gt;If this is / will be supported, I&amp;#39;d like to know. (especially the group fetch)&lt;/p&gt;&lt;p&gt;Thank you!&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Steve&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Data API working?</title><link>http://developer.myspace.com/community/forums/thread/9892.aspx</link><pubDate>Mon, 12 May 2008 19:35:56 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:9892</guid><dc:creator>gWidgets</dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/9892.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=9892</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to do just a simple application feature that stores comments for the VIEWER and retrieves all comments using the OWNER_FRIENDS.&amp;nbsp; That will give me a list of all comments made by any owner friends running the app.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s some basic code that does NOT work (Outputs &amp;quot;VIEWER_DATA=undefined&amp;quot;):&lt;/p&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;
&lt;p align="left"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; os;&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;
&lt;p align="left"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; dataRequest;&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;
&lt;p align="left"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; dataKey=&lt;/font&gt;&lt;font color="#008000" size="1"&gt;&amp;quot;comment&amp;quot;&lt;/font&gt;&lt;font size="1"&gt;;&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; dataValue = &lt;/font&gt;&lt;font color="#008000" size="1"&gt;&amp;quot;here is a comment&amp;quot;&lt;/font&gt;&lt;font size="1"&gt;;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;function&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; submitComment()&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;{&lt;/p&gt;
&lt;p align="left"&gt;os = opensocial.Container.get();&lt;/p&gt;
&lt;p align="left"&gt;dataRequest = os.newDataRequest();&lt;/p&gt;
&lt;p align="left"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; param = {};&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;param[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.ID,MyOpenSpace.Person.Field.ABOUT,MyOpenSpace.Person.Field.BOOKS];&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; VIEWERReq = os.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER, param);&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;dataRequest.add(VIEWERReq);&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; DATA_UPDATEReq = dataRequest.newUpdatePersonAppDataRequest(opensocial.DataRequest.PersonId.VIEWER, dataKey, dataValue);&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;dataRequest.add(DATA_UPDATEReq);&lt;/p&gt;
&lt;p align="left"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; DATA_FETCHReq = dataRequest.newFetchPersonAppDataRequest(opensocial.DataRequest.PersonId.VIEWER, dataKey);&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt;dataRequest.add(DATA_FETCHReq, &lt;/font&gt;&lt;font color="#008000" size="1"&gt;&amp;quot;uniquekeyforfetching&amp;quot;&lt;/font&gt;&lt;font size="1"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p align="left"&gt;dataRequest.send(getResponse);&lt;/p&gt;
&lt;p align="left"&gt;}&lt;/p&gt;
&lt;p align="left"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;function&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; getResponse(response)&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;{&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; VIEWER = response.get(opensocial.DataRequest.PersonId.VIEWER).getData();&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; VIEWER_ID = VIEWER.getField(opensocial.Person.Field.ID);&lt;/p&gt;&lt;/font&gt;&lt;b&gt;&lt;font color="#0000c8" size="1"&gt;var&lt;/b&gt;&lt;/font&gt;&lt;font size="1"&gt; VIEWER_DATA = response.get(&lt;/font&gt;&lt;font color="#008000" size="1"&gt;&amp;quot;uniquekeyforfetching&amp;quot;&lt;/font&gt;&lt;font size="1"&gt;).getData()[VIEWER_ID];&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0064c8" size="1"&gt;alert&lt;/font&gt;&lt;font size="1"&gt; (&lt;/font&gt;&lt;font color="#008000" size="1"&gt;&amp;quot;VIEWER_DATA=&amp;quot;&lt;/font&gt;&lt;font size="1"&gt; + VIEWER_DATA[dataKey] );&lt;/font&gt;&lt;/font&gt;&lt;font size="1"&gt; 
&lt;p align="left"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Guys, what am I doing wrong here?&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Having problems with "OWNER" data</title><link>http://developer.myspace.com/community/forums/thread/9814.aspx</link><pubDate>Sun, 11 May 2008 08:47:25 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:9814</guid><dc:creator>o1&amp;#169;</dc:creator><slash:comments>2</slash:comments><comments>http://developer.myspace.com/community/forums/thread/9814.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=9814</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to save a custom field that appears in the canvas view, then is utilized in the profile view.&amp;nbsp; I&amp;#39;ve tried to do this a couple ways and can&amp;#39;t seem to nail it.&amp;nbsp; I did have some data writing succesfully but only when I used the &amp;quot;VIEWER&amp;quot; special ID. &lt;/p&gt;&lt;p&gt;Here&amp;#39;s an example of the latest attempt:&lt;/p&gt;&lt;blockquote&gt;function write1() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ownerreq = opensocial.newDataRequest();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ownerreq.add(ownerreq.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER), &amp;#39;owner_id&amp;#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ownerreq.send(write2);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function write2(response) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var temp = response.get(&amp;#39;owner_id&amp;#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ownerID = temp.getData().getId();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var req = opensocial.newDataRequest();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; req.add(req.newUpdatePersonAppDataRequest(ownerID, &amp;quot;url&amp;quot;, feedUrlField.value ));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; req.send(write3);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function write3(response) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(response.hadError()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; statusField.innerHTML = &amp;quot;Error updating data... &amp;quot; + response.getError();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; statusField.innerHTML = &amp;quot;Data Saved...&amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function read1() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ownerreq = opensocial.newDataRequest();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ownerreq.add(ownerreq.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER), &amp;#39;owner_id&amp;#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ownerreq.send(read2);&lt;br /&gt;}&lt;br /&gt;function read2(response) {&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var temp = response.get(&amp;#39;owner_id&amp;#39;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ownerID = temp.getData().getId();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var req = opensocial.newDataRequest();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fields = [ &amp;quot;url&amp;quot; ];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; req.add(req.newFetchPersonAppDataRequest(ownerID, fields), &amp;quot;owner_data&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; req.send(readDataFetch);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function read3(response) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mydata = response.get(&amp;quot;owner_data&amp;quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data = mydata.getData();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(var key in data) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (var key2 in data[key]) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; alert(data[key][key2]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;/blockquote&gt;&amp;nbsp;Please any help??&amp;nbsp;</description></item><item><title>External Application Authentication Error</title><link>http://developer.myspace.com/community/forums/thread/8849.aspx</link><pubDate>Mon, 28 Apr 2008 12:14:01 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:8849</guid><dc:creator>apirestful</dc:creator><slash:comments>1</slash:comments><comments>http://developer.myspace.com/community/forums/thread/8849.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=8849</wfw:commentRss><description>&lt;p&gt;&lt;u&gt;Question 1:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;When testing the  External Application Authentication (http://developer.myspace.com/modules/apis/pages/accessdelegationtool.aspx) &lt;br /&gt;&lt;br /&gt;im obtaining a 500 error in the Step 3 of 5:&lt;br /&gt;&lt;br /&gt;&lt;span id="ctl00_MainContentPlaceHolder_MessageLabel" class="alert-message"&gt;&amp;quot;InternalServerError - 500Object reference not set to an instance of an object.&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(As &lt;/span&gt;&lt;span id="ctl00_MainContentPlaceHolder_MessageLabel" class="alert-message"&gt;Callback URI i set &amp;nbsp; &amp;quot; http://developer.myspace.com/modules/apis/pages/accessdelegationtool.aspx &amp;quot; and submitted a valid user in the login (same user that the aplication register user)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any can help me?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;u&gt;Question 2:&lt;br /&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I think the info about the External Application Authentication isnt enougth, can anybody send me extra info? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>storing appdata via REST not working anymore?</title><link>http://developer.myspace.com/community/forums/thread/8272.aspx</link><pubDate>Mon, 21 Apr 2008 22:08:38 GMT</pubDate><guid isPermaLink="false">8e485011-333f-425c-b84a-1febdb8bfab0:8272</guid><dc:creator>Mike</dc:creator><slash:comments>3</slash:comments><comments>http://developer.myspace.com/community/forums/thread/8272.aspx</comments><wfw:commentRss>http://developer.myspace.com/community/forums/commentrss.aspx?SectionID=36&amp;PostID=8272</wfw:commentRss><description>&lt;p&gt;I just noticed today (although it may have started happening earlier) that I am unable to PUT data into the data store via REST.&amp;nbsp; I am still able to GET data via REST but now everytime i try to PUT data i always get the same response back:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;span id="1fm8"&gt;&amp;lt;error xmlns=&amp;quot;&lt;a href="http://api-v1.myspace.com/"&gt;api-v1.myspace.com&lt;/a&gt;&amp;quot;&amp;gt;&amp;lt;statuscode&amp;gt;401&amp;lt;/statuscode&amp;gt;&amp;lt;message&amp;gt;Application does not have the required permissions to make this call.&amp;lt;/message&amp;gt;&amp;lt;/error&amp;gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;As far as I know, I have not changed any of my code, or my settings or permissions anywhere, the app is&amp;nbsp; installed and there are no limitations&amp;nbsp; set via the app settings.&amp;nbsp; The call is being made to &lt;span id="1fmf"&gt;http://api.myspace.com/v1/users/&amp;lt;userid&amp;gt;/appdata.xml so its not the msappspace domain problem. &amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;any thoughts?&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>