Versions in this module Expand all Collapse all v2 v2.4.2 Oct 18, 2019 Changes in this version + const ERROR_CODE_UNKNOWN + var Debug DebugMode + var RFC3339Timestamps bool + var Version string + func SetHttpClient(client HttpClient) + type AdAccountUsage struct + AccIDUtilPCT float64 + type AdsInsightsThrottle struct + AccIDUtilPCT float64 + AppIDUtilPCT float64 + type App struct + AppId string + AppSecret string + EnableAppsecretProof bool + RedirectUri string + func New(appID, appSecret string) *App + func (app *App) AppAccessToken() string + func (app *App) ExchangeToken(accessToken string) (token string, expires int, err error) + func (app *App) GetCode(accessToken string) (code string, err error) + func (app *App) ParseCode(code string) (token string, err error) + func (app *App) ParseCodeInfo(code, machineID string) (token string, expires int, newMachineID string, err error) + func (app *App) ParseSignedRequest(signedRequest string) (res Result, err error) + func (app *App) Session(accessToken string) *Session + func (app *App) SessionFromSignedRequest(signedRequest string) (session *Session, err error) + type BatchResult struct + Body string + Header http.Header + Result Result + StatusCode int + type BinaryData struct + ContentType string + Filename string + Source io.Reader + func Data(filename string, source io.Reader) *BinaryData + func DataWithContentType(filename string, source io.Reader, contentType string) *BinaryData + type BinaryFile struct + ContentType string + Filename string + Path string + func File(filename string) *BinaryFile + func FileAlias(filename, path string) *BinaryFile + func FileAliasWithContentType(filename, path, contentType string) *BinaryFile + type BusinessUseCaseUsage map[string][]*RateLimiting + type DebugInfo struct + FacebookApiVersion string + FacebookDebug string + FacebookRev string + Header http.Header + Messages []DebugMessage + Proto string + type DebugMessage struct + Link string + Message string + Type string + type DebugMode string + const DEBUG_ALL + const DEBUG_INFO + const DEBUG_OFF + const DEBUG_WARNING + type Error struct + Code int + ErrorSubcode int + IsTransient bool + Message string + TraceID string + Type string + UserMessage string + UserTitle string + func (e *Error) Error() string + type Float32 float32 + type Float64 float64 + type HttpClient interface + Do func(req *http.Request) (resp *http.Response, err error) + Get func(url string) (resp *http.Response, err error) + Post func(url string, bodyType string, body io.Reader) (resp *http.Response, err error) + func DefaultHttpClient() HttpClient + type Int int + type Int16 int16 + type Int32 int32 + type Int64 int64 + type Int8 int8 + type Method string + const DELETE + const GET + const POST + const PUT + type PagingResult struct + func (pr *PagingResult) Data() []Result + func (pr *PagingResult) Decode(v interface{}) (err error) + func (pr *PagingResult) HasNext() bool + func (pr *PagingResult) HasPrevious() bool + func (pr *PagingResult) Next() (noMore bool, err error) + func (pr *PagingResult) Previous() (noMore bool, err error) + func (pr *PagingResult) UsageInfo() *UsageInfo + type Params map[string]interface + func (params Params) Encode(writer io.Writer) (mime string, err error) + func MakeParams(data interface{}) (params Params) + type RateLimiting struct + CallCount int + EstimatedTimeToRegainAccess int + TotalCPUTime int + TotalTime int + Type string + type Result map[string]interface + func (res Result) Batch() (*BatchResult, error) + func (res Result) DebugInfo() *DebugInfo + func (res Result) Decode(v interface{}) (err error) + func (res Result) DecodeField(field string, v interface{}) error + func (res Result) Err() error + func (res Result) Get(field string) interface{} + func (res Result) GetField(fields ...string) interface{} + func (res Result) Paging(session *Session) (*PagingResult, error) + func (res Result) UsageInfo() *UsageInfo + func Api(path string, method Method, params Params) (Result, error) + func Batch(batchParams Params, params ...Params) ([]Result, error) + func BatchApi(accessToken string, params ...Params) ([]Result, error) + func Delete(path string, params Params) (Result, error) + func Get(path string, params Params) (Result, error) + func MakeResult(jsonBytes []byte) (Result, error) + func Post(path string, params Params) (Result, error) + func Put(path string, params Params) (Result, error) + func Request(request *http.Request) (Result, error) + type Session struct + BaseURL string + HttpClient HttpClient + RFC3339Timestamps bool + Version string + func (session *Session) AccessToken() string + func (session *Session) Api(path string, method Method, params Params) (Result, error) + func (session *Session) App() *App + func (session *Session) AppsecretProof() string + func (session *Session) Batch(batchParams Params, params ...Params) ([]Result, error) + func (session *Session) BatchApi(params ...Params) ([]Result, error) + func (session *Session) Context() context.Context + func (session *Session) Debug() DebugMode + func (session *Session) Delete(path string, params Params) (Result, error) + func (session *Session) EnableAppsecretProof(enabled bool) error + func (session *Session) Get(path string, params Params) (Result, error) + func (session *Session) Inspect() (result Result, err error) + func (session *Session) Post(path string, params Params) (Result, error) + func (session *Session) Put(path string, params Params) (Result, error) + func (session *Session) Request(request *http.Request) (res Result, err error) + func (session *Session) SetAccessToken(token string) + func (session *Session) SetDebug(debug DebugMode) DebugMode + func (session *Session) User() (id string, err error) + func (session *Session) Validate() (err error) + func (session *Session) WithContext(ctx context.Context) *Session + type Uint uint + type Uint16 uint16 + type Uint32 uint32 + type Uint64 uint64 + type Uint8 uint8 + type UsageInfo struct + AdAccount RateLimiting + AdsInsights AdsInsightsThrottle + App RateLimiting + BusinessUseCase BusinessUseCaseUsage + Page RateLimiting Other modules containing this package github.com/partyzanex/facebook