Normally, you can only save data for the VIEWER, and typically only if the VIEWER has the app installed. I'm actually surprised that OWNER works while VIEWER does not. Can you give an example of code that works, and an example of code that doesn't work?
~Arne On Jun 11, 1:23 am, Джа <maksimo...@gmail.com> wrote: > I have a code : > function request() { > var req = opensocial.newDataRequest(); > > key = "k1"; > text = "asdasd"; > > req.add(req.newUpdatePersonAppDataRequest > (opensocial.DataRequest.PersonId.VIEWER, key, text), "set_data"); > req.send(set_callback); > > }; > > When I try to save data from OWNER account, data is saved ok. When i > save data from VIEWER account, script returns "[{"error": > {"message":"badRequest: Invalid Request was rejected.","code":400}}]". > Please help me to determine what I am doing wrong. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to opensocial-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---