Hi Rohit, Thanks for the reply. Is there any class defined in opensocial to check the installed field or what is the approach?
Thanks and Regards Sharath On Apr 22, 10:24 am, "Rohit Ghatol (Google)" <[EMAIL PROTECTED]> wrote: > Hi Sharath, > > This is an interesting concept. In order to achieve this may be you > can use app data. You could check if the field, say "installed" > exists, and if not, then do any installation tasks and set the > "installed" field. > > I hope this helps. > > Regards, > Rohit > > On Apr 22, 6:23 am, sharath <[EMAIL PROTECTED]> wrote: > > > Hi, > > > Thanks for the reply. > > Presently there is no activity created on install automatically in > > orkut. > > > RegardsSharath > > > On Apr 21, 10:39 pm, Aakash Bapna <[EMAIL PROTECTED]> wrote: > > > > As far as i know, in orkut an activity is automatically created when user > > > adds a app. > > > Otherwise this will be possible only when there is a option for > > > onInstall, onUninstall callback urls in future OpenSocial release, for > > > now only hi5 has this feature..Thanks ~@@[EMAIL > > > PROTECTED]://aakash-bapna.blogspot.com > > > > > Date: Mon, 21 Apr 2008 06:18:41 -0700> Subject: [OpenSocial] Posting > > > > into Activity Stream> From: [EMAIL PROTECTED]> To: > > > > [email protected]> > > Hello,> > I am using the below > > > > code to post activity> > <script type="text/javascript">> function > > > > createActivity() {> var title= '';> title = 'Hey, I have added > > > > MyVideos. Come on! Join with me';> var activity_params = {};> > > > > alert(1);> activity_params[opensocial.Activity.Field.TITLE] = title;> > > > > var activity = opensocial.newActivity(activity_params);> > > > > alert(activity);> opensocial.requestCreateActivity(activity, "HIGH",> > > > > getCreateActivityResp);> }> function > > > > getCreateActivityResp(responseItem) {> console.log(responseItem);> var > > > > htmlout = '';> if(responseItem.hadError()){> //htmlout= 'has error: ' + > > > > responseItem.ErrorMessage;> alert(responseItem.ErrorMessage +'has > > > > error');> }> else{> alert('create activity good!')> }> }> > > > > createActivity();> </script>> > This code posts activity for every page > > > > load, but i want to post> activity only once when the user adds the > > > > application for first time.> > How to achieve it?> > Thanks and > > > > regards>Sharath> > > > > _________________________________________________________________ > > > > Get in touch in an instant. Get Windows Live Messenger > > > now.http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
