What I wrote was correct. Once a user has your application installed, your server can pull that user's information at any time. ~Arne
On Thu, Sep 10, 2009 at 7:51 PM, Nishanth Nair <nair.nisha...@gmail.com>wrote: > Arne, > > For my second question, this is the answer that you wrote > > *No, you can just pull data directly from your server.* > > is it a typo, is it* you just can't pull data* ??? > > if it is so, the only time when the gadget can send profile data of *user > A* to my database is when the gadget is loaded > by *user A* on his apps page?? > > > On Fri, Sep 11, 2009 at 3:45 AM, Arne Roomann-Kurrik < > api.kur...@google.com> wrote: > >> >> >> >> On Sep 9, 1:58 am, Nishanth Nair <nair.nisha...@gmail.com> wrote: >> > Hi experts, >> > >> > I saw this sample code in opensocial tutorial. >> > >> > gadgets.util.registerOnLoadHandler(init); >> > >> > function init() { >> > loadFriends(); >> > >> > } >> > >> > The *registerOnLoadHandler* method is registering the init function to >> be >> > called on load of the gadget. >> > >> > My questions are >> > 1. when will the gadget call the init function. is it only when the user >> > loads the application >> > to use it in its container(say orkut) ? >> >> Yes, it's a JavaScript function that is only executed when the gadget >> is loaded. >> >> > 2. Can I call this init function from my server to fetch profile data(a >> pull >> > basically) ? >> >> No, you can just pull data directly from your server. >> >> > 3. Supposing that 3 users A,B and C installed my app on their profiles. >> How >> > will I get the >> > ids of A, B and C so that I pull out their profile informations one by >> one >> > from my client application >> > using the gadget xml? >> >> Use a signed request to send this information to your server. See >> http://wiki.opensocial.org/index.php?title=Introduction_To_Signed_Requests >> for more information. >> >> > 4. When the user installs my gadget, how can I send back the user id to >> my >> > client application >> > so that I can store it in my database? >> >> Same way as your previous question, send a signed makeRequest from the >> gadget. >> >> > 5. if user A is not logging in to orkut from 5th oct to 10th october. >> Even >> > in those days also, >> > can I retrieve their profile info, albums, firends list etc from their >> > profile using my gadget and >> > store to the db using my client app? >> >> Yes, as long as the gadget continues to be installed on their profile. >> >> > >> > Please help. >> > Thanks, >> > Nishanth >> >> >> Sure, let me know if I can help in any other way. >> >> ~Arne >> >> >> > > > -- > Regards, > Nishanth Nair > Mobile: 91-9008855133 > http://nishanthnair.com > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to opensocial-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---