Skip to content

Commit

Permalink
Merge pull request #154 from ViniciussSantos/fix-facebook-login
Browse files Browse the repository at this point in the history
fix(oauth): add explicit api version to oauth facebook url
  • Loading branch information
Joabesv authored Nov 14, 2023
2 parents e47f800 + bce5930 commit 9f7f59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/setup/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function facebook (context) {
const { inApp = '', userId = '', env = '' } = _.get(context.session, 'grant.dynamic', {})

const accessToken = context.query.access_token
const url = `https://graph.facebook.com/me?fields=id,name,email,picture.width(640)&metadata=1&access_token=${accessToken}`
const url = `https://graph.facebook.com/v18.0/me?fields=id,name,email,picture.width(640)&metadata=1&access_token=${accessToken}`
const resp = await Axios.get(url)

const faceUser = resp.data
Expand Down

0 comments on commit 9f7f59b

Please sign in to comment.