I get a failure every time when I try to run the following:
function loadUser(uid) {
var req = opensocial.newDataRequest();
//Request the viewer information
req.add(req.newFetchPersonRequest("118217731596339939291"), 'user');
//Send the request
log('request UID ' + uid);
req.send(loadUser_callback);
}
function loadUser_callback(data) {
log('got result');
if (data.get('user').hadError()) {
alert(data.get('user').getErrorMessage());
}
...
The alert message I get is:
internalError: Unknown error getAppDataItem expects exactly one user
id.
Note that "118217731596339939291" is my User ID.
Thanks,
Dale Hopkins
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---