I can not find viewer & owner id, whenever I visit to another profile.

I am using this code:

function onLoadFriends(data)
{
alert("onLoadFriends");

var viewer = data.get('viewer').getData();
alert(viewer);
var vFriends=data.get('ViewerFriends').getData();
alert(vFriends);
var vFriendsArr=vFriends.asArray();
alert(vFriendsArr.length);
var viewerFriends = data.get('OwnerFriends').getData();
var owner=data1.get('owner').getData();
var frind=viewerFriends.asArray();
thumb= owner.getField(opensocial.Person.Field.THUMBNAIL_URL);
profile= owner.getField(opensocial.Person.Field.PROFILE_URL);
glob_friends=frind;
var myc_owner_id=gadgets.util.getUrlParameters()["gadgetOwner"];
if(gadgets.util.getUrlParameters()["gadgetViewer"]=="")
{
alert("blank");
myc_viewer_id=1;
}


Please help me.


--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to