Documentation ¶
Overview ¶
Package fbapi provides a client for the Facebook API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DateFormat = ParamDateFormat(`Y-m-d\TH:i:s\Z`)
Sets the RFC 3339 format that Go expects when unmarshalling time.Time JSON values.
Functions ¶
func ParamValues ¶
ParamValues builds url.Values from the given Params.
func UnmarshalResponse ¶
UnmarshalResponse will unmarshal a http.Response from a Facebook API request into result, possibly returning an error if the process fails or if the API returned an error.
Types ¶
type Client ¶
type Client struct { // The underlying http.RoundTripper to perform the individual requests. When // nil http.DefaultTransport will be used. Transport http.RoundTripper `inject:""` // The base URL to parse relative URLs off. If you pass absolute URLs to Client // functions they are used as-is. When nil https://graph.facebook.com/ will // be used. BaseURL *url.URL }
Client for the Facebook API.
type Error ¶
type Error struct { // These are provided by the Facebook API and may not always be available. Message string `json:"message"` Type string `json:"type"` Code int `json:"code"` }
An Error from the API.
type Param ¶
Param augment given url.Values.
func ParamAccessToken ¶
ParamAccessToken specifies the access_token parameter.
func ParamDateFormat ¶
ParamDateFormat specifies the date_format parameter.
func ParamFields ¶
ParamFields specifies the fields to include.
func ParamLimit ¶
ParamLimit specifies a limit. Note, 0 values are also sent.
func ParamOffset ¶
ParamOffset specifies the number of items to offset. Note, 0 values are not sent.
Directories ¶
Path | Synopsis |
---|---|
Package fbbatch provides a Client with single call semantics which will automatically use Facebook Graph Batch implementation under the hood.
|
Package fbbatch provides a Client with single call semantics which will automatically use Facebook Graph Batch implementation under the hood. |