Skip to content

Commit

Permalink
chore: use facebook graph api v21
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Nov 13, 2024
1 parent 253c5b6 commit 949c7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfservice/strategy/oidc/provider_facebook.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (g *ProviderFacebook) Claims(ctx context.Context, token *oauth2.Token, quer
}

appSecretProof := g.generateAppSecretProof(token)
u, err := url.Parse(fmt.Sprintf("https://graph.facebook.com/me?fields=id,name,first_name,last_name,middle_name,email,picture,birthday,gender&appsecret_proof=%s", appSecretProof))
u, err := url.Parse(fmt.Sprintf("https://graph.facebook.com/v21.0/me?fields=id,name,first_name,last_name,middle_name,email,picture,birthday,gender&appsecret_proof=%s", appSecretProof))
if err != nil {
return nil, errors.WithStack(herodot.ErrInternalServerError.WithReasonf("%s", err))
}
Expand Down

0 comments on commit 949c7bb

Please sign in to comment.