Hello!
I'm having difficulty updating a user's Application Data. With this
code:
var request = opensocial.newDataRequest();
if(opensocial.hasPermission(opensocial.Permission.VIEWER))
{
request.add(request.newUpdatePersonAppDataRequest(opensocial.DataRequest.PersonId.VIEWER,"key",data));
request.send(callback);
}else{
opensocial.requestPermission(opensocial.Permission.VIEWER, "Sorry to
bug you, but your confirmation is required to allow Hangman to save
your guess data. If you don't grant this permission, you won't be able
to play the game!", checkForPermission);
}
I get the following in my response: "Error":"unauthorized", and it
doesn't drop ask for permissions. This is strange to me, since the
hasPermission call should only return true if an app data update is
possible. Does anyone have any insight as to why this could be
occurring? Thanks!
-A Chapin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial Application Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---