I don't think GFC has any 'user joined site' hooks at the moment, so that, as far as i can think of right now, limits your options to:
1) check for the fcauth cookie and then do a db lookup 2) check for a custom cookie in javascript, if none is set, set it in JS and do a ajax call to your server (-> goto step one) #1 has the obvious load problem, and #2 will still be triggered more often then you'd like because people could be using different computers/browsers, still it would be a bit more optimal then #1 so seems the best choice You could also take a completely different approach and do a @owner @friends REStful call to GFC using your site's oauth keys and compare that friend list with your local db and the diff between the two are the people who joined / left your site. For that option you can use one of the OpenSocial client libraries: http://blog.opensocial.org/2008/12/opensocial-now-friends-with-php-java.html On Thu, Oct 29, 2009 at 3:43 AM, Rex <rexki...@gmail.com> wrote: > My site is using Google Friend Connect. > > When someone join my site, I want to send his/her FCID to my server > and save it to my database. But I don't want that every time someone > login, I have to check my database, just check when someone join my > site. Can I do that? I cannot find any information from the document. > > -- > > 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-...@googlegroups.com. > To unsubscribe from this group, send email to > opensocial-api+unsubscr...@googlegroups.com<opensocial-api%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/opensocial-api?hl=en. > > > -- 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-...@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.