facebook

package
v0.0.0-...-98bf765 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OAuthDialogURL         = "https://www.facebook.com/v2.10/dialog/oauth?client_id={{.AppID}}&redirect_uri={{.RedirectURI}}"
	ExchangeAccessTokenURL = "" /* 146-byte string literal not displayed */
	GraphAPIsURL           = "https://graph.facebook.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Authenticate used to get an access token from Facebook
	Authenticate(appID, appSecret, redirectURI, onLoggedInRedirectURI string) http.HandlerFunc
	// Me returns basic user details
	Me() (map[string]interface{}, error)
}

Client is an interface for doing things with Facebook Graph APIs

type ClientImpl

type ClientImpl struct {
	// contains filtered or unexported fields
}

func New

func New() *ClientImpl

func (*ClientImpl) Authenticate

func (c *ClientImpl) Authenticate(appID, appSecret, redirectURI, onLoggedInRedirectURI string) http.HandlerFunc

func (*ClientImpl) Me

func (c *ClientImpl) Me() (map[string]interface{}, error)

Me returns basic user profiles

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

MockClient is a mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance

func (*MockClient) Authenticate

func (_m *MockClient) Authenticate(appID string, appSecret string, redirectURI string, onLoggedInRedirectURI string) http.HandlerFunc

Authenticate mocks base method

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClient) Me

func (_m *MockClient) Me() (map[string]interface{}, error)

Me mocks base method

type MockClientMockRecorder

type MockClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientMockRecorder is the mock recorder for MockClient

func (*MockClientMockRecorder) Authenticate

func (_mr *MockClientMockRecorder) Authenticate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Authenticate indicates an expected call of Authenticate

func (*MockClientMockRecorder) Me

func (_mr *MockClientMockRecorder) Me() *gomock.Call

Me indicates an expected call of Me

Jump to

Keyboard shortcuts

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