4 messages in com.googlegroups.google-desktop-developerRe: New gadget submitted: Facebook Ga...
FromSent OnAttachments
Google Desktop Team19 Sep 2007 06:00 
Teo [API Guru]19 Sep 2007 06:54 
Larry Gadea20 Sep 2007 14:17 
copermine03 Oct 2007 09:29 
Subject:Re: New gadget submitted: Facebook Gadget
From:Larry Gadea (tri@gmail.com)
Date:09/20/2007 02:17:51 PM
List:com.googlegroups.google-desktop-developer

Hey. Very cool. I like the simple and good looking UI. I'm confused as to why you're making the user log into Facebook in a seperate browser. You could display the Facebook login page inside of a details view.

Here is some sample code as to how to do this:

function onReceivedAuthenticationURL(URL) { // Prepare the details view loginIE_ = new WebBrowser(); loginIE_.navigate2(URL);

// Show the details view pluginHelper.showDetailsView(loginIE_, PLEASE_LOGIN, gddDetailsViewFlagToolbarOpen, onLoginWindowClose); }

Also you can use the onLoginWindowClose callback to get anotification when the user has closed the details view to automatically do the login. Another method you could do is scrape the page to see if the user has logged in. On a timer you could do the following:

function timerCallback() { text = loginIE_.Document.body.outerText; if (text.indexOf("You may now close") > -1) { // The user has logged in. You can now force close the login window pluginHelper.CloseDetailsView(); } }

Hope this helps!

-- Larry Gadea.

On Sep 19, 6:01 am, Google Desktop Team <labs +desk@google.com> wrote:

[bcc: gadget developer]

A new gadget has just been submitted!

If you have feedback about this gadget, please post it to the group by replying
to this message. Your feedback will help the developer build a better gadget.

DISCLAIMER: Google has not tested or verified the features or security of this
gadget. Please direct all questions to the software's author.

Name:FacebookGadget Description: GetFacebooknotifications on your desktop. Download:http://gdgadgets.googlecode.com/files/facebooknotifications.gg -- Google Desktop Team