I'm trying to integrate one of hi5 applications with Shindig container...
I'm facing some issue while trying to load this application on Shindig.
 when I try to read the owner details... the details are served from the
local container database rather reading from hi5 account (provided in
<ModulePrefs> details...

My code looks like..

----------------------
<ModulePrefs title="My Journal" description="Display the Owner's hi5
Journal" title_url="http://suresh.hi5.com"; author="Suresh" author_email="
[EMAIL PROTECTED]" author_affiliation="hi5" author_location="India">
...
var p = opensocial.getEnvironment().getParams();
          Hi5AuthToken = p['Hi5AuthToken'];
          loadUsers();
        }


gadgets.util.registerOnLoadHandler(init);


        function loadUsers() {
          var req = opensocial.newDataRequest();
          req.add(req.newFetchPersonRequest('OWNER'), 'owner');
          req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
          req.send(onLoadUsers);
        }

 function onLoadUsers(dataResponse) {
          var owner = dataResponse.get('owner').getData();
          var viewer = dataResponse.get('viewer').getData();
         var ownerId = owner.getDisplayName();

-----------------------------------

When I print 'ownerId' the value not same as my hi5 userid.

Any pointers would be highly appreciated.

--Suresh

Reply via email to