facebook

package
v0.0.0-...-f26991d Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2015 License: MIT Imports: 7 Imported by: 0

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

func NewAuthConfig(appId string, appSecret string, scope string) *OAuth2Config

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

func NewAuthConfigFromFile(filepath string) (*OAuth2Config, error)

Return a *OAuth2Config from configuration file. process configuration file will be used if filepath is "".

Types

This section is empty.

Jump to

Keyboard shortcuts

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