remove home access to fb

This commit is contained in:
Umputun
2018-02-14 01:44:04 -06:00
parent dbe443c482
commit 6af74549aa
+2 -2
View File
@@ -67,14 +67,14 @@ func NewFacebook(p Params) Provider {
Endpoint: facebook.Endpoint,
RedirectURL: p.RemarkURL + "/auth/facebook/callback",
Scopes: []string{"public_profile"},
InfoURL: "https://graph.facebook.com/me?fields=id,name,picture,home",
InfoURL: "https://graph.facebook.com/me?fields=id,name,picture",
Store: p.SessionStore,
MapUser: func(data userData) store.User {
userInfo := store.User{
ID: data.value("id"),
Name: data.value("name"),
Picture: data.value("picture"),
Profile: data.value("home"),
// Profile: data.value("home"),
}
if userInfo.Name == "" {
userInfo.Name = userInfo.ID