Hi abhi. I'm sorry for the late response.

First of all, posting an activity when a user first installs your
application is in violation of the orkut developer guidelines:

http://code.google.com/apis/orkut/docs/orkutdevguidelines.html#updates
"Never post an update just because the user views an application. If
they are viewing the app for the first time (i.e. they just installed
the app) the app should not post an update because installing an app
represents an orkut action, not an action within the application. Only
post updates when a user does something meaningful within your
application (e.g. changes status or beats a high score)."

Your application will be viewable in the profile of the user who added
it, and the plan is to begin showing the applications that your
friends have installed directly within the directory although this
isn't available just yet.

As far as your code goes, try installing the Developer Application for
OpenSocial at http://dafos.appspot.com/gadget/dafos-orkut.xml and
execute the following script:

----------
function addToActivityStream() {

  var title = 'My title';
  var body  = 'My body';

  var params = {};
  params[opensocial.Activity.Field.TITLE] = title;
  params[opensocial.Activity.Field.BODY] = body;

  var activity = opensocial.newActivity( params );
  opensocial.requestCreateActivity(activity,
opensocial.CreateActivityPriority.HIGH, onAddActivity);
};

function onAddActivity(data) {
  alert('Activity posted');
};

addToActivityStream();
----------

You should see an update posted in the "My updates" panel on the home
page. I just verified this.

Unfortunately, I don't know the exact text limits of the title and
body, but I'll try to find out for you.

- Jason

On Jul 9, 3:12 pm, abhi <[EMAIL PROTECTED]> wrote:
> anyone ?
--~--~---------~--~----~------------~-------~--~----~
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