Perfect! Supposed that you were doing that :-)
Regards,
Robson Dantas
2010/8/3 kh1m
> I try. This is not work in my case. But your answer give me an idea
> and it is work:
> function saveViewerPersistence(key,value){
>var req = opensocial.newDataRequest();
>req.add(req.newUpdat
I try. This is not work in my case. But your answer give me an idea
and it is work:
function saveViewerPersistence(key,value){
var req = opensocial.newDataRequest();
req.add(req.newUpdatePersonAppDataRequest("VIEWER", key,
gadgets.json.stringify(value)));
req.send(checkSend)
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.
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
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
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
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
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
It doesn't seem to be working for me. Neither at sandbox.orkut.com nor
at prod.sandbox.orkut.com . I already tried clearing my browser cache
here is the relevant piece of code:
function storeSettings()
{
var req = opensocial.newDataRequest();
var twit_id = "ahujaankit";
Hi JSON. No, an initial fetch is necessary in order to retrieve the
data that you want to append to. If you fire a data request for the
OWNER and/or VIEWER when your application first loads, you can fetch
the desired app data at the same time. If you manage the returned data
in memory from that po
Yes, this issue has been fixed in the sandbox. If it is still not
working, you may need to clear your browser's cache, which may be
storing the outdated JavaScript.
- Jason
On Oct 1, 7:05 am, "A. Chapin" <[EMAIL PROTECTED]> wrote:
> It seems like the sandbox is up and working again.
--~--~--
It seems like the sandbox is up and working again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe f
Yes, newUpdatePersonAppDataRequest is broken on the sandbox. If you
need to test your apps which rely on persistence, please use
http://prod.sandbox.orkut.com instead which is configured identically
to production orkut. Apologies for the slight inconvenience.
- Jason
On Sep 15, 11:26 pm, peps <[
Any ideas anyone? If someone knows what has happened with orkut
sandbox for this not to work and/or to make it work, please let me
know..
On 15 syys, 15:32, "Rohan Kapoor" <[EMAIL PROTECTED]> wrote:
> I have tried the same thing it is not working for me also.
>
>
>
> On Mon, Sep 15, 2008 at 5:5
I have tried the same thing it is not working for me also.
On Mon, Sep 15, 2008 at 5:55 PM, peps <[EMAIL PROTECTED]> wrote:
>
> My application worked fine and I didn't make any changes and now it
> won't work. I think this is because my
> data isn't saved for some reason. Please could someone hel
Hi Marcelo. Yes, newUpdatePersonAppDataRequest doesn't appear to be
working on the sandbox at the moment. If you haven't already, please
file a new bug report in the OpenSocial issue tracker:
http://code.google.com/p/opensocial-resources/wiki/IssuesTab?tm=3
Until this bug is resolved, you should
16 matches
Mail list logo