$.getData('/people/@viewer/@self', {}, function(people) { person = people[0]; opensocial.requestShareApp(person.id, null, function(response) {}); });