Documentation ¶
Index ¶
Constants ¶
View Source
const (
FacebookTokenInfoUrl = "https://graph.facebook.com/oauth/access_token_info"
)
View Source
const (
FacebookUserInfoUrl = "https://graph.facebook.com/me"
)
Variables ¶
This section is empty.
Functions ¶
func FacebookTokenInfo ¶
func FacebookTokenInfo(token string) (types.OauthProviderTokenInfo, error)
func FacebookUserInfo ¶
func FacebookUserInfo(token string) (types.OauthProviderUserInfo, error)
Types ¶
type FacebookOauthTokenInfo ¶
type FacebookOauthTokenInfo struct { Expires int64 `json:"expires_in"` Access string `json:"token_type"` }
func (*FacebookOauthTokenInfo) Email ¶
func (i *FacebookOauthTokenInfo) Email() string
func (*FacebookOauthTokenInfo) IsValid ¶
func (i *FacebookOauthTokenInfo) IsValid() bool
type FacebookOauthUserInfo ¶
type FacebookOauthUserInfo struct { UserEmail string `json:"email"` UserGivenName string `json:"first_name"` UserFamilyName string `json:"last_name"` UserGender string `json:"gender"` }
func (*FacebookOauthUserInfo) Email ¶
func (i *FacebookOauthUserInfo) Email() string
func (*FacebookOauthUserInfo) FamilyName ¶
func (i *FacebookOauthUserInfo) FamilyName() string
func (*FacebookOauthUserInfo) GivenName ¶
func (i *FacebookOauthUserInfo) GivenName() string
Click to show internal directories.
Click to hide internal directories.