Documentation ¶
Index ¶
- Constants
- func Authorize(app *App, permissions []string) (*oauth2.Token, error)
- func Code(r *http.Request) string
- type App
- func (app *App) AccountToken(token *oauth2.Token, accountId string) (*oauth2.Token, error)
- func (a *App) Clone(ctx httpclient.Context) *App
- func (a *App) Comments(url string) ([]*Comment, error)
- func (app *App) Extend(token *oauth2.Token) (*oauth2.Token, error)
- func (app *App) Get(path string, data url.Values, accessToken string, out interface{}) error
- func (a *App) Parse(s string) error
- func (app *App) ParseSignedRequest(req string) (map[string]interface{}, error)
- func (app *App) Post(path string, data url.Values, accessToken string, out interface{}) error
- type Comment
- type Error
- type ErrorContainer
- type Person
- type Picture
- type PictureData
Constants ¶
View Source
const ( Authorization = "https://www.facebook.com/dialog/oauth" Exchange = "https://graph.facebook.com/oauth/access_token" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorContainer ¶
type ErrorContainer struct {
Error Error
}
type Person ¶
type Person struct { Id string `json:"id"` FirstName string `json:"first_name"` Gender string `json:"gender"` LastName string `json:"last_name"` Link string `json:"link"` Locale string `json:"locale"` MiddleName string `json:"middle_name"` Name string `json:"name"` Timezone float64 `json:"timezone"` Username string `json:"username"` Email string `json:"email"` UpdatedTime string `json:"updated_time"` Verified bool `json:"verified"` Picture *Picture `json:"picture"` }
type Picture ¶
type Picture struct {
Data *PictureData `json:"data"`
}
type PictureData ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.