From 2c85db2f9c0199825de9ec9e76a04c46c2ebb20a Mon Sep 17 00:00:00 2001 From: PritamIT2023 Date: Fri, 4 Oct 2024 01:01:56 +0530 Subject: [PATCH] fix(core): :bug: facebook login fix facebook login fix Ref: #383 --- package/components/inputs/custom/FacebookAuthComponent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/components/inputs/custom/FacebookAuthComponent.js b/package/components/inputs/custom/FacebookAuthComponent.js index a46a7ff4..9cce7784 100644 --- a/package/components/inputs/custom/FacebookAuthComponent.js +++ b/package/components/inputs/custom/FacebookAuthComponent.js @@ -19,7 +19,7 @@ const FacebookAuthComponent = (props) => { // Load the Facebook SDK window.fbAsyncInit = function () { window.FB.init({ - appId : config?.wrappid?.socialLogin?.facebook?.apiKey, // Replace with your Facebook App ID + appId : config?.wrappid?.socialLogin?.facebook?.appId, // Replace with your Facebook App ID cookie : true, version: "v20.0", xfbml : true, @@ -46,8 +46,8 @@ const FacebookAuthComponent = (props) => { } }, { - scope: - "pages_manage_posts,pages_read_engagement,pages_manage_engagement", + config_id: config?.wrappid?.socialLogin?.facebook?.configId, + scope : "public_profile,email", } ); };