Skip to content

Commit

Permalink
feat(facebook): upgrade facebook api version
Browse files Browse the repository at this point in the history
  • Loading branch information
gary committed Jan 19, 2024
1 parent 5a73459 commit 91c9999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const facebookOauthUrl = async (type: OauthType) => {
const { state, codeChallenge } = await generateSocialOauthParams(type)
const clientId = process.env.NEXT_PUBLIC_FACEBOOK_CLIENT_ID
const redirectUri = `https://${process.env.NEXT_PUBLIC_SITE_DOMAIN}/callback/${CALLBACK_PROVIDERS.Facebook}`
const url = `https://www.facebook.com/v17.0/dialog/oauth?response_type=code&scope=openid&client_id=${clientId}&redirect_uri=${redirectUri}&state=${state}&code_challenge=${codeChallenge}&code_challenge_method=S256`
const url = `https://www.facebook.com/v18.0/dialog/oauth?response_type=code&scope=openid&client_id=${clientId}&redirect_uri=${redirectUri}&state=${state}&code_challenge=${codeChallenge}&code_challenge_method=S256`
return url
}

Expand Down

0 comments on commit 91c9999

Please sign in to comment.