Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APIServerVersion = "v2.10"
APIServerVersion facebook API version
View Source
var AppID string
AppID facebook app id
View Source
var AppRedirectURL string
AppRedirectURL redirect URL
View Source
var AppSecret string
AppSecret facebook app secret
Functions ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Error struct { Message string `json:"message"` Type string `json:"type"` Code int `json:"code"` } }
ErrorResponse fb error response
type IdentityResponse ¶
type IdentityResponse struct { ErrorResponse AccessToken string `json:"access_token"` TokenType string `json:"token_type"` ExpiresIn int `json:"expires_in"` }
IdentityResponse fb identity response
type UserResponse ¶
type UserResponse struct { ErrorResponse Email string `json:"email"` Name string `json:"name"` ID string `json:"id"` AccessToken string AccessTokenExpiresIn time.Time }
UserResponse fb user info response
func GetUserInfo ¶
GetUserInfo gets user info
func LoginUserWithResponseQuery ¶
LoginUserWithResponseQuery logins user with code
Click to show internal directories.
Click to hide internal directories.