[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-15 Thread Jason
Hi Swapnil. Excellent point -- the current user has to install the app before it can store data associated with that user. So yes, if the VIEWER object returned is non-null (indicating the current user has the app), then you can safely call newUpdatePersonAppDataRequest. You shouldn't otherwise.

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-15 Thread hwked
Thanks Jason! I was able to develop a workaround :) On Oct 15, 2:50 am, "Swapnil Shinde" <[EMAIL PROTECTED]> wrote: > Jason, > Can the app write to the VIEWER's data store even if the viewer has not > installed the app? If the viewer object is not null does that mean we can > safely write to the

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-14 Thread Swapnil Shinde
Jason, Can the app write to the VIEWER's data store even if the viewer has not installed the app? If the viewer object is not null does that mean we can safely write to the VIEWER's data store? Thanks, Swapnil. On Tue, Oct 14, 2008 at 2:27 PM, Jason <[EMAIL PROTECTED]> wrote: > > Your syntax is

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-14 Thread Jason
Your syntax is correct, but orkut does not allow applications to write to any other user's app data other than that of the current user. This prevents me from overwriting another user's data and with potentially malicious content. Your app should still be able to fetch OWNER data, but you will onl

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-14 Thread hwked
Just to add. Data retrieval using " req.add(req.newFetchPersonAppDataRequest("OWNER",'twitterid'),'userdata'); " works fine. The problem occurs in " req.add(req.newUpdatePersonAppDataRequest("OWNER",'twitterid',twit_id)); " However, if I replace OWNER with VIEWER in the above statement, it works

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-14 Thread hwked
Ah I just tried this, and it worked out. If I replace "OWNER" with "VIEWER" everywhere, it works out. Why isn't it working for OWNER ?? On Oct 14, 9:05 am, hwked <[EMAIL PROTECTED]> wrote: > It doesn't seem to be working for me. Neither at sandbox.orkut.com nor > at prod.sandbox.orkut.com . I al