facebook

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorEmptyAppID = errors.New("facebook app ID was empty")
View Source
var ErrorEmptyAppSecret = errors.New("facebook app secret was empty")

Functions

This section is empty.

Types

type FacebookOAuth

type FacebookOAuth struct {
	errors.AuthErrCheck
	// contains filtered or unexported fields
}

func New

func New(appID int64, appSecret string) (*FacebookOAuth, error)

func (*FacebookOAuth) ValidateToken

func (f *FacebookOAuth) ValidateToken(token string) (string, error)

type Response

type Response struct {
	ResponseData `json:"data,omitempty"`
}

func (*Response) AppID

func (t *Response) AppID() string

func (*Response) AppName

func (t *Response) AppName() string

func (*Response) Expiry

func (t *Response) Expiry() int

func (*Response) Issued

func (t *Response) Issued() int

func (*Response) Metadata

func (t *Response) Metadata() map[string]string

func (*Response) Scopes

func (t *Response) Scopes() []string

func (*Response) UserID

func (t *Response) UserID() string

type ResponseData

type ResponseData struct {
	ApplID           string            `json:"app_id,omitempty"`
	Application      string            `json:"application,omitempty"`
	ExpiresAfterSecs int               `json:"expires_at,omitempty"`
	Valid            bool              `json:"is_valid,omitempty"`
	IssuedBeforeSecs int               `json:"issued_at,omitempty"`
	Meta             map[string]string `json:"metadata,omitempty"`
	FBScopes         []string          `json:"scopes,omitempty"`
	UsrID            string            `json:"user_id,omitempty"`
}

Jump to

Keyboard shortcuts

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