I ran the following code and it worked:
function OnClickFriend(e) {
> var req = opensocial.newDataRequest();
> var param = {};
> param[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
> [opensocial.Person.Field.ALL];
>
> req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
> 'viewer');
> req.add(req.newFetchPersonRequest(e.id), 'singleFriend');
> alert(e.id);
> req.send(OnLoadSingleFriend);
> };
>
>
> function OnLoadSingleFriend(dataResponse) {
> alert("callback");
> var friend = dataResponse.get('singleFriend').getData();
> alert(dataResponse.hadError());
> alert(friend);
> document.getElementById('friendDetails').innerHTML =
> friend.getDisplayName();
> };
>
> OnClickFriend({ id : "13314698784882897227" });
Can you do an alert on dataResponse.getErrorMessage() and let me know what
it says?
~Arne
On Mon, Apr 21, 2008 at 9:50 PM, Rakesh <[EMAIL PROTECTED]> wrote:
>
> I am using Orkut
>
>
> On Apr 21, 10:04 pm, "Arne Roomann-Kurrik" <[EMAIL PROTECTED]>
> wrote:
> > Which container are you using?
> >
> > ~Arne
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---