facebook_provider

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FACEBOOK_OAUTH_PROFILE_API_URL = "https://graph.facebook.com/me"
	FACEBOOK_DEFAULT_CLIENT_NAME   = "facebook"
	FACEBOOK_CALLBACK_ENDPOINT     = "callback"
)

Variables

This section is empty.

Functions

Types

type FacebookOAuth2Client

type FacebookOAuth2Client struct {
	RedirectOnSuccess bool
	RedirectOnError   bool
	LoggedInCallback  func(*adapters.OAuth2CallbackResponse) error
	LoggedOutCallback func(*adapters.OAuth2CallbackResponse) error
	ErrorCallback     func(*adapters.OAuth2CallbackResponse) error
	// contains filtered or unexported fields
}

func New

func New(clientId string, clientSecret string) *FacebookOAuth2Client

func (*FacebookOAuth2Client) AppendScope

func (c *FacebookOAuth2Client) AppendScope(scope string)

func (*FacebookOAuth2Client) Callback

func (*FacebookOAuth2Client) Login

func (*FacebookOAuth2Client) Logout

func (*FacebookOAuth2Client) Name

func (c *FacebookOAuth2Client) Name() string

func (*FacebookOAuth2Client) RemoveScope

func (c *FacebookOAuth2Client) RemoveScope(scope string)

func (*FacebookOAuth2Client) Scopes

func (c *FacebookOAuth2Client) Scopes() []string

func (*FacebookOAuth2Client) SetErrorCallback

func (c *FacebookOAuth2Client) SetErrorCallback(f func(*adapters.OAuth2CallbackResponse) error)

func (*FacebookOAuth2Client) SetErrorRedirectPath

func (c *FacebookOAuth2Client) SetErrorRedirectPath(path string)

func (*FacebookOAuth2Client) SetLoggedInCallback

func (c *FacebookOAuth2Client) SetLoggedInCallback(f func(*adapters.OAuth2CallbackResponse) error)

func (*FacebookOAuth2Client) SetLoggedInRedirectPath

func (c *FacebookOAuth2Client) SetLoggedInRedirectPath(path string)

func (*FacebookOAuth2Client) SetLoggedOutCallback

func (c *FacebookOAuth2Client) SetLoggedOutCallback(f func(*adapters.OAuth2CallbackResponse) error)

func (*FacebookOAuth2Client) SetLoggedOutInRedirectPath

func (c *FacebookOAuth2Client) SetLoggedOutInRedirectPath(path string)

func (*FacebookOAuth2Client) ToggleErrorRedirect

func (c *FacebookOAuth2Client) ToggleErrorRedirect(value bool)

func (*FacebookOAuth2Client) ToggleSuccessRedirect

func (c *FacebookOAuth2Client) ToggleSuccessRedirect(value bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL