Documentation ¶
Index ¶
Constants ¶
View Source
const AUTH_URL = "https://www.facebook.com/dialog/oauth"
View Source
const DEFAULT_SCOPE = "basic_info"
View Source
const IMAGE_URL = "https://graph.facebook.com/me/picture?redirect=0&height=200&type=normal&width=200"
View Source
const INI_SECTION_NAME = "middleware.oauth2.facebook"
View Source
const PROFILE_URL = "https://graph.facebook.com/me?fields=id,name,link"
View Source
const PROVIDER_NAME = "facebook"
View Source
const TOKEN_URL = "https://graph.facebook.com/oauth/access_token"
Variables ¶
This section is empty.
Functions ¶
func NewAuthConfig ¶
Returns a new Facebook OAuth2 configuration with provided parameter. `appId`, `appSecret`, and `redirectUrl` is required. `scope` can be empty (""), in which the default scope 'basic_info', would be used.
func NewAuthConfigFromFile ¶
Return a *OAuth2Config from configuration file. process configuration file will be used if filepath is "".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.