Hi

 I am trying to get my username from the social application f.e. I
have [EMAIL PROTECTED] and want to get only the doxtop05 as
username. Is it possible to get it like that. For the moment I am
getting the doxtop05 doxtop05 (which is my first name and last name,
used while creating the google account), as the username when I use
this piece of code.

var uid2 = "", email_Id2 = "",owner2 ="", app_Id2 = "";
function loadData()
{
        var params = {};
         params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[opensocial.Person.Field.PROFILE_URL];

        var req = opensocial.newDataRequest();
        req.add(req.newFetchPersonRequest('OWNER',params),'owner');
        
req.add(req.newFetchActivitiesRequest(opensocial.DataRequest.PersonId.OWNER),'activities');
        req.send(onLoadFriends);
};

function onLoadFriends(dataResponse)
{
        owner2 = dataResponse.get('owner').getData().getDisplayName();
}
the owner2 has the doxtop05 doxtop05.

I also need the application Id for my application on my server side, I
was using the gadgets.util.getUrlParameters["gadget_Id"] code to get
my applicationid in orkut it was working but in hi5 its not returning
the application. Is this code orkut specific code?

I also tried to use:

var owner_activities = dataResponse.get("activities").getData()
["activities"];
appId = owner_activites.getField(opensocial.Activity.Field.APP_ID);

but it was not working. Is there anyother way to get the applicationId
that will work on all type of containers?

does anyone have ideas about this!!

Thanks,



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to