Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

OAuth Buttons add-on

Marc Englund
9 years ago May 16, 2012 2:08pm
Basil Bourque
9 years ago May 25, 2012 4:22pm
Jack Gibson
9 years ago Jun 06, 2012 6:22pm
David Wall
9 years ago Jun 13, 2012 10:04pm
Marc Englund
9 years ago Jul 09, 2012 6:56am
Marc Englund
9 years ago Jul 09, 2012 7:00am

Jack Gibson:
However, for facebook it would be nice to be able to define the scope for a give user. Is there a way to do this with your API?

Hi,

FacebookButton has the following API:

/**
     * If enabled, Facebook will be asked to return the users email address,
     * which will also be reflected in the dialog presented to the user by
     * Facebook.
     * 
     * @param enabled
     */
    public void setEmailScope(boolean enabled) {
        emailScope = enabled;
    }

By looking at how that works you could easily extend and use other scopes. I should probably change that API to support other scopes, though...

Best Regards,
Marc

Marc Englund
9 years ago Jul 09, 2012 7:35am
Marc Englund
9 years ago Jul 09, 2012 7:42am
Christopher Brind
9 years ago Jan 29, 2013 4:50pm
Christopher Brind
9 years ago Jan 29, 2013 5:04pm
Christopher Brind
9 years ago Jan 31, 2013 12:13am
Rui Pereira
8 years ago May 03, 2013 2:59pm