From bce593068e0bdbc25161e8d727ec177923adad0a Mon Sep 17 00:00:00 2001 From: Vinicius Santos Date: Tue, 14 Nov 2023 18:10:57 -0300 Subject: [PATCH] fix(oauth): add explicit api version to facebook url --- app/setup/oauth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/setup/oauth.js b/app/setup/oauth.js index c977f9f..62064a7 100644 --- a/app/setup/oauth.js +++ b/app/setup/oauth.js @@ -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